Merge lp:~openerp-dev/openobject-addons/trunk-bug-1104099-hip into lp:openobject-addons

Proposed by Hiral Patel (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/trunk-bug-1104099-hip
Merge into: lp:openobject-addons
Diff against target: 24 lines (+2/-2)
2 files modified
point_of_sale/point_of_sale.py (+1/-1)
point_of_sale/wizard/pos_payment.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/trunk-bug-1104099-hip
Reviewer Review Type Date Requested Status
OpenERP Core Team Pending
Review via email: mp+145355@code.launchpad.net
To post a comment you must log in.

Unmerged revisions

8523. By Hiral Patel (OpenERP)

[trunk][FIX] POS payment wrong date

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'point_of_sale/point_of_sale.py'
2--- point_of_sale/point_of_sale.py 2012-12-06 14:56:32 +0000
3+++ point_of_sale/point_of_sale.py 2013-01-29 12:27:28 +0000
4@@ -514,7 +514,7 @@
5 cash_journal = cash_journal_ids[0].journal_id
6 self.add_payment(cr, uid, order_id, {
7 'amount': -order['amount_return'],
8- 'payment_date': time.strftime('%Y-%m-%d %H:%M:%S'),
9+ 'payment_date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
10 'payment_name': _('return'),
11 'journal': cash_journal.id,
12 }, context=context)
13
14=== modified file 'point_of_sale/wizard/pos_payment.py'
15--- point_of_sale/wizard/pos_payment.py 2012-12-06 14:56:32 +0000
16+++ point_of_sale/wizard/pos_payment.py 2013-01-29 12:27:28 +0000
17@@ -126,7 +126,7 @@
18 }
19 _defaults = {
20 'journal_id' : _default_journal,
21- 'payment_date': time.strftime('%Y-%m-%d %H:%M:%S'),
22+ 'payment_date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
23 'amount': _default_amount,
24 }
25

Subscribers

People subscribed via source and target branches

to all changes: