Revision 49 Causes Validation error on Duplicate

Bug #1351785 reported by E.R. Spada II
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
coffeeopenerp
Fix Released
Critical
Dhara Shah (OpenERP)

Bug Description

HI,
I updated the latest branch - 8/2/14 and now you get a validation ERROR on Route Day - Order Date, when duplicate a quote normal, master, or run route wizard. I removed the contraint so I could test the other changes.

[8/2/14, 7:04:42 PM] E.R Spada II: HI,
[8/2/14, 7:05:10 PM] E.R Spada II: Cannot duplicates quotation ERRROR: /Aug/2014 23:02:36] "POST /web/dataset/search_read HTTP/1.1" 200 -
2014-08-02 23:03:07,461 15718 ERROR Chris_Master_6_4 openerp.netsvc: ValidateError
Error occurred while validating the field(s) date_order, timeslot_parent_id: The Date Order and Route Return Day doesn't match.
Traceback (most recent call last):
  File "/opt/openerp/v7/server/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/v7/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 190, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/v7/addons/audittrail/audittrail.py", line 524, in execute_cr
    return fct_src(cr, uid, model, method, *args, **kw)
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/v7/cc_addons/ccoffee_delivery/sale.py", line 91, in copy
    res = super(sale_order, self).copy(cr, uid, ids, default=default, context=context)
  File "/opt/openerp/v7/cc_addons/ccoffee_sale/sale.py", line 87, in copy
    return super(sale_order, self).copy(cr, uid, id, default=default, context=context)
  File "/opt/openerp/v7/addons/sale_stock/sale_stock.py", line 49, in copy
    return super(sale_order, self).copy(cr, uid, id, default, context=context)
  File "/opt/openerp/v7/addons/sale/sale.py", line 80, in copy
    return super(sale_order, self).copy(cr, uid, id, default, context=context)
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 5123, in copy
    new_id = self.create(cr, uid, data, context)
  File "/opt/openerp/v7/cc_addons/ccoffee_delivery/sale.py", line 109, in create
    sale_id = super(sale_order, self).create(cr, uid, vals, context=context)
  File "/opt/openerp/v7/cc_addons/ccoffee_sale/sale.py", line 76, in create
    sale_id = super(sale_order, self).create(cr, uid, vals, context=context)
  File "/opt/openerp/v7/addons/sale_stock/sale_stock.py", line 75, in create
    order = super(sale_order, self).create(cr, uid, vals, context=context)
  File "/opt/openerp/v7/addons/sale/sale.py", line 338, in create
    return super(sale_order, self).create(cr, uid, vals, context=context)
  File "/opt/openerp/v7/addons/mail/mail_thread.py", line 252, in create
    thread_id = super(mail_thread, self).create(cr, uid, values, context=context_operation)
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 4547, in create
    self._validate(cr, user, [id_new], context)
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 1562, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
except_osv: ('ValidateError', u"Error occurred while validating the field(s) date_order, timeslot_parent_id: The Date Order and Route Return Day doesn't match.")
2014-08-02 23:03:07,463 15718 INFO Chris_Master_6_4 werkzeug: 127.0.0.1 - - [02/Aug/2014 23:03:07] "POST /web/dataset/call_kw/sale.order:copy HTTP/1.1" 200 -
2014-08-02 23:03:25,426 15718 ERROR Chris_Master_6_4 openerp.netsvc: ValidateError
Error occurred while validating the field(s) date_order, timeslot_parent_id: The Date Order and Route Return Day doesn't match.
Traceback (most recent call last):
  File "/opt/openerp/v7/server/openerp/netsvc.py", line 296, in dispatch_rpc
    result = ExportService.getService(service_name).dispatch(method, params)
  File "/opt/openerp/v7/server/openerp/service/web_services.py", line 626, in dispatch
    res = fn(db, uid, *params)
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 190, in execute_kw
    return self.execute(db, uid, obj, method, *args, **kw or {})
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 132, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 199, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/opt/openerp/v7/addons/audittrail/audittrail.py", line 524, in execute_cr
    return fct_src(cr, uid, model, method, *args, **kw)
  File "/opt/openerp/v7/server/openerp/osv/osv.py", line 187, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/opt/openerp/v7/cc_addons/ccoffee_delivery/sale.py", line 91, in copy
    res = super(sale_order, self).copy(cr, uid, ids, default=default, context=context)
  File "/opt/openerp/v7/cc_addons/ccoffee_sale/sale.py", line 87, in copy
    return super(sale_order, self).copy(cr, uid, id, default=default, context=context)
  File "/opt/openerp/v7/addons/sale_stock/sale_stock.py", line 49, in copy
    return super(sale_order, self).copy(cr, uid, id, default, context=context)
  File "/opt/openerp/v7/addons/sale/sale.py", line 80, in copy
    return super(sale_order, self).copy(cr, uid, id, default, context=context)
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 5123, in copy
    new_id = self.create(cr, uid, data, context)
  File "/opt/openerp/v7/cc_addons/ccoffee_delivery/sale.py", line 109, in create
    sale_id = super(sale_order, self).create(cr, uid, vals, context=context)
  File "/opt/openerp/v7/cc_addons/ccoffee_sale/sale.py", line 76, in create
    sale_id = super(sale_order, self).create(cr, uid, vals, context=context)
  File "/opt/openerp/v7/addons/sale_stock/sale_stock.py", line 75, in create
    order = super(sale_order, self).create(cr, uid, vals, context=context)
  File "/opt/openerp/v7/addons/sale/sale.py", line 338, in create
    return super(sale_order, self).create(cr, uid, vals, context=context)
  File "/opt/openerp/v7/addons/mail/mail_thread.py", line 252, in create
    thread_id = super(mail_thread, self).create(cr, uid, values, context=context_operation)
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 4547, in create
    self._validate(cr, user, [id_new], context)
  File "/opt/openerp/v7/server/openerp/osv/orm.py", line 1562, in _validate
    raise except_orm('ValidateError', '\n'.join(error_msgs))
except_osv: ('ValidateError', u"Error occurred while validating the field(s) date_order, timeslot_parent_id: The Date Order and Route Return Day doesn't match.")
2014-08-02 23:03:25,428 15718 INFO Chris_Master_6_4 werkzeug: 127.0.0.1 - - [02/Aug/2014 23:03:25] "POST /web/dataset/call_kw/sale.order:copy HTTP/1.1" 200 -

Revision history for this message
E.R. Spada II (er-k) wrote :

I had to remove the contraint so I could load test data. But I cannot do anything with it in place.
TX,
ER

E.R. Spada II (er-k)
Changed in coffeeopenerp:
status: New → 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.