From 8a5a6dc2fa7ec72b7f9e27bb58abf1a6f1386f4b Mon Sep 17 00:00:00 2001 From: Antoine Boonen Date: Fri, 20 Oct 2023 10:51:27 +0200 Subject: [PATCH] [FIX] account_peppol: Fetch button not showing when after peppol setup Problem --------- Directly after setting up peppol, the fetch button on the purchase journal (in the dashboard) is not showing. Objective --------- Make sure the button is shown directly after the journal is set up. Solution --------- When setting up peppol, the compute function that computes the peppol purchase account is triggered. However, this function would not set up the journal's `is_peppol_journal` to true. Thus, no button was showing. Adding that line solves the issue. task-####### closes odoo/odoo#139293 Signed-off-by: Aliya Tastemirova (alta) --- addons/account_peppol/models/res_company.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/account_peppol/models/res_company.py b/addons/account_peppol/models/res_company.py index 7f4e20167d0..ae69c92193f 100644 --- a/addons/account_peppol/models/res_company.py +++ b/addons/account_peppol/models/res_company.py @@ -150,6 +150,7 @@ class ResCompany(models.Model): *self.env['account.journal']._check_company_domain(company), ('type', '=', 'purchase'), ], limit=1) + company.peppol_purchase_journal_id.is_peppol_journal = True else: company.peppol_purchase_journal_id = False