mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] connector_opencart: in 16, this is a stored computed field, which is not computed correctly initially
This commit is contained in:
@@ -30,6 +30,13 @@ class OpencartSaleOrder(models.Model):
|
||||
digits=dp.get_precision('Account')
|
||||
)
|
||||
|
||||
@api.model
|
||||
def create(self, values):
|
||||
res = super().create(values)
|
||||
# this is unfortunate, but the initial fiscal position gets set incorrectly
|
||||
res.odoo_id._compute_fiscal_position_id()
|
||||
return res
|
||||
|
||||
@api.model
|
||||
def import_batch(self, backend, filters=None):
|
||||
""" Prepare the import of Sales Orders from Opencart """
|
||||
|
||||
Reference in New Issue
Block a user