diff --git a/sale_order_type/models/account_invoice.py b/sale_order_type/models/account_invoice.py index 2e50e767d08e..8f7708cf29c3 100644 --- a/sale_order_type/models/account_invoice.py +++ b/sale_order_type/models/account_invoice.py @@ -24,7 +24,7 @@ def _onchange_partner_id(self): @api.onchange('sale_type_id') def onchange_sale_type_id(self): if self.sale_type_id.payment_term_id: - self.payment_term = self.sale_type_id.payment_term_id.id + self.payment_term_id = self.sale_type_id.payment_term_id.id if self.sale_type_id.journal_id: self.journal_id = self.sale_type_id.journal_id.id