[FIX] sale: missing oldname of team_id fields
These attributes have been forgotten during rewrite in new-api.
This commit is contained in:
+2
-2
@@ -137,7 +137,7 @@ class SaleOrder(models.Model):
|
||||
payment_term_id = fields.Many2one('account.payment.term', string='Payment Term', oldname='payment_term')
|
||||
fiscal_position_id = fields.Many2one('account.fiscal.position', oldname='fiscal_position', string='Fiscal Position')
|
||||
company_id = fields.Many2one('res.company', 'Company', default=lambda self: self.env['res.company']._company_default_get('sale.order'))
|
||||
team_id = fields.Many2one('crm.team', 'Sales Team', change_default=True, default=_get_default_team)
|
||||
team_id = fields.Many2one('crm.team', 'Sales Team', change_default=True, default=_get_default_team, oldname='section_id')
|
||||
procurement_group_id = fields.Many2one('procurement.group', 'Procurement Group', copy=False)
|
||||
|
||||
product_id = fields.Many2one('product.product', related='order_line.product_id', string='Product')
|
||||
@@ -799,7 +799,7 @@ class AccountInvoice(models.Model):
|
||||
default_team_id = self.env['crm.team']._get_default_team_id()
|
||||
return self.env['crm.team'].browse(default_team_id)
|
||||
|
||||
team_id = fields.Many2one('crm.team', string='Sales Team', default=_get_default_team)
|
||||
team_id = fields.Many2one('crm.team', string='Sales Team', default=_get_default_team, oldname='section_id')
|
||||
|
||||
@api.multi
|
||||
def confirm_paid(self):
|
||||
|
||||
Reference in New Issue
Block a user