Skip to content
Browse files

[FIX] base: wrong default inherited view in qweb reports

In debug mode open Settings>Technical>Reporting>Reporting
Select one report (i.e. Purchase Order), click on "Qweb views", select
one of the shown report (i.e. report_purchaseorder), switch in Edit
mode, go to "Inherited Views" tab, click on "Add an item", a form will
popup partially filled.

The "Inherited View" shown by the popup is not the view in which the
user was, creating confusion and potentially could also be non-existant.

This is because of the xml context passed with the request for default
values which gives an 'active_id' instead of the 'id' of the previous

  • Loading branch information...
agr-odoo committed Oct 9, 2019
1 parent c6f1f05 commit b953c2c7b2290f5fb7c0404cd6cba0f22a6f82cc
Showing with 1 addition and 1 deletion.
  1. +1 −1 odoo/addons/base/ir/ir_ui_view_view.xml
@@ -32,7 +32,7 @@
<field name="groups_id"/>
<page name="inherit_children" string="Inherited Views">
<field name="inherit_children_ids" context="{'default_model':model,'default_type':type,'default_inherit_id':active_id,'default_mode':'extension'}">
<field name="inherit_children_ids" context="{'default_model':model,'default_type':type,'default_inherit_id':id,'default_mode':'extension'}">
<tree default_order="priority,id">
<field name="id"/>
<field name="priority"/>

0 comments on commit b953c2c

Please sign in to comment.
You can’t perform that action at this time.