mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[ADD]pms: commission_type field for agencies
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user