mirror of
https://github.com/OCA/pms.git
synced 2025-01-29 00:17:45 +02:00
22 lines
626 B
Python
22 lines
626 B
Python
from odoo import fields, models
|
|
|
|
|
|
class AccountJournal(models.Model):
|
|
_inherit = "account.journal"
|
|
|
|
pms_property_ids = fields.Many2many(
|
|
string="Properties",
|
|
help="Properties with access to the element;"
|
|
" if not set, all properties can access",
|
|
comodel_name="pms.property",
|
|
ondelete="restrict",
|
|
relation="account_journal_pms_property_rel",
|
|
column1="account_journal_id",
|
|
column2="pms_property_id",
|
|
)
|
|
company_id = fields.Many2one(
|
|
string="Company",
|
|
help="The company for Account Jouarnal",
|
|
check_pms_properties=True,
|
|
)
|