product/product.py doubt: is normal to see the same field twice in _defaults?

Bug #740858 reported by Jordi Francesc
8
This bug affects 1 person
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://bazaar.launchpad.net/~openerp/openobject-addons/6.0/view/3775/product/product.py#L311

294
    _defaults = {
295
        'company_id': lambda s,cr,uid,c: s.pool.get('res.company')._company_default_get(cr, uid, 'product.template', context=c),
***296* **
        'type': lambda *a: 'product',
297
        'list_price': lambda *a: 1,
298
        'cost_method': lambda *a: 'standard',
299
        'supply_method': lambda *a: 'buy',
300
        'standard_price': lambda *a: 1,
301
        'sale_ok': lambda *a: 1,
302
        'sale_delay': lambda *a: 7,
303
        'produce_delay': lambda *a: 1,
304
        'purchase_ok': lambda *a: 1,
305
        'procure_method': lambda *a: 'make_to_stock',
306
        'uom_id': _get_uom_id,
307
        'uom_po_id': _get_uom_id,
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

Amit Parik (amit-parik)
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
Revision history for this message
Rohan Nayani(Open ERP) (ron-tinyerp) wrote :

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,

Changed in openobject-addons:
status: In Progress → Fix Committed
qdp (OpenERP) (qdp)
Changed in openobject-addons:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.