[6.1][7.0][trunk] Search for product and product category is not made for a daily use
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Confirmed
|
Medium
|
OpenERP R&D Addons Team 3 | |||
OpenERP Community Backports (Addons) | Status tracked in 7.0 | |||||
6.1 |
Fix Committed
|
Low
|
Yann Papouin | |||
7.0 |
New
|
Undecided
|
Unassigned |
Bug Description
The name_search method does not take into account common case in daily use (see examples below), the user should not have to remove the brackets to have a match:
Consider a product A:
- default_code = 'REFA'
- name = 'My product A'
Consider a product B:
- default_code = 'REFB'
- name = 'My product B
The current name_get returns:
- [REFA] My product A
If the user edit the name_get the following cases are not allowing to retrieve any of the products above:
- [REFA
- [REF
Another model case: product.category, the user should be able to retrieve a category even when the category separator is used. Consider the following categories:
- All products / Main Group / Group A
- All products / Main Group / Group B
- All products / Main Group / Group C
- All products / Another Group / Group A
- All products / Another Group / Group B
If the user edit the name_get the following cases are not allowing to retrieve any of the categories above:
- All products / Main Group / Group A
- All products / Main Group / Grou
- All products / Main Group /
- All products / Main
Related branches
- Holger Brunn (Therp): Needs Information
-
Diff: 91 lines (+50/-3)1 file modifiedproduct/product.py (+50/-3)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3) |
importance: | Undecided → Medium |
status: | New → Confirmed |
See my proposal attached