Skip to content

Commit

Permalink
[MIG] stock_picking_analytic: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Wodran14 committed Mar 18, 2024
1 parent 6109636 commit 23cd87e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
2 changes: 1 addition & 1 deletion stock_picking_analytic/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"name": "Stock Picking Analytic",
"summary": """
Allows to define the analytic account on picking level""",
"version": "16.0.1.0.0",
"version": "17.0.1.0.0",
"license": "AGPL-3",
"author": "ACSONE SA/NV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/account-analytic",
Expand Down
11 changes: 2 additions & 9 deletions stock_picking_analytic/views/stock_picking.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
name="analytic_distribution"
widget="analytic_distribution"
groups="analytic.group_analytic_accounting"
readonly="state in ('done', 'cancel')"
/>
<field name="analytic_distribution" invisible="1" />
</xpath>
Expand All @@ -25,15 +26,6 @@
{"default_analytic_distribution": analytic_distribution}
</attribute>
</xpath>
<xpath
expr="//notebook/page[@name='detailed_operations']
/field[@name='move_line_ids_without_package']"
position="attributes"
>
<attribute name="context" operation="update">
{"default_analytic_distribution": analytic_distribution}
</attribute>
</xpath>
</field>
</record>

Expand All @@ -58,6 +50,7 @@
name="analytic_distribution"
widget="analytic_distribution"
optional="show"
readonly="state in ('done', 'cancel')"
/>
</xpath>
</field>
Expand Down

0 comments on commit 23cd87e

Please sign in to comment.