Amit Dodiya (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/6.0-opw-16328-ado into 
lp:openobject-addons/6.0.

Requested reviews:
  Priyesh (OpenERP) (pso-openerp)
  Jay Vora (OpenERP) (jvo-openerp)

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-16328-ado/+merge/70002

Hello Sir, 

[FIX]:  write off requested when generating opening entries: case(16328)

I have done some changes in if condition because it gives warning while 
generating the opening entries. If you have set the secondary currency in 
journal's "default debit account" or "default credit account". 

Thanks,
Amit
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-16328-ado/+merge/70002
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/6.0-opw-16328-ado.
=== modified file 'account/account_move_line.py'
--- account/account_move_line.py	2011-06-22 20:05:58 +0000
+++ account/account_move_line.py	2011-08-01 13:04:34 +0000
@@ -804,7 +804,7 @@
             raise osv.except_osv(_('Error'), _('Some entries are already reconciled !'))
 
         if (not currency_obj.is_zero(cr, uid, account.company_id.currency_id, writeoff)) or \
-           (account.currency_id and (not currency_obj.is_zero(cr, uid, account.currency_id, currency))):
+           (not context.get('fy_closing', False) and account.currency_id and (not currency_obj.is_zero(cr, uid, account.currency_id, currency))):
             if not writeoff_acc_id:
                 raise osv.except_osv(_('Warning'), _('You have to provide an account for the write off entry !'))
             if writeoff > 0:

_______________________________________________
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