Skip to content

Commit

Permalink
[MIG] stock_picking_accounting_date: Migration to 17.0
Browse files Browse the repository at this point in the history
  • Loading branch information
alan196 committed Nov 22, 2024
1 parent 7a59034 commit ba03262
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion stock_picking_accounting_date/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Picking Accounting Date",
"version": "15.0.1.0.0",
"version": "17.0.1.0.0",
"author": "Quartile Limited, Jarsa, Odoo Community Association (OCA)",
"website": "https://github.com/OCA/stock-logistics-warehouse",
"category": "Stock",
Expand Down
1 change: 0 additions & 1 deletion stock_picking_accounting_date/models/stock_picking.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ class StockPicking(models.Model):
_inherit = "stock.picking"

accounting_date = fields.Date(
states={"done": [("readonly", True)], "cancel": [("readonly", True)]},
help="Accounting date for stock valuation journal entry.",
)
show_accounting_date = fields.Boolean(compute="_compute_show_accounting_date")
Expand Down
3 changes: 2 additions & 1 deletion stock_picking_accounting_date/views/stock_picking_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
<field name="show_accounting_date" invisible="1" />
<field
name="accounting_date"
attrs="{'invisible': [('show_accounting_date', '=', False)]}"
invisible="not show_accounting_date"
readonly="state in ('done', 'cancel')"
/>
</xpath>
</field>
Expand Down

0 comments on commit ba03262

Please sign in to comment.