Add modules commission_simple, commission_simple_agent, commission_simple_agent_purchase

Add demo data in sale_agent
This commit is contained in:
Alexis de Lattre
2024-11-30 01:19:31 +01:00
parent 7bdd579b1c
commit 5af6c895d0
42 changed files with 2262 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
# 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 ResUsers(models.Model):
_inherit = 'res.users'
# TODO mon idée : déplacer ça dans une table dédiée
# company_id oblig
# partner_id (filtré... sur lien vers user ou agent petit difficulté)
# profile_id
# type agent ou user => ça donne le champ de recherche
commission_profile_id = fields.Many2one(
'commission.profile', string='Commission Profile',
company_dependent=True)