mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
FIX l10n_us_hr_payroll_account Cannot create journal with optional field from hr_payroll_payment
This commit is contained in:
@@ -68,8 +68,9 @@ class AccountChartTemplate(models.Model):
|
|||||||
'company_id': company.id,
|
'company_id': company.id,
|
||||||
'default_credit_account_id': accounts[SALARY_EXPENSES].id,
|
'default_credit_account_id': accounts[SALARY_EXPENSES].id,
|
||||||
'default_debit_account_id': accounts[SALARY_EXPENSES].id,
|
'default_debit_account_id': accounts[SALARY_EXPENSES].id,
|
||||||
'payroll_entry_type': 'grouped',
|
|
||||||
})
|
})
|
||||||
|
if hasattr(journal, 'payroll_entry_type'):
|
||||||
|
journal.payroll_entry_type = 'grouped'
|
||||||
|
|
||||||
self.env['ir.property'].create([{
|
self.env['ir.property'].create([{
|
||||||
'name': 'structure_journal_id',
|
'name': 'structure_journal_id',
|
||||||
|
|||||||
Reference in New Issue
Block a user