[IMP]pms: New company config check to avoid max amount restriction in downpayments simplified invoice

This commit is contained in:
Darío Lodeiros
2022-11-17 07:35:25 +01:00
parent 7f3747e0aa
commit 95a585c69d
3 changed files with 11 additions and 1 deletions

View File

@@ -194,6 +194,11 @@ class PmsProperty(models.Model):
help="Maximum amount to create the simplified invoice",
default=400.0,
)
avoid_simplified_max_amount_downpayment = fields.Boolean(
string="Downpayment Invoive without limit amount",
help="Avoid simplified invoice max amount downpayment",
default=True,
)
user_id = fields.Many2one(
string="Team Leader",
copy=False,
@@ -821,6 +826,6 @@ class PmsProperty(models.Model):
result.append((record.id, record.name))
else:
result.append(
(record.id, record.name + " (" + record.pms_property_code + ")")
(record.id, "[" + record.pms_property_code + "] " + record.name)
)
return result