Skip to content

Commit

Permalink
[13.0][IMP] purchase_analytic: avoid override context in views inherited
Browse files Browse the repository at this point in the history
  • Loading branch information
ThiagoMForgeFlow committed Oct 11, 2023
1 parent 470393e commit c382f5d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion purchase_analytic/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"author": "Acsone SA/NV, Odoo Community Association (OCA)",
"category": "Purchase Management",
"website": "https://github.com/OCA/account-analytic",
"depends": ["purchase"],
"depends": ["purchase", "base_view_inheritance_extension"],
"data": ["views/purchase_views.xml"],
"license": "AGPL-3",
"installable": True,
Expand Down
4 changes: 3 additions & 1 deletion purchase_analytic/views/purchase_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
<field name="order_line" position="attributes">
<attribute
name="context"
>{'default_account_analytic_id': project_id}</attribute>
operation="python_dict"
key="default_account_analytic_id"
>project_id</attribute>
</field>
</field>
</record>
Expand Down

0 comments on commit c382f5d

Please sign in to comment.