481806137c713019c507cb320e5dc5b17565e438
Fixes 2 issues: 1 - odoo/odoo#61027 made mrp.routing.workcenter.company_id = self.bom_id.company_id. This made it so the work center selection is empty until a BoM is selected, which is confusing to users. To make it less confusing, we switch the order since we expect users to fill in the fields from top to bottom. 2 - odoo/odoo#65628 made it so the BoM can be changed. This made it so it's possible to save the record and have the company of the BoM and the work center not match. This can lead to a usererror when users try to start the WO associated with the operation. Steps to reproduce: - create a new operation from Configuration > Operations - select a BoM from company 1 and a Work Center from company 1 + save - edit and change BoM to a BoM from company 2 and DO NOT change the Work Center Expected result: save error Actual result: Save will be allowed, but WO will throw an usererror when you try to start it. To fix this, we prevent the user from saving when the workcenter company does not match the BoM's (if both have a company_id assigned). closes odoo/odoo#80337 Task: 2682365 X-original-commit: f77c9560ad304940610d797018246a8f5d32f721 Signed-off-by: Arnold Moyaux <arm@odoo.com> Signed-off-by: Tiffany Chang <tic@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%