Skip to content

Commit

Permalink
[MIG] product_expiry_ux: Migration to 18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
docker-odoo authored and mav-adhoc committed Nov 6, 2024
1 parent 8f8491b commit af0c49b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions product_expiry_ux/__manifest__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
'name': 'Products Expiration Date UX',
'version': "17.0.1.1.0",
'version': "18.0.1.0.0",
'category': 'Inventory/Inventory',
'author': 'ADHOC SA',
'website': 'www.adhoc.com.ar',
Expand All @@ -14,7 +14,7 @@
],
'demo': [],
'license': 'AGPL-3',
'installable': False,
'installable': True,
'auto_install': True,
'application': False,
}
6 changes: 3 additions & 3 deletions product_expiry_ux/views/production_lot_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<field name="model">stock.lot</field>
<field name="inherit_id" ref="product_expiry.view_move_form_expiry" />
<field name="arch" type="xml">
<xpath expr="//span[hasclass('text-bg-danger')]" position="replace">
<span class="badge text-bg-danger" invisible="not product_expiry_alert">Expired</span>
</xpath>
<xpath expr="//span[hasclass('text-bg-danger')]" position="after">
<field name="is_alert_date" invisible="1"/>
<span class="badge text-bg-warning" invisible="not is_alert_date">Expiration Alert</span>
</xpath>
<xpath expr="//span[hasclass('text-bg-danger')]" position="replace">
<span class="badge text-bg-danger" invisible="not product_expiry_alert">Expired</span>
</xpath>
</field>
</record>
</odoo>
2 changes: 1 addition & 1 deletion product_expiry_ux/views/stock_move_line_views.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding='UTF-8'?>
<odoo>
<record id="view_move_line_tree" model="ir.ui.view">
<field name="name">stock.move.line.tree</field>
<field name="name">stock.move.line.list</field>
<field name="model">stock.move.line</field>
<field name="mode">primary</field>
<field name="priority">50</field>
Expand Down

0 comments on commit af0c49b

Please sign in to comment.