digvijay singh has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-payroll-india-mra-payslip-dsi into 
lp:~openerp-dev/openobject-addons/trunk-payroll-india-mra.

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

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-payroll-india-mra-payslip-dsi/+merge/117014

Hello sir,

  I have done the payslip advice id Check box not checked while duplicating the 
records and same for made payment order.

Thanks,
Digvijay Singh  
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-payroll-india-mra-payslip-dsi/+merge/117014
Your team OpenERP R&D Team is requested to review the proposed merge of 
lp:~openerp-dev/openobject-addons/trunk-payroll-india-mra-payslip-dsi into 
lp:~openerp-dev/openobject-addons/trunk-payroll-india-mra.
=== modified file 'l10n_in_hr_payroll/l10n_in_hr_payroll.py'
--- l10n_in_hr_payroll/l10n_in_hr_payroll.py	2012-07-26 06:33:14 +0000
+++ l10n_in_hr_payroll/l10n_in_hr_payroll.py	2012-07-27 07:43:26 +0000
@@ -216,6 +216,12 @@
     _columns = {
         'available_advice': fields.boolean('Made Payment Advice?', help="If this box is checked which means that Payment Advice exists for current batch", readonly=False),
     }
+    def copy(self, cr, uid, id, default={}, context=None, done_list=[], local=False):
+        if not default:
+            default = {}
+        default = default.copy()
+        default['available_advice'] = False
+        return super(hr_payslip_run, self).copy(cr, uid, id, default, context=context)    
 
     def draft_payslip_run(self, cr, uid, ids, context=None):
         res = super(hr_payslip_run, self).draft_payslip_run(cr, uid, ids, context=context)
@@ -302,6 +308,13 @@
     _columns = {
         'advice_id': fields.many2one('hr.payroll.advice', 'Bank Advice')
     }
+    def copy(self, cr, uid, id, default={}, context=None, done_list=[], local=False):
+        if not default:
+            default = {}
+        default = default.copy()
+        default['advice_id'] = False
+        return super(hr_payslip, self).copy(cr, uid, id, default, context=context)
+    
 
 hr_payslip()
 
@@ -317,4 +330,4 @@
 
 res_company()
 
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
\ No newline at end of file
+# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:

_______________________________________________
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