mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
@@ -47,3 +47,4 @@ from . import account_journal
|
||||
from . import pms_availability
|
||||
from . import res_partner_id_number
|
||||
from . import pms_automated_mails
|
||||
from . import payment_transaction
|
||||
|
||||
@@ -2,14 +2,14 @@ from odoo import fields, models
|
||||
|
||||
|
||||
class PaymentTransaction(models.Model):
|
||||
_name = "payment.transaction"
|
||||
_inherit = "payment.transaction"
|
||||
|
||||
folio_ids = fields.Many2many(
|
||||
string="Folios",
|
||||
comodel_name="pms.folio",
|
||||
ondelete="cascade",
|
||||
relation="account_bank_statement_folio_rel",
|
||||
column1="account_journal_id",
|
||||
relation="payment_transaction_folio_rel",
|
||||
column1="payment_transaction_id",
|
||||
column2="folio_id",
|
||||
)
|
||||
|
||||
|
||||
@@ -185,9 +185,9 @@ class PmsFolio(models.Model):
|
||||
readonly=True,
|
||||
copy=False,
|
||||
comodel_name="payment.transaction",
|
||||
relation="folio_transaction_rel",
|
||||
relation="payment_transaction_folio_rel",
|
||||
column1="folio_id",
|
||||
column2="transaction_id",
|
||||
column2="payment_transaction_id",
|
||||
)
|
||||
payment_ids = fields.Many2many(
|
||||
string="Bank Payments",
|
||||
|
||||
Reference in New Issue
Block a user