summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorGoffin Simon <sig@odoo.com>2020-12-28 13:11:34 +0000
committerGoffin Simon <sig@odoo.com>2020-12-28 13:11:34 +0000
commit61e5389236ad767827ef2fe039aa78b20848298e (patch)
tree775b0e011906cc15a4cb460241272010464f0737 /addons
parent257cfeeda708cade0bd19b64eb8a95b3f61a063d (diff)
[FIX] point_of_sale: Sales Team set on POS didn't appear on invoice
Steps to reproduce the bug: - Let's consider a sales team ST and a POS session PS - Set ST on PS - Open PS and make an invoice I from an order Bug: The sales team set on I was not ST opw:2418806 closes odoo/odoo#63831 Signed-off-by: Simon Goffin (sig) <sig@openerp.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/point_of_sale/models/pos_order.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/addons/point_of_sale/models/pos_order.py b/addons/point_of_sale/models/pos_order.py
index 32a0d05a2df..daee2029559 100644
--- a/addons/point_of_sale/models/pos_order.py
+++ b/addons/point_of_sale/models/pos_order.py
@@ -401,6 +401,8 @@ class PosOrder(models.Model):
'invoice_line_ids': [(0, None, self._prepare_invoice_line(line)) for line in self.lines],
'invoice_cash_rounding_id': self.config_id.rounding_method.id if self.config_id.cash_rounding else False
}
+ if self.crm_team_id:
+ vals['team_id'] = self.crm_team_id.id
return vals
def action_pos_order_invoice(self):