Skip to content
Snippets Groups Projects
Commit 689dab3f authored by Arnaud Baes's avatar Arnaud Baes
Browse files

[IMP] stock,product_expiry: lot views cleanup

parent ced76bdd
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@ class StockProductionLot(models.Model):
use_date = fields.Datetime(string='Best before Date',
help='This is the date on which the goods with this Serial Number start deteriorating, without being dangerous yet.')
removal_date = fields.Datetime(string='Removal Date',
help='This is the date on which the goods with this Serial Number should be removed from the stock.')
help='This is the date on which the goods with this Serial Number should be removed from the stock. This date will be used in FEFO removal strategy.')
alert_date = fields.Datetime(string='Alert Date',
help='Date to determine the expired lots and serial numbers using the filter "Expiration Alerts".')
product_expiry_alert = fields.Boolean(compute='_compute_product_expiry_alert', help="The Alert Date has been reached.")
......
......@@ -5,17 +5,19 @@
<field name="model">stock.production.lot</field>
<field name="inherit_id" ref="stock.view_production_lot_form" />
<field name="arch" type="xml">
<xpath expr="//group[@name='main_group']" position="after">
<group string="Dates">
<xpath expr="//page[@name='description']" position="before">
<page string="Dates">
<group>
<field name="use_date" />
<field name="removal_date" />
<group>
<field name="use_date" />
<field name="removal_date" />
</group>
<group>
<field name="life_date" />
<field name="alert_date" />
</group>
</group>
<group>
<field name="life_date" />
<field name="alert_date" />
</group>
</group>
</page>
</xpath>
<xpath expr="//div[hasclass('oe_title')]" position="inside">
<field name="product_expiry_alert" invisible="1"/>
......
......@@ -33,7 +33,7 @@
</group>
</group>
<notebook attrs="{'invisible': [('display_complete', '=', False)]}">
<page string="Description">
<page string="Description" name="description">
<field name="note"/>
</page>
</notebook>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment