Amit Dodiya (OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/5.0-bug-775573-ado into
lp:openobject-addons/5.0.
Requested reviews:
Jay Vora (OpenERP) (jvo-openerp)
Related bugs:
Bug #775573 in OpenERP Addons: "[V5] Payment order : can't import supplier
invoice from closed fiscal year"
https://bugs.launchpad.net/openobject-addons/+bug/775573
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/5.0-bug-775573-ado/+merge/66581
Hello Sir,
I have made changes that can import the supplier invoice entry from close
fiscal year.
Thanks.
Amit
--
https://code.launchpad.net/~openerp-dev/openobject-addons/5.0-bug-775573-ado/+merge/66581
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/5.0-bug-775573-ado.
=== modified file 'account_payment/account_move_line.py'
--- account_payment/account_move_line.py 2010-02-19 14:07:57 +0000
+++ account_payment/account_move_line.py 2011-07-01 11:11:42 +0000
@@ -51,7 +51,7 @@
if not len(args):
return []
line_obj = self.pool.get('account.move.line')
- query = line_obj._query_get(cr, uid, context={})
+ query = line_obj._query_get(cr, uid, context=context)
where = ' and '.join(map(lambda x: '''(SELECT
CASE WHEN l.amount_currency < 0
THEN - l.amount_currency
=== modified file 'account_payment/wizard/wizard_payment_order.py'
--- account_payment/wizard/wizard_payment_order.py 2010-04-27 13:53:33 +0000
+++ account_payment/wizard/wizard_payment_order.py 2011-07-01 11:11:42 +0000
@@ -44,6 +44,9 @@
search_due_date=data['form']['duedate']
pool = pooler.get_pool(cr.dbname)
+ fiscal_year_obj = pool.get('account.fiscalyear')
+ fiscal_year_ids = fiscal_year_obj.search(cr, uid, [])
+ context ['fiscalyear'] = ','.join(str(n) for n in fiscal_year_ids)
order_obj = pool.get('payment.order')
line_obj = pool.get('account.move.line')
_______________________________________________
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