POS payment wrong date

Bug #1104099 reported by Ignas Karpiejus @ hbee
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP R&D Addons Team 3

Bug Description

Hello,

we got really strange behavior with pos payment dates, sometimes it showed correct date, but after some time it got off by couple of days. Symptoms are similar to this old bug - https://bugs.launchpad.net/openobject-addons/+bug/761460 but in different part - point_of_sale/wizard/pos_payment.py line 129, not really sure if it's the case, still need to make some tests, but if I understand correctly every date in _defaults should be set with lambda function? I'm adding patch for the fix.

Related branches

Revision history for this message
Ignas Karpiejus @ hbee (ignas-karpiejus) wrote :
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Ignas,

Thanks for the pointing out this, This will pass server's start date on Bank statement instead of System's date.

Your fix looks good, but same problem exist when done the payment done from touch scrren ui. Please check the create_from_ui method on point_of_sale.py and see 'payment_date': time.strftime('%Y-%m-%d %H:%M:%S') which is also same as your suggested patch.

Thank you!

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Hiral Patel (OpenERP) (hip-openerp) wrote :

Hello,

           It has been Fixed http://bazaar.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1104099-hip
           Revno: 8523
           Revision ID: <email address hidden>

Thanks,
hip

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.