Merge branch 'new/13.0/l10n_us_hr_payroll_account' into '13.0-test'

new/13.0/l10n_us_hr_payroll_account into 13.0-test

See merge request hibou-io/hibou-odoo/suite!281
This commit is contained in:
Hibou Bot
2020-02-05 22:08:39 +00:00

View File

@@ -68,8 +68,9 @@ class AccountChartTemplate(models.Model):
'company_id': company.id,
'default_credit_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([{
'name': 'structure_journal_id',