7c7b0992734ded9e72a04e4a412582763cff9a79
The goal of this change is not to be able to search a location_id/warehouse_id but to properly make these fields "dummy": only used to put some keys in context from the search view in order to influence computed field. Use case: In function _compute_quantities_dict, the quantity available for a product is computed according to the warehouse or the location. But to compute this quantity, the specific warehouse or location must be in the context. Steps to reproduce: - In the tree view of product.product, write the name of a warehouse W - Click on dropdown menu "Search warehouse" - Click on W Expected behavior: the quantities available for W are displayed. NB: search=lambda operator, operand, vals: [] must be written to ensure these fields to be searchable. Otherwise "Non-stored field product.template.warehouse_id cannot be searched." was logged. opw:1839961
…
…
…
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%