mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
[IMP]pms: journal filter manual payment allowed
This commit is contained in:
@@ -19,3 +19,7 @@ class AccountJournal(models.Model):
|
||||
help="The company for Account Jouarnal",
|
||||
check_pms_properties=True,
|
||||
)
|
||||
allowed_pms_payments = fields.Boolean(
|
||||
string="For manual payments",
|
||||
help="Use to pay for reservations",
|
||||
)
|
||||
|
||||
@@ -408,6 +408,7 @@ class PmsProperty(models.Model):
|
||||
self.ensure_one()
|
||||
payment_methods = self.env["account.journal"].search(
|
||||
[
|
||||
("allowed_pms_payments", "=", True),
|
||||
"&",
|
||||
("type", "in", ["cash", "bank"]),
|
||||
"|",
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='company_id']" position="after">
|
||||
<field name="pms_property_ids" widget="many2many_tags" />
|
||||
<field name="allowed_pms_payments" />
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user