diff options
| author | Prakash Prajapati <ppr@odoo.com> | 2018-02-21 18:42:59 +0530 |
|---|---|---|
| committer | Goffin Simon <sig@odoo.com> | 2018-05-07 15:41:31 +0200 |
| commit | 7c7b0992734ded9e72a04e4a412582763cff9a79 (patch) | |
| tree | 74685b9a266d2fb681bf0653af44b6aca9b6d7d1 /addons/web_editor/static/lib/summernote/src | |
| parent | 9da8378a0ac55abeac6a96f90e7deb5e774b3b91 (diff) | |
[FIX] stock: Quantity available according to the warehouse or location
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
Diffstat (limited to 'addons/web_editor/static/lib/summernote/src')
0 files changed, 0 insertions, 0 deletions
