diff --git a/connector_walmart/models/sale_order/importer.py b/connector_walmart/models/sale_order/importer.py index f10518d3..4a648c1c 100644 --- a/connector_walmart/models/sale_order/importer.py +++ b/connector_walmart/models/sale_order/importer.py @@ -136,7 +136,7 @@ class SaleOrderImportMapper(Component): @mapping def project_id(self, record): if self.backend_record.analytic_account_id: - return {'project_id': self.backend_record.analytic_account_id.id} + return {'analytic_account_id': self.backend_record.analytic_account_id.id} @mapping def warehouse_id(self, record): diff --git a/connector_walmart/models/stock_picking/exporter.py b/connector_walmart/models/stock_picking/exporter.py index 73fef876..7027333d 100644 --- a/connector_walmart/models/stock_picking/exporter.py +++ b/connector_walmart/models/stock_picking/exporter.py @@ -30,7 +30,7 @@ class WalmartPickingExporter(Component): ship_date_time = int(fields.Datetime.from_string(ship_date).strftime('%s')) * 1000 lines = [] for line in binding.move_lines: - sale_line = line.procurement_id.sale_line_id + sale_line = line.sale_line_id if not sale_line.walmart_bind_ids: continue # this is a particularly interesting way to get this, diff --git a/external/hibou-oca/connector-magento b/external/hibou-oca/connector-magento index 802fe38d..4b71a6f4 160000 --- a/external/hibou-oca/connector-magento +++ b/external/hibou-oca/connector-magento @@ -1 +1 @@ -Subproject commit 802fe38dc14025410960072b881a68fcc00cc7bb +Subproject commit 4b71a6f4497cb6cd7882d2ba82f523571b47dcdb