diff --git a/pms/models/res_partner.py b/pms/models/res_partner.py
index 3863bff41..47f604e33 100644
--- a/pms/models/res_partner.py
+++ b/pms/models/res_partner.py
@@ -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",
diff --git a/pms/views/res_partner_views.xml b/pms/views/res_partner_views.xml
index 5bbe305eb..2af01c6aa 100644
--- a/pms/views/res_partner_views.xml
+++ b/pms/views/res_partner_views.xml
@@ -82,6 +82,7 @@
name="sale_channel_id"
options="{'no_create': True,'no_open': True}"
/>
+