add purchase_rappel. manage rappel commission for vendors

This commit is contained in:
Luis 2026-06-12 11:48:32 +02:00
parent 4fbf3284f4
commit 4c07dd042d
24 changed files with 1458 additions and 0 deletions

View file

@ -0,0 +1,18 @@
# -*- coding: utf-8 -*-
from odoo import fields, models
class ResPartner(models.Model):
_inherit = "res.partner"
rappel_commission = fields.Boolean(
string="Rappel Commission",
help="If enabled, vendor bills from this partner will be eligible for rappel "
"commission invoicing.",
)
rappel_commission_rate = fields.Float(
string="Commission Rate (%)",
digits=(5, 4),
help="Percentage applied on the taxable base of vendor bills to calculate the "
"rappel commission amount.",
)