product/product.py doubt: is normal to see the same field twice in _defaults?
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Released
|
Low
|
OpenERP R&D Addons Team 2 |
Bug Description
the 'type' field of product_template class appears twice in _defaults. is that normal?
thanks!
http://
294
_defaults = {
295
***296* **
'type': lambda *a: 'product',
297
298
299
300
301
'sale_ok': lambda *a: 1,
302
303
304
305
306
'uom_id': _get_uom_id,
307
308
'uos_coeff' : lambda *a: 1.0,
309
'mes_type' : lambda *a: 'fixed',
310
'categ_id' : _default_category,
***311* **
'type' : lambda *a: 'consu',
312
}
Related branches
- Rucha (Open ERP) (community): Approve
- qdp (OpenERP): Pending requested
-
Diff: 11 lines (+0/-1)1 file modifiedproduct/product.py (+0/-1)
Changed in openobject-addons: | |
assignee: | nobody → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
importance: | Undecided → Low |
status: | New → Confirmed |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
Changed in openobject-addons: | |
status: | Fix Committed → Fix Released |
Hello,
Thanks for Reporting.
It has been fixed in lp:~openerp-dev/openobject-addons/trunk-bug-740858-ron
Revision ID: <email address hidden>
Revision num:4572.
It will be available in trunk soon,