Mohammed Shekha(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.1-opw-572632_and_573054-msh into
lp:openobject-addons/6.1.
Requested reviews:
OpenERP Core Team (openerp)
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-572632_and_573054-msh/+merge/98972
Hello,
Fixed the issue of cash register in POS, which was not created due to the wrong
format of one2many vals.
Note: The issue comes only in web-client, this is because web sends and extra
value [5, false, false] but as this issue is also fixed from addons in
trunk(revision no. 6632). The issue is fixed from addons because it is the
special case in addons where we have set some value in one2many while the time
of one2many load, also we have override the create method.
Hence Changed the code to fix the issue of cash register creation.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.1-opw-572632_and_573054-msh/+merge/98972
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.1-opw-572632_and_573054-msh.
=== modified file 'account/account_cash_statement.py'
--- account/account_cash_statement.py 2012-03-22 11:39:59 +0000
+++ account/account_cash_statement.py 2012-03-23 05:35:23 +0000
@@ -216,9 +216,10 @@
if vals.get('starting_details_ids', False):
for start in vals.get('starting_details_ids'):
dict_val = start[2]
- for end in open_close['end']:
- if end[2]['pieces'] == dict_val['pieces']:
- end[2]['number'] += dict_val['number']
+ if dict_val and len(dict_val)==3:
+ for end in open_close['end']:
+ if end[2]['pieces'] == dict_val['pieces']:
+ end[2]['number'] += dict_val['number']
vals.update({
# 'ending_details_ids': open_close['start'],
'starting_details_ids': open_close['end']
_______________________________________________
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