[IMP] sale_agent: add tracking and fr translation

This commit is contained in:
Alexis de Lattre
2024-11-21 09:59:39 +01:00
parent 5f4929f819
commit c37b607f97
4 changed files with 76 additions and 4 deletions

View File

@@ -9,7 +9,8 @@ class AccountMove(models.Model):
_inherit = 'account.move'
invoice_agent_id = fields.Many2one(
'res.partner', domain=[('agent', '=', True)], ondelete='restrict', string="Agent",
'res.partner', domain=[('agent', '=', True)], string="Agent",
ondelete='restrict', tracking=True,
compute='_compute_invoice_agent_id', store=True, readonly=False, precompute=True)
@api.depends('partner_id', 'move_type')