update the price based on scheduler

Bug #1323851 reported by Dhara Shah (OpenERP)
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
coffeeopenerp
Fix Released
Critical
Jigar A.

Bug Description

update the price based on scheduler

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

This should update all master quotes items when the quote valid thru field - ( need to add to quotation/sales order) is not set or past the valid date.

Changed in coffeeopenerp:
importance: Undecided → High
Revision history for this message
E.R. Spada II (er-k) wrote :

This field has not been added to the quotation/sales order. Dhara agreed that a cron job can run once a day to updated pricing to all quotes that is not set or past the valid date.

Changed in coffeeopenerp:
assignee: nobody → Dhara Shah (OpenERP) (dsh-openerp)
status: New → Confirmed
E.R. Spada II (er-k)
Changed in coffeeopenerp:
status: Confirmed → In Progress
Revision history for this message
E.R. Spada II (er-k) wrote :

This has been updated but fails during cron:2014-08-16 00:22:14,666 7701 ERROR Chris_Coffee_Test_8_12 openerp.addons.base.ir.ir_cron: Call of self.pool.get('sale.order')._check_valid_thru(cr, uid, *()) failed in Job 16
Traceback (most recent call last):
  File "/opt/openerp/v7/server/openerp/addons/base/ir/ir_cron.py", line 136, in _callback
    method(cr, uid, *args)
  File "/opt/openerp/v7/chris_coffee/ccoffee_delivery/sale.py", line 165, in _check_valid_thru
    context={'uom': order_line.product_id.uom_id.id,'date': datetime.now().strftime("%Y-%m-%d")})[pricelist]
AttributeError: 'NoneType' object has no attribute 'id'

Changed in coffeeopenerp:
status: In Progress → Confirmed
importance: High → Critical
assignee: Dhara Shah (OpenERP) (dsh-openerp) → nobody
assignee: nobody → Jigar (OpenERP) (jam-openerp)
Revision history for this message
E.R. Spada II (er-k) wrote :

Valid though date was removed from form, so will not function and I cannot test the fix.

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