116dda06a767598dfdf1147e0e6baee105f5c860
On purchase journals, there is the possibility to set up an alias to automatically create vendor bills from incoming email. Three types of emails can send the bill: - the vendor, with email matching a partner in database - an internal user, possibly forwarding the bill he received from the vendor - an unknown address In the third case, the address will be ignored. In the first, we found the vendor, so he can be set as partner_id of the bill. The tricky one is the second case, where we try to guess the vendor. Before, the code would take only the first email found in the body; if it found a matching partner, then it used that partner anyway, even if that partner belonged to a user and was skipped before. After the fix, we get the partners for all emails and take arbitrarily the first vendor, then backup on the first non-user. Note also that email_addresses would duplicate every address read in the body; we make a set to avoid duplicate processing. opw 1885070 closes odoo/odoo#36399 Signed-off-by: Nans Lefebvre (len) <len@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, Purchase Management, ...
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.
Then follow the developer tutorials
Languages
Python
49.6%
JavaScript
47.8%
SCSS
2%
CSS
0.3%
HTML
0.2%