[IMP] sale_agent: add tracking and fr translation
This commit is contained in:
@@ -8,8 +8,9 @@ from odoo import fields, models
|
||||
class ResPartner(models.Model):
|
||||
_inherit = 'res.partner'
|
||||
|
||||
agent = fields.Boolean(string="Is an agent?")
|
||||
agent = fields.Boolean(string="Is an agent?", tracking=True)
|
||||
# agent_id is only displayed on parent partner
|
||||
# on sale.order and invoice, it uses commercial_partner_id.agent_id.id
|
||||
agent_id = fields.Many2one(
|
||||
'res.partner', domain=[('agent', '=', True)], ondelete='restrict', copy=False)
|
||||
'res.partner', domain=[('agent', '=', True)], ondelete='restrict',
|
||||
copy=False, tracking=True)
|
||||
|
||||
Reference in New Issue
Block a user