Dhruti Shastri has proposed merging 
lp:~openerp-dev/openobject-addons/6.1-opw-584466-dhs into 
lp:openobject-addons/6.1.

Requested reviews:
  Naresh(OpenERP) (nch-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-584466-dhs/+merge/146559

If a PO is automatically generated by a sale order of a mto/buy product the 
sale order date seem to be incorrect.
PO date should contain the date of the day when the PO is created, instead it 
will reflect that date plus the delivery times of the goods.

Even if we set lead time zero default configuration set delay by one. This 
patch will fix the issue.


-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-584466-dhs/+merge/146559
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.1-opw-584466-dhs.
=== modified file 'product/product.py'
--- product/product.py	2012-04-03 13:05:28 +0000
+++ product/product.py	2013-02-05 06:03:25 +0000
@@ -278,7 +278,7 @@
             main_supplier = self._get_main_product_supplier(cr, uid, product, context=context)
             result[product.id] = {
                 'seller_info_id': main_supplier and main_supplier.id or False,
-                'seller_delay': main_supplier and main_supplier.delay or 1,
+                'seller_delay': main_supplier and main_supplier.delay or 0,
                 'seller_qty': main_supplier and main_supplier.qty or 0.0,
                 'seller_id': main_supplier and main_supplier.name.id or False
             }

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : openerp-dev-gtk@lists.launchpad.net
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to