Commit Graph

5 Commits (e1b95da998d33ef445585ebc38b6568ec2f1424f)

Author SHA1 Message Date
Luis González 04f83bce85 [IMP] company_country: Fix and improve README and error messages
Error messages and module description are improved to be more verbose,
and some typos are fixed.
2020-04-05 17:31:13 +00:00
Luis González [Vauxoo] 837369b780 [IMP] company_country: Don't create DB table for model (#1791)
That model is intended only to set config and has no fields, so there is
no need for creating a DB table for it. This is achieved by switching
the model type from transient to abstract.
2020-04-05 17:28:27 +00:00
Luis González [Vauxoo] 8e0d78ea80 [FIX] company_country: Don't fail if account is already installed (#1786)
* [FIX] company_country: Don't fail if account is already installed

When `company_country` is installed, it performs the following:
- Look for the `COUNTRY` environment variable
- If not found, look for a `l10n_*` module that is about to be installed
- If not found, raise an exception

However, If the account module is installed, it shouldn't fail even if
the environment variable is not defined, because changing the
company's country will have no effect anyway, as the account hook was
already run and an `l10n` module was already been installed.

This commit fixes the above by skipping the process if the `account`
module is installed, and print an informative message to the log.

* Update __manifest__.py

Co-authored-by: Moises Lopez - https://www.vauxoo.com/ <moylop260@vauxoo.com>
2020-04-05 17:28:09 +00:00
Moisés López a3ee13d016 [MIG] company_country: Migration to 13.0 2019-11-19 17:20:55 +00:00
Moisés López df9f591d79
[ADD] company_country: Set company.country value early to use account hook to install l10n_* modules and avoid installing generic_account
Allow to use account._auto_install_l10n without install `l10n_generic_coa`
2019-11-13 18:55:31 -06:00