[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:
committed by
Florian da Costa
parent
988d63fac0
commit
fadabd66b8
@@ -1,5 +1,4 @@
|
||||
from . import commission_profile
|
||||
from . import commission_rule
|
||||
from . import commission_result
|
||||
from . import res_company
|
||||
from . import account_move_line
|
||||
|
||||
@@ -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):
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
# Copyright 2019-2024 Akretion France (https://www.akretion.com/)
|
||||
# @author Alexis de Lattre <alexis.delattre@akretion.com>
|
||||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResCompany(models.Model):
|
||||
_inherit = 'res.company'
|
||||
|
||||
commission_date_range_type_id = fields.Many2one(
|
||||
'date.range.type', string='Commission Periodicity', ondelete='restrict')
|
||||
Reference in New Issue
Block a user