49e59b938f3575fb38def5498b8739b2a9437ba6
If you send an email from CRM and the address you are trying to send the email to is not linked to a partner, a new partner will be created and it will use the default_ fields in the context which may not be valid for the partner Steps to reproduce: 1. Install CRM and open the app 2. Trigger the list view of the pipeline 3. Select any opportunity with the email 'ErikNFrench@armyspy.com' and click on 'EMAIL' in the top left 4. Give a subject to the email and select the template 'Welcome Demo' 5. Send the email 6. An error is thrown Solution: In res.partner's `default_get`, remove the `default_type` from the default values retreived from the context if it's not a valid type of res.partner Problem: Trying to create a partner with default_type in the context will try to give this type to the partner but 'opportunity' is not a valid partner type opw-2827177 closes odoo/odoo#93025 X-original-commit: 2b023500d1cc2322adbc51dffda4342aba5032ef Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com> Signed-off-by: Christophe Monniez (moc) <moc@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%