[IMP] commission_simple: periodicity moved from company to profile

Update commission_simple_agent_purchase to adapt config page form view
accordingly
This commit is contained in:
Alexis de Lattre
2025-11-03 12:01:44 +01:00
parent c18791fb60
commit 1843e19e5f
11 changed files with 94 additions and 109 deletions

View File

@@ -27,6 +27,9 @@ class CommissionProfile(models.Model):
('paid', 'Paid'),
('in_payment', 'In Payment and Paid'),
], default='paid', string='Trigger', required=True)
date_range_type_id = fields.Many2one(
'date.range.type', string='Commission Periodicity', ondelete='restrict',
domain="[('company_id', 'in', (False, company_id))]")
class CommissionProfileAssignment(models.Model):