[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:
@@ -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
|
||||
-
|
||||
|
||||
Reference in New Issue
Block a user