diff options
| author | Lucas Perais (lpe) <lpe@odoo.com> | 2018-12-06 12:14:05 +0000 |
|---|---|---|
| committer | Lucas Perais (lpe) <lpe@odoo.com> | 2018-12-06 16:21:09 +0000 |
| commit | d40956c7909bffa338fd0138565044571e852da3 (patch) | |
| tree | d0f538cba5ff4ed070eb4e5e8aca491c69e0990e /addons/web/static/src/js/fields/basic_fields.js | |
| parent | 6d3ada178f7caf6ea159b871648ca4c440c7845b (diff) | |
[FIX] account: install a chart of account on another company
1. Create odoo instance with "--without-demo=ALL" option.
2. Install Accounting module.
3. Add Chart of Accounts manually (e.g. code 111111 Bank and Cash and 222222 Other Income)
4. Create Journal.
5. Create Journal Entries.
6. Activate multi-company.
7. Set new company to current user and set the new company as current company.
8. Install accounting localization: Accounting >> Configuration >> Settings >> Install More Packages >> (install any localization module)
Before this commit, there was an error because when installing any module,
the environment in which it happens is in uid = 1 and doesn't have a context anymore
Thus, when arriving in the charts of accounts code, the env's user is still 1
Which doesn't mean anything in V12, since it is the system user
After this commit, the user is retrieved from the request
OPW 1911677
closes odoo/odoo#29310
Diffstat (limited to 'addons/web/static/src/js/fields/basic_fields.js')
0 files changed, 0 insertions, 0 deletions
