[FIX] uom: move product_uom_dozen back to data

In commit ab76c421c2 the Dozens unit of measure was moved to demo data.
Unfortunately, this data is used in enterprise module product_unspc in a
post init hook.

As a consequence, when installing this module without demo data, the
initialization crashes.

With this commit, the Dozens uom is moved back to regular data.

closes odoo/odoo#63120

X-original-commit: e194c39e044710cbf314427d77bd2b87795c34ff
Signed-off-by: Xavier Dollé (xdo) <xdo@odoo.com>
Signed-off-by: Victor Feyens (vfe) <vfe@odoo.com>
This commit is contained in:
Christophe Monniez
2020-12-10 06:53:31 +00:00
parent b3ff4c98dc
commit 44af06132e
3 changed files with 7 additions and 14 deletions
-3
View File
@@ -16,9 +16,6 @@ This is the base module for managing Units of measure.
'security/ir.model.access.csv',
'views/uom_uom_views.xml',
],
'demo': [
'data/uom_demo.xml',
],
'installable': True,
'auto_install': False,
}
+7
View File
@@ -27,6 +27,13 @@
<field name="uom_type">reference</field>
</record>
<record id="product_uom_dozen" model="uom.uom">
<field name="category_id" ref="uom.product_uom_categ_unit"/>
<field name="name">Dozens</field>
<field name="factor_inv" eval="12"/>
<field name="uom_type">bigger</field>
</record>
<!-- WORKING TIME -->
<record id="product_uom_day" model="uom.uom">
<field name="name">Days</field>
-11
View File
@@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<odoo noupdate="1">
<record id="product_uom_dozen" model="uom.uom">
<field name="category_id" ref="uom.product_uom_categ_unit"/>
<field name="name">Dozens</field>
<field name="factor_inv" eval="12"/>
<field name="uom_type">bigger</field>
</record>
</odoo>