57b713cb7e5dc03d20be43c26e7a5a7d6e99cfa8
When bank statements are imported using Enterprise's account_online_synchronization, or when invoices are created from incoming email using mail aliases on `account.journal`, journal entries can end up with a fiscal position from the default company of the user that the `account.move` creation runs as, or the import fails with an error "'Draft Entry' belongs to company X and 'Fiscal Position' belongs to another company". While account.move's `_compute_fiscal_company_id` calls `account.fiscal.position`'s `_get_fiscal_position` with actual company of the move, it passes one or two `res.partner` records to this method that were still browsed with the default company of the executing user which could result in a fiscal position from that company, instead of the company of the journal entry. closes odoo/odoo#141059 X-original-commit: 71bd4f1378f56b333830cbc5aa11c1c55dcefcc3 Signed-off-by: William André (wan) <wan@odoo.com> Co-authored-by: William Andre <wan@odoo.com>
…
…
…
Odoo
Odoo is a suite of web based open source business apps.
The main Odoo Apps include an Open Source CRM, Website Builder, eCommerce, Warehouse Management, Project Management, Billing & Accounting, Point of Sale, Human Resources, Marketing, Manufacturing, ...
Odoo Apps can be used as stand-alone applications, but they also integrate seamlessly so you get a full-featured Open Source ERP when you install several Apps.
Getting started with Odoo
For a standard installation please follow the Setup instructions from the documentation.
To learn the software, we recommend the Odoo eLearning, or Scale-up, the business game. Developers can start with the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%