[6.1] [7.0] product_custom_attributes, production_lot_custom_attributes: open by attribute set crashes on launguages other than English and French
Affects | Status | Importance | Assigned to | Milestone | ||
---|---|---|---|---|---|---|
OpenERP Product Attributes | Status tracked in 7.0 | |||||
6.1 |
Fix Released
|
High
|
Leonardo Pistone | |||
7.0 |
Fix Released
|
High
|
Leonardo Pistone |
Bug Description
To reproduce on v7:
- install product_
- choose a language where "information" does not translate to "information". In my case, Italian
- open product by attribute set, select any set
- open or create a product
It crashes with message:
info_page = eview.xpath(
IndexError: list index out of range
Same problem happens with production_
I pushed a workaround branch to better understand the problem: (I am not linking it to this bug because it is a nasty workaround)
Analysis: the problem is probably due to the fact that the function "_" doesn't look in the right module.
Related branches
- Alexandre Fayolle - camptocamp: Approve (code review, no test)
- Romain Deheele - Camptocamp (community): Approve (code review)
- Pedro Manuel Baeza: Approve (code review)
-
Diff: 84 lines (+25/-6)2 files modifiedproduct_custom_attributes/product.py (+15/-3)
production_lot_custom_attributes/lot.py (+10/-3)
- Yannick Vaucher @ Camptocamp: Approve (code review)
- Romain Deheele - Camptocamp (community): Approve (code review)
- Pedro Manuel Baeza: Approve (code review)
-
Diff: 40 lines (+10/-3)1 file modifiedproduction_lot_custom_attributes/lot.py (+10/-3)
Changed in openerp-product-attributes: | |
assignee: | nobody → Leonardo Pistone - camptocamp (lpistone) |
Changed in openerp-product-attributes: | |
status: | New → Fix Committed |
Hi, Leonardo, isn't enough to remove translate method _() on eview.xpath call?, that is to say:
info_page = eview.xpath( "//page[ @string= '%s']" % ('Stock Moves'))[0]
Regards.