addons-cm/purchase_rappel/models/res_partner.py

18 lines
557 B
Python

# -*- 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.",
)