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>
35 lines
932 B
Python
35 lines
932 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
|
|
|
{
|
|
'name': 'Web',
|
|
'category': 'Hidden',
|
|
'version': '1.0',
|
|
'description':
|
|
"""
|
|
Odoo Web core module.
|
|
========================
|
|
|
|
This module provides the core of the Odoo Web Client.
|
|
""",
|
|
'depends': ['base'],
|
|
'auto_install': True,
|
|
'data': [
|
|
'security/ir.model.access.csv',
|
|
'views/webclient_templates.xml',
|
|
'views/report_templates.xml',
|
|
'data/report_layout.xml',
|
|
],
|
|
'qweb': [
|
|
"static/src/xml/base.xml",
|
|
"static/src/xml/chart.xml",
|
|
"static/src/xml/kanban.xml",
|
|
"static/src/xml/menu.xml",
|
|
"static/src/xml/notification.xml",
|
|
"static/src/xml/rainbow_man.xml",
|
|
"static/src/xml/report.xml",
|
|
"static/src/xml/web_calendar.xml",
|
|
],
|
|
'bootstrap': True, # load translations for login screen
|
|
}
|