summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic/basic_controller.js
diff options
context:
space:
mode:
authorDenis Ledoux <dle@odoo.com>2020-05-21 23:47:19 +0000
committerDenis Ledoux <dle@odoo.com>2020-05-22 01:42:30 +0000
commit0b27b4dde176d748decd1c0f7ac0e908190970a7 (patch)
tree8302901b52c1821d10b12bedbcd8a2b2defe7436 /addons/web/static/src/js/views/basic/basic_controller.js
parentf5a8be7444a8316879d38b4f3699c95aa6413093 (diff)
[FIX] mrp: `action_open_product_lot` is in the view `product_product_form_view_bom_button`
The button `action_open_product_lot` is added by the view `product_product_form_view_bom_button`. Both the current view and the view `product_product_form_view_bom_button` inherited from the view `product.product_normal_form_view`, without any priority specified. In order to make sure the button `action_open_product_lot` is in the view when the view `product_product_form_view_bom_button` is loaded, you either need to directly inherits from the view holding that button `product_form_view_procurement_button` either you need to increase the priority of the current view so `product_product_form_view_bom_button` is loaded in priority. Same thing for the view `product_template_form_view_bom_button` Upgrade Request 47960 ``` ValueError: Element '<xpath expr="//button[@name='action_open_product_lot']">' cannot be located in parent view Error context: View `product.product.procurement` [view_id: 783, xml_id: mrp.product_product_form_view_bom_button, model: product.product, parent_id: 319] ``` closes odoo/odoo#51655 X-original-commit: 26fac2af85acb0ae9f9e479aec5eb16930d69e49 Signed-off-by: Denis Ledoux (dle) <dle@odoo.com>
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions