diff --git a/connector_walmart/__manifest__.py b/connector_walmart/__manifest__.py
index e20bd78e..aea4c191 100644
--- a/connector_walmart/__manifest__.py
+++ b/connector_walmart/__manifest__.py
@@ -3,7 +3,7 @@
{
'name': 'Walmart Connector',
- 'version': '11.0.1.0.0',
+ 'version': '11.0.1.1.0',
'category': 'Connector',
'depends': [
'account',
diff --git a/connector_walmart/models/sale_order/importer.py b/connector_walmart/models/sale_order/importer.py
index adf4c099..f10518d3 100644
--- a/connector_walmart/models/sale_order/importer.py
+++ b/connector_walmart/models/sale_order/importer.py
@@ -123,6 +123,11 @@ class SaleOrderImportMapper(Component):
if self.backend_record.team_id:
return {'team_id': self.backend_record.team_id.id}
+ @mapping
+ def user_id(self, record):
+ if self.backend_record.user_id:
+ return {'user_id': self.backend_record.user_id.id}
+
@mapping
def payment_mode_id(self, record):
assert self.backend_record.payment_mode_id, ("Payment mode must be specified.")
diff --git a/connector_walmart/models/walmart_backend/common.py b/connector_walmart/models/walmart_backend/common.py
index 4f4d60cc..673857f1 100644
--- a/connector_walmart/models/walmart_backend/common.py
+++ b/connector_walmart/models/walmart_backend/common.py
@@ -59,6 +59,8 @@ class WalmartBackend(models.Model):
'field on the sale order created by the connector.'
)
team_id = fields.Many2one(comodel_name='crm.team', string='Sales Team')
+ user_id = fields.Many2one(comodel_name='res.users', string='Salesperson',
+ help="Default Salesperson for newly imported orders.")
sale_prefix = fields.Char(
string='Sale Prefix',
help="A prefix put before the name of imported sales orders.\n"
diff --git a/connector_walmart/views/walmart_backend_views.xml b/connector_walmart/views/walmart_backend_views.xml
index 4aa02aa8..89e74030 100644
--- a/connector_walmart/views/walmart_backend_views.xml
+++ b/connector_walmart/views/walmart_backend_views.xml
@@ -30,6 +30,7 @@
+