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 Feb 14, 2024
1 parent 6109636 commit cece7c0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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
7 changes: 6 additions & 1 deletion 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 Down Expand Up @@ -43,7 +44,10 @@
<field name="inherit_id" ref="stock.view_picking_internal_search" />
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="after">
<field name="analytic_distribution" />
<field
name="analytic_distribution"
readonly="state in ('done', 'cancel')"
/>
</xpath>
</field>
</record>
Expand All @@ -58,6 +62,7 @@
name="analytic_distribution"
widget="analytic_distribution"
optional="show"
readonly="state in ('done', 'cancel')"
/>
</xpath>
</field>
Expand Down

0 comments on commit cece7c0

Please sign in to comment.