Mayur Maheshwari(OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-overdue_payment_report-mma into 
lp:~openerp-dev/openobject-addons/trunk-overdue_payment_report.

Requested reviews:
  OpenERP R&D Team (openerp-dev)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-overdue_payment_report-mma/+merge/103073

Hello Sir,


     account: I have improve overdue message, pop-up warning message when no 
payment due on partner and set due date on invoice or current date accordingly .

Thanks.
mma
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-overdue_payment_report-mma/+merge/103073
Your team OpenERP R&D Team is requested to review the proposed merge of 
lp:~openerp-dev/openobject-addons/trunk-overdue_payment_report-mma into 
lp:~openerp-dev/openobject-addons/trunk-overdue_payment_report.
=== modified file 'account/account_invoice.py'
--- account/account_invoice.py	2012-04-03 10:58:01 +0000
+++ account/account_invoice.py	2012-04-23 10:28:20 +0000
@@ -467,14 +467,17 @@
         return result
 
     def onchange_payment_term_date_invoice(self, cr, uid, ids, payment_term_id, date_invoice):
+        res = {}
         if not payment_term_id:
-            return {}
-        res = {}
-        pt_obj = self.pool.get('account.payment.term')
+            if date_invoice:
+                res = {'value':{'date_due': date_invoice}}
+            else:
+                res = {'value':{'date_due': time.strftime('%Y-%m-%d')}}
+            return res
         if not date_invoice:
             date_invoice = time.strftime('%Y-%m-%d')
 
-        pterm_list = pt_obj.compute(cr, uid, payment_term_id, value=1, date_ref=date_invoice)
+        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]

=== modified file 'account/company.py'
--- account/company.py	2012-04-02 07:52:37 +0000
+++ account/company.py	2012-04-23 10:28:20 +0000
@@ -39,10 +39,11 @@
 
     _defaults = {
         'expects_chart_of_accounts': True,
-        'overdue_msg': '''Our records indicate that the following payments are still due. If the amount
-has already been paid, please disregard this notice. However, if you have any
-queries regarding your account, please contact us.
-Thank you in advance.
+        'overdue_msg': '''Our records indicate that the payments on you account are still due. Please find details below.
+        If the amount has already been paid,please disregard this notice.
+        Otherwise, please forward us the total amount stated below.
+        If you have any queries regarding your account, 
+        Please contact us.Thank you in advance for your cooperation.
 '''
     }
 

=== modified file 'account/report/account_print_overdue.py'
--- account/report/account_print_overdue.py	2012-03-22 11:11:18 +0000
+++ account/report/account_print_overdue.py	2012-04-23 10:28:20 +0000
@@ -22,10 +22,13 @@
 import time
 
 from report import report_sxw
+import netsvc
 import pooler
 
 class Overdue(report_sxw.rml_parse):
     def __init__(self, cr, uid, name, context):
+        if context['debit'] == 0:
+            raise osv.except_osv(('Warring!'),("There is nothing due with this partner !"))
         super(Overdue, self).__init__(cr, uid, name, context=context)
         self.localcontext.update( {
             'time': time,

_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help   : https://help.launchpad.net/ListHelp

Reply via email to