refactor: remove domain filters and disable check_company on inter-company account fields

This commit is contained in:
Suherdy Yacob 2026-05-06 14:18:01 +07:00
parent 6330fd914c
commit 30d319dc69

View File

@ -24,13 +24,12 @@ class AccountJournal(models.Model):
parent_intercompany_account_id = fields.Many2one( parent_intercompany_account_id = fields.Many2one(
'account.account', 'account.account',
string='Parent Inter-company Account', string='Parent Inter-company Account',
domain="[('company_ids', 'in', parent_company_id)]",
check_company=False, check_company=False,
help="The Hubungan RK account in the parent company to debit (Receivable from branch)." help="The Hubungan RK account in the parent company to debit (Receivable from branch)."
) )
branch_intercompany_account_id = fields.Many2one( branch_intercompany_account_id = fields.Many2one(
'account.account', 'account.account',
string='Branch Inter-company Account', string='Branch Inter-company Account',
domain="[('company_ids', 'in', company_id)]", check_company=False,
help="The Hubungan RK account in the branch company to credit (Liability to parent)." help="The Hubungan RK account in the branch company to credit (Liability to parent)."
) )