[FIX] hr_payroll_account: salaries journal
Before this PR, when installing the module. A Traceback could happen if you already have a journal with a code SAL. This PR remove from the demo data the adding of the journal and is replaced by a post init hook to check if the journal is present, if not then add it. In addition, we use the journal for hr_payroll_structure so in the post init hook, we had the journal for the structure that needed it. closes odoo/odoo#114758 Task-id: 3271099 Signed-off-by: John Laterre (jol) <jol@odoo.com>
This commit is contained in:
@@ -1,25 +1,25 @@
|
||||
"id","description","invoice_label","type_tax_use","name","amount_type","amount","repartition_line_ids/repartition_type","repartition_line_ids/tag_ids","repartition_line_ids/document_type","repartition_line_ids/account_id"
|
||||
"tax_ST1",ST1,"ST1","sale","11%","percent","11.0","base","l10n_id.ppn_tag","invoice",""
|
||||
"tax_ST1","ST1","ST1","sale","11%","percent","11.0","base","l10n_id.ppn_tag","invoice",""
|
||||
"","","","","","","","tax","","invoice","l10n_id_21221020"
|
||||
"","","","","","","","base","l10n_id.ppn_tag","refund",""
|
||||
"","","","","","","","tax","","refund","l10n_id_21221020"
|
||||
"tax_PT1",PT1,"PT1","purchase","11%","percent","11.0","base","l10n_id.ppn_tag","invoice",""
|
||||
"tax_PT1","PT1","PT1","purchase","11%","percent","11.0","base","l10n_id.ppn_tag","invoice",""
|
||||
"","","","","","","","tax","","invoice","l10n_id_21221010"
|
||||
"","","","","","","","base","l10n_id.ppn_tag","refund",""
|
||||
"","","","","","","","tax","","refund","l10n_id_21221010"
|
||||
"tax_ST0",ST0,"ST0","sale","0%","percent","0.0","base","","invoice",""
|
||||
"tax_ST0","ST0","ST0","sale","0%","percent","0.0","base","","invoice",""
|
||||
"","","","","","","","tax","","invoice","l10n_id_21221020"
|
||||
"","","","","","","","base","","refund",""
|
||||
"","","","","","","","tax","","refund","l10n_id_21221020"
|
||||
"tax_ST2",ST2,"ST2","sale",0% EXEMPT,"percent","0.0","base","","invoice",""
|
||||
"tax_ST2","ST2","ST2","sale","0% EXEMPT","percent","0.0","base","","invoice",""
|
||||
"","","","","","","","tax","","invoice","l10n_id_21221020"
|
||||
"","","","","","","","base","","refund",""
|
||||
"","","","","","","","tax","","refund","l10n_id_21221020"
|
||||
"tax_PT2",PT2,"PT2","purchase",0% EXEMPT,"percent","0.0","base","","invoice",""
|
||||
"tax_PT2","PT2","PT2","purchase","0% EXEMPT","percent","0.0","base","","invoice",""
|
||||
"","","","","","","","tax","","invoice","l10n_id_21221010"
|
||||
"","","","","","","","base","","refund",""
|
||||
"","","","","","","","tax","","refund","l10n_id_21221010"
|
||||
"tax_PT0",PT0,"PT0","purchase","0%","percent","0.0","base","","invoice",""
|
||||
"tax_PT0","PT0","PT0","purchase","0%","percent","0.0","base","","invoice",""
|
||||
"","","","","","","","tax","","invoice","l10n_id_21221010"
|
||||
"","","","","","","","base","","refund",""
|
||||
"","","","","","","","tax","","refund","l10n_id_21221010"
|
||||
|
||||
|
Reference in New Issue
Block a user