diff --git a/addons/sale/wizard/sale_line_invoice.py b/addons/sale/wizard/sale_line_invoice.py index 1ac1c41a9cf..e2e508d2174 100644 --- a/addons/sale/wizard/sale_line_invoice.py +++ b/addons/sale/wizard/sale_line_invoice.py @@ -49,7 +49,7 @@ class sale_order_line_make_invoice(osv.osv_memory): 'user_id': order.user_id and order.user_id.id or False, 'company_id': order.company_id and order.company_id.id or False, 'date_invoice': fields.date.today(), - 'section_id': order.section_id.id, + 'team_id': order.team_id.id, } diff --git a/addons/sale/wizard/sale_make_invoice_advance.py b/addons/sale/wizard/sale_make_invoice_advance.py index dcd92e48d4d..47ab3d5bb05 100644 --- a/addons/sale/wizard/sale_make_invoice_advance.py +++ b/addons/sale/wizard/sale_make_invoice_advance.py @@ -146,7 +146,7 @@ class sale_advance_payment_inv(osv.osv_memory): 'comment': '', 'payment_term': sale.payment_term.id, 'fiscal_position': sale.fiscal_position.id or sale.partner_id.property_account_position.id, - 'section_id': sale.section_id.id, + 'team_id': sale.team_id.id, } result.append((sale.id, inv_values)) return result