Merge lp:~openerp-dev/openobject-addons/7.0-opw-606715-pna into lp:openobject-addons/7.0

Proposed by Pinakin Nayi (OpenERP)
Status: Needs review
Proposed branch: lp:~openerp-dev/openobject-addons/7.0-opw-606715-pna
Merge into: lp:openobject-addons/7.0
Diff against target: 11 lines (+1/-1)
1 file modified
point_of_sale/wizard/pos_payment.py (+1/-1)
To merge this branch: bzr merge lp:~openerp-dev/openobject-addons/7.0-opw-606715-pna
Reviewer Review Type Date Requested Status
Naresh(OpenERP) Pending
Review via email: mp+216679@code.launchpad.net

Description of the change

Hello Sir,

I fixed issue in point of sale regarding wrong date passed.

Steps :
  - Create one pos order on (22/04/2014)
  - the same day return product and cash payment

If then we go to Journal Entries > Journal Items or cash register. The Effective date of the returned product is 15/04/2014(pass server's start date) and not the same date i returned the product (22/04/2014).

Thanks,
pna

To post a comment you must log in.
9999. By Pinakin Nayi (OpenERP)

[Revert]remove unnecessary change

Unmerged revisions

9999. By Pinakin Nayi (OpenERP)

[Revert]remove unnecessary change

9998. By Hiral Patel

[FIX]pos: wrong date passed when returning product from pos

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'point_of_sale/wizard/pos_payment.py'
2--- point_of_sale/wizard/pos_payment.py 2012-12-06 14:56:32 +0000
3+++ point_of_sale/wizard/pos_payment.py 2014-04-22 11:46:41 +0000
4@@ -126,7 +126,7 @@
5 }
6 _defaults = {
7 'journal_id' : _default_journal,
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 'amount': _default_amount,
11 }
12