openerp-community team mailing list archive
-
openerp-community team
-
Mailing list archive
-
Message #02671
lp:~openerp-community/openobject-addons/fix-1127198-import-invoice-payment-date into lp:openobject-addons/7.0
Niels Huylebroeck has proposed merging lp:~openerp-community/openobject-addons/fix-1127198-import-invoice-payment-date into lp:openobject-addons/7.0.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #1127198 in OpenERP Addons: "[6.1/Trunk/7.0] wrong date in import invoices in bank statements"
https://bugs.launchpad.net/openobject-addons/+bug/1127198
For more details, see:
https://code.launchpad.net/~openerp-community/openobject-addons/fix-1127198-import-invoice-payment-date/+merge/163006
--
https://code.launchpad.net/~openerp-community/openobject-addons/fix-1127198-import-invoice-payment-date/+merge/163006
Your team OpenERP Community is subscribed to branch lp:~openerp-community/openobject-addons/fix-1127198-import-invoice-payment-date.
=== modified file 'account_voucher/wizard/account_statement_from_invoice.py'
--- account_voucher/wizard/account_statement_from_invoice.py 2012-12-18 17:55:47 +0000
+++ account_voucher/wizard/account_statement_from_invoice.py 2013-05-08 16:30:48 +0000
@@ -94,7 +94,7 @@
'account_id': result['value'].get('account_id', statement.journal_id.default_credit_account_id.id),
'company_id': statement.company_id.id,
'currency_id': statement.currency.id,
- 'date': line.date,
+ 'date': statement.date,
'amount': sign*amount,
'payment_rate': result['value']['payment_rate'],
'payment_rate_currency_id': result['value']['payment_rate_currency_id'],
@@ -119,7 +119,7 @@
'statement_id': statement_id,
'ref': line.ref,
'voucher_id': voucher_id,
- 'date': time.strftime('%Y-%m-%d'),
+ 'date': statement.date,
}, context=context)
return {'type': 'ir.actions.act_window_close'}
Follow ups