From 3551b7f9df2e3e428ae5c6fac83a3a39d3b1a085 Mon Sep 17 00:00:00 2001 From: "Maximilien (malb)" Date: Tue, 9 May 2023 14:12:56 +0000 Subject: [PATCH] [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) --- addons/l10n_id/data/template/account.tax-id.csv | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/addons/l10n_id/data/template/account.tax-id.csv b/addons/l10n_id/data/template/account.tax-id.csv index 73ee59a7a38..854a84a3197 100644 --- a/addons/l10n_id/data/template/account.tax-id.csv +++ b/addons/l10n_id/data/template/account.tax-id.csv @@ -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"