[FIX] purchase,stock_dropshipping: keep current company currency

Changing it is not needed and generated missmatch against existing
entries (created by l10n_generic_coa demo data, thus depending on module
install order).
This commit is contained in:
Christophe Simonis
2018-03-08 18:16:55 +01:00
parent c7b5b12be6
commit fcb48b7241
2 changed files with 1 additions and 13 deletions
+1 -7
View File
@@ -1,9 +1,3 @@
-
Set the company currency as EURO for the sake of repeatibility
-
!python {model: res.company}: |
company = self.env.ref('base.main_company')
self.env.cr.execute("UPDATE res_company SET currency_id = %s WHERE id = %s", [self.env.ref("base.EUR").id, company.id])
-
Set a product as using fifo price
-
@@ -369,4 +363,4 @@
original_out_move._fifo_vacuum()
outgoing_shipment_fifo_icecream_neg2._fifo_vacuum()
assert original_out_move.product_id.stock_value == 12000.0, 'Stock Value should be 12000'
assert original_out_move.product_id.qty_available == 150.0, 'Qty available should be 150'
assert original_out_move.product_id.qty_available == 150.0, 'Qty available should be 150'
@@ -1,9 +1,3 @@
-
Set the company currency as EURO for the sake of repeatibility
-
!python {model: res.company, id: base.main_company}: |
self.env.cr.execute("UPDATE res_company SET currency_id = %s WHERE id = %s", [self.env.ref("base.EUR").id, self.id])
-
Set product category removal strategy as LIFO
-