Commit Graph
7 Commits
Author SHA1 Message Date
Fabien Pinckaers 10a5796d4b [IMP] speed up load_menus() by using SVG icons instead of png
Reduces load_menus answer size by 32% (between 20kb and 200kb savings
for the initial loading of the backend, depending on the number of apps
installed). Support for SVG icons in the web client for menus/apps.

Reduced PNG icons for apps list (8 bits PNG instead of 24 as our icons
don't need more colors as they are flat designs)

closes odoo/odoo#84280

Related: odoo/enterprise#24200
Signed-off-by: Fabien Pinckaers <fp@odoo.com>
2022-02-12 08:55:18 +00:00
wan d31c5c70e0 [IMP] account: make demo data for all localization
Task 2124952

Extract all the demo data from `l10n_generic_coa` to a new way of
generating the demo data for accounting modules.
Because the data needs to be created multiple times, and right after the
chart template instanciation, it cannot be done the usual way. Instead,
we use python generators to declare the data. It allows us to reference
data that was not created yet at the start of the creation of the demo.
An xml_id is given, prefixed with the id of the company it is created
for (just like the instanciation of the chart template)

To find the correct accounts, a helper method has been added to
`account.account`. It will look for an account with the correct xml_id
(which is the one of the l10n_generic_coa, that we have to put on the
other l10n modules too, in the future). If it didn't find the xml_id, it
will look for an account with the correct type. If it still didn't find
one, just take any account.
2021-02-17 08:39:28 +00:00
wan 8aa68445a6 [IMP] l10n_*: remove icon.png and use country_fla from base
* We are gaining ~1.2MB by doing this.
* The flags are unified with the same looks.
* Some flags were missing.
2021-01-15 15:56:47 +00:00
wan 9071e1c1b9 [IMP] account,l10n_generic_coa: add taxes to demo invoice and remove pdf
Task 2206499

We have to call the onchanges manually in order to compute the taxes
We don't want pdf's because they are not consistent with the data.
* Generated pdf would depend on the company details, set during the
  demo steps
* Generating a pdf would need to be done through a cron because
  wkhtmltopdf needs the web server to be running at install time, which
  is not the case. This has been judged too complicated and not worth.
* Hard coded pdf would also depend on the l10n, the date.

closes odoo/odoo#53279

X-original-commit: c41cedef8f0a75ad795a7bd22f96f990e3f0d483
Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
2020-06-19 07:11:48 +00:00
oco-odoo 7c25f20ef6 [IMP] account: add pdf attachment to the demo bank statement
So that it can be visible in the groupby view, in enterprise.

closes odoo/odoo#36910

Signed-off-by: Laurent Smet <smetl@users.noreply.github.com>
2019-09-16 08:29:28 +00:00
Laurent Smet 7965c890c4 [IMP] l10n_generic_coa: Improve demo data
To get a better overview of the groupy view like "Sales Journal",
we need some attachments on invoices.

Furthermore, the product's label was missing on all invoice lines.

closes odoo/odoo#36573

Signed-off-by: oco-odoo <oco-odoo@users.noreply.github.com>
2019-09-11 14:26:52 +00:00
fda-odoo 8eb76675dd [IMP] l10n_generic_coa : adding demodata for OCREmpty invoice with an attachment in order to demonstrate OCR feature 2018-09-26 18:31:38 +02:00