8e6d1d7d243c2a35f34db9ab16c0136a5e0bd81a
If we change ``active_model`` in context, we have to reset active_id(s), otherwise we read a random records which may not exist. STEPS: 1. Activate Developer mode 2. Go to Settings > Technical > Automation > Automated Actions 3. Define a new Automated Action with the following settings: - Model: Lead/Opportunity - Action To Do: Execute Python Code - Trigger: Based on Form Modification - Trigger Fields: Customer (crm.lead) - Python Code: ``` raise Warning(records) ``` 4. Go to Contacts, create a new contact and save it. 5. Click on the "Opportunities" Smart Button on the top left of the contact record. 6. Click "Create". BEFORE: ``records`` in context read crm.lead, while id is for res.partner record AFTER: ``records`` is None --- opw-2424392 closes odoo/odoo#64421 X-original-commit: 6fd6d68ee6eee6460ffda8b7dd691c0ef93b7a30 Signed-off-by: Ivan Yelizariev // IEL <yelizariev@users.noreply.github.com> Signed-off-by: Raphael Collet (rco) <rco@openerp.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%