[FIX] sale: fix defaults taxes on tests in sale

Suppose two ways to install sale:
-i account followed by -i sale: account is installed, the execute is done on the chart template and then,
sale is installed. In this case, the IrDefault values already exists when sale is loaded.

-i sale directly: account and sale are installed, the execute is done on the chart template.
The difference is that there is no IrDefault values set on the demo data in sale.

The problem is that such behavior can lead to wrong tests. For exemple, having taxes_id/supplier_taxes_id
set or not set on product.template during sale tests.
This commit is contained in:
Laurent Smet
2017-08-30 14:36:04 +02:00
parent 4bfd6284dc
commit eba134ec18
+2
View File
@@ -608,6 +608,8 @@ Thanks!</field>
<field name="uom_po_id" ref="product.product_uom_unit"/>
<field name="company_id" eval="[]"/>
<field name="image" type="base64" file="sale/static/img/advance_product_0-image.jpg"/>
<field name="taxes_id" eval="[]"/>
<field name="supplier_taxes_id" eval="[]"/>
</record>
<record id="base.user_demo" model="res.users">