Context keys *_view_ref of one2many propagated to buttons
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Web (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP Publisher's Warranty Team | |||
OpenERP Community Backports (Web) | Status tracked in 7.0 | |||||
7.0 |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The correction [0] of this bug lp:1177063 reveals another bug.
I guess that it is related to the webclient, but I could be wrong.
Steps to reproduce:
1) Apply the patch [0]
2) Make sure you have the groups: 'Track serial number on products', 'Track serial number on logistic units (pallets)' (the Packs should be displayed on the delivery orders)
3) Create a delivery order
4) Click on the "Split Into" button
You will have an error as follows:
Can't find field 'product_uos_qty' in the following view parts composing the view of object model 'stock.move':
* stock.move.form
The problem comes from the context, that is set on the move_lines m2o field:
This context is also propagated when we click on the button "Split Into". So the server tries to build the view stock.view_
The bug was not occuring before the patch of the stock view because the form_view_ref and tree_view_ref were simply ignored.
Related branches
- Stefan Rijnhart (Opener) (community): Approve
- Guewen Baconnier @ Camptocamp (community): Approve
- Ronald Portier (Therp) (community): Approve
- Nicolas Bessi - Camptocamp (community): Approve (no test, code review)
- Xavier (Open ERP): Pending requested
- Martin Trigaux (OpenERP): Pending requested
- Diff: 0 lines
- Stefan Rijnhart (Opener): Approve
- arthru (community): Approve
- Alexis de Lattre (community): Approve (tests only)
- Pedro Manuel Baeza: Approve (code review)
- Nicolas Bessi - Camptocamp (community): Approve (no test, code review)
-
Diff: 59 lines (+36/-2)1 file modifiedaddons/web/static/src/js/views.js (+36/-2)
Changed in openerp-web: | |
assignee: | nobody → OpenERP Publisher's Warranty Team (openerp-opw) |
tags: | added: maintenance |
Changed in openerp-web: | |
status: | New → Fix Committed |
Changed in ocb-web: | |
status: | New → Fix Committed |
same problem also when you click the Scrap Product button:
Can't find field 'product_uos_qty' in the following view parts composing the view of object model 'stock.move':
* stock.move.form
Either you wrongly customized this view, or some modules bringing those views are not compatible with your current data model
Version 7.0-20140318-003107