[trunk]mrp_production.cycle_total doesn't exist whn confirm sale order

Bug #633283 reported by Quentin THEURET @Amaris
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Released
Undecided
Unassigned

Bug Description

Rev 4897

When I try to confirm a sale order, I get this error :

  File "/home/quentin/Developpement/OpenERP/launchpad_6.0/server/bin/osv/orm.py", line 175, in <lambda>
    return lambda *args, **argv: attr(self._cr, self._uid, [self._id], *args, **argv)
  File "/home/quentin/Developpement/OpenERP/launchpad_6.0/addons/mrp/procurement.py", line 67, in action_produce_assign_product
    res = procurement_obj.make_mo(cr, uid, ids, context=context)
  File "/home/quentin/Developpement/OpenERP/launchpad_6.0/addons/mrp/procurement.py", line 98, in make_mo
    'company_id': procurement.company_id.id,
  File "/home/quentin/Developpement/OpenERP/launchpad_6.0/server/bin/osv/orm.py", line 3743, in create
    self._validate(cr, user, [id_new], context)
  File "/home/quentin/Developpement/OpenERP/launchpad_6.0/server/bin/osv/orm.py", line 1024, in _validate
    if not fun(self, cr, uid, ids):
  File "/home/quentin/Developpement/OpenERP/launchpad_6.0/addons/mrp/mrp.py", line 487, in _check_qty
    if order.product_qty <= 0:
  File "/home/quentin/Developpement/OpenERP/launchpad_6.0/server/bin/osv/orm.py", line 274, in __getattr__
    return self[name]
  File "/home/quentin/Developpement/OpenERP/launchpad_6.0/server/bin/osv/orm.py", line 199, in __getitem__
    field_values = self._table.read(self._cr, self._uid, ids, field_names, context=self._context, load="_classic_write")
  File "/home/quentin/Developpement/OpenERP/launchpad_6.0/server/bin/osv/orm.py", line 2976, in read
    result = self._read_flat(cr, user, select, fields, context, load)
  File "/home/quentin/Developpement/OpenERP/launchpad_6.0/server/bin/osv/orm.py", line 3053, in _read_flat
    cr.execute(query, (tuple(sub_ids),))
  File "/home/quentin/Developpement/OpenERP/launchpad_6.0/server/bin/sql_db.py", line 75, in wrapper
    return f(self, *args, **kwargs)
  File "/home/quentin/Developpement/OpenERP/launchpad_6.0/server/bin/sql_db.py", line 124, in execute
    res = self._obj.execute(query, params)
ProgrammingError: ERREUR: la colonne mrp_production.cycle_total n'existe pas
LIGNE 1 : ...ction.location_src_id,mrp_production.date_planned,mrp_produc...

Revision history for this message
JMA(Open ERP) (jma-openerp) wrote :

Hello Quentin THEURET,

The error does not come up in normal scenario.

Is there any specific configuration to be set which I am missing out?

Would you please provide more information to reach to the error?

Thank you.

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

This has been fixed by revision <email address hidden>.
Thanks.

Changed in openobject-addons:
status: New → Fix Released
milestone: none → 6.0
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.