You are here: Home OpenERP Problems and solutions Bug with module open orders
Search
Advanced Search…
E-Mail

Webmail: webmail.wyden.com

E-Mail Preferences: postfix.wyden.com/users

E-Mail Administration: postfix.wyden.com

Statistics
Total: 463
Total Pages: 284
Total Folders: 87
Total Files: 18
Total Links: 26
Last modification: 03.02.2012 16:00
 

Bug with module open orders

by Wyden Silvan last modified 19.08.2010 15:42

Whe you install the module "sale_delivery" the status of the delivery jump to 100% each time whe you confirm the order.

Solution: Change the following in the file addons/sale/sale.py and restart the OpenERP server:

...

def _picked_rate(self, cr, uid, ids, name, arg, context=None):

...

        for order in self.browse(cr, uid, ids, context):
             if res[order.id] < 100:
                 self.write(cr, uid, order.id, {'shipped' : False})
             else:
                 self.write(cr, uid, order.id, {'shipped' : True})
        #    if order.shipped:
        #        res[order.id] = 100.0

        return res