Merge lp:~openerp-dev/openobject-addons/6.1-opw-584466-dhs into lp:openobject-addons/6.1

Proposed by Dhruti Shastri(OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/6.1-opw-584466-dhs
Merge into: lp:openobject-addons/6.1
Diff against target: 12 lines (+1/-1)
1 file modified
product/ (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/6.1-opw-584466-dhs
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email:

Description of the change

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.

To post a comment you must log in.

Unmerged revisions

7145. By Dhruti Shastri(OpenERP)

[product] : PO generated from SO have created date is Prior date

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'product/'
2--- product/ 2012-04-03 13:05:28 +0000
3+++ product/ 2013-02-05 06:03:25 +0000
4@@ -278,7 +278,7 @@
5 main_supplier = self._get_main_product_supplier(cr, uid, product, context=context)
6 result[] = {
7 'seller_info_id': main_supplier and or False,
8- 'seller_delay': main_supplier and main_supplier.delay or 1,
9+ 'seller_delay': main_supplier and main_supplier.delay or 0,
10 'seller_qty': main_supplier and main_supplier.qty or 0.0,
11 'seller_id': main_supplier and or False
12 }