Somesh Khare(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/7.0-584851-opw-skh into 
lp:openobject-addons/7.0.

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

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-584851-opw-skh/+merge/145307

Hello Sir,

When there is no payment term defined on the invoice and we select due date, 
system by default shows invoice date as Due date when we validate Invoice, 
Where it should shows the selected due date.

Steps:
1 Create a Supplier Invoice and set the invoice date as "01-11-2013" and Due 
date as "02-05-2013" also select payment term as "BLANK". (Date 
format:mm-dd-yyyy)
2. Validate the Invoice and see the "Due date" it will automatically becomes 
Invoice date.

This branch fixes this issue, Kindly review the branch and please share your 
view on it.

Thanks,
Somesh Khare



-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/7.0-584851-opw-skh/+merge/145307
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/7.0-584851-opw-skh.
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py	2013-01-05 23:29:19 +0000
+++ account/account_invoice.py	2013-01-29 05:40:28 +0000
@@ -544,7 +544,7 @@
         if not date_invoice:
             date_invoice = time.strftime('%Y-%m-%d')
         if not payment_term_id:
-            return {'value':{'date_due': date_invoice}} #To make sure the invoice has a due date when no payment term 
+            return {} #To make sure the invoice has a due date when no payment term 
         pterm_list = self.pool.get('account.payment.term').compute(cr, uid, payment_term_id, value=1, date_ref=date_invoice)
         if pterm_list:
             pterm_list = [line[0] for line in pterm_list]

_______________________________________________
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