[IMP] commission_simple: allow to restart commission computation on the same period without deleting all commission results

This commit is contained in:
Alexis de Lattre
2025-10-24 14:49:42 +00:00
parent 3a9a97c742
commit faca51f126
3 changed files with 10 additions and 11 deletions

View File

@@ -17,6 +17,8 @@ class CommissionResult(models.Model):
readonly=True, tracking=True)
profile_id = fields.Many2one(
'commission.profile', string='Commission Profile', readonly=True, tracking=True)
assignment_id = fields.Many2one(
'commission.profile.assignment', string="Commission Profile Assignment", readonly=True)
assign_type = fields.Selection('_assign_type_selection', readonly=True, tracking=True)
company_id = fields.Many2one(
'res.company', string='Company', ondelete='cascade',