[ADD]pms: commission_type field for agencies

This commit is contained in:
Darío Lodeiros
2024-06-24 08:37:53 +02:00
parent 62b7274705
commit 3081a15480
2 changed files with 13 additions and 0 deletions

View File

@@ -34,6 +34,18 @@ class ResPartner(models.Model):
index=True,
)
default_commission = fields.Integer(string="Commission", help="Default commission")
commission_type = fields.Selection(
selection=[
("included", "Commission Included in Price"),
("subtract", "Commission Subtracts from Price"),
],
string="Commission Type",
help="""
If select subtract commission, for automatic import of reservations,
the commission is calculated as price - (price * commission / 100)
""",
default="included",
)
apply_pricelist = fields.Boolean(
string="Apply Pricelist",
help="Indicates if agency pricelist is applied to his reservations",

View File

@@ -82,6 +82,7 @@
name="sale_channel_id"
options="{'no_create': True,'no_open': True}"
/>
<field name="commission_type" />
<field name="default_commission" />
<!-- <label for="price_discount"/>
<div class="o_row">