[FIX] base, account, product, hr_holidays: document layout save and print
In an onboarding situation, the company doesn't have a logo
make an invoice, send and print, print
The document layout editor's layout opens, because nothing is set up
on the company
Click Save
Before this commit, it was impossible to make the invoice print
because each time the document layout was displayed
After this commit, the invoice prints when clicking on Save
There is no default external layout for main_company
Also, the heuristic used to evaluate whether a company
has been set up, onboardingly speaking, has changed.
Before we used the existence of the logo, after we check if
a layout has been setup. When saving the document layout
modal, a report layout is written on the company
So, practically, the document layout modal only appears once
when trying to print invoices (or other documents)
closes odoo/odoo#37137
Signed-off-by:
Lucas Perais (lpe) <lpe@odoo.com>
Showing
- addons/account/models/company.py 1 addition, 1 deletionaddons/account/models/company.py
- addons/account/wizard/base_document_layout.py 2 additions, 1 deletionaddons/account/wizard/base_document_layout.py
- addons/hr_holidays/tests/test_holidays_flow.py 1 addition, 0 deletionsaddons/hr_holidays/tests/test_holidays_flow.py
- addons/product/tests/test_product_pricelist.py 6 additions, 0 deletionsaddons/product/tests/test_product_pricelist.py
- addons/web/__manifest__.py 0 additions, 1 deletionaddons/web/__manifest__.py
- addons/web/data/res_company.xml 0 additions, 8 deletionsaddons/web/data/res_company.xml
- odoo/addons/base/models/ir_actions_report.py 14 additions, 5 deletionsodoo/addons/base/models/ir_actions_report.py
- odoo/addons/base/wizard/base_document_layout.py 1 addition, 1 deletionodoo/addons/base/wizard/base_document_layout.py
Loading
Please register or sign in to comment