Ila Rana(Open ERP) has proposed merging
lp:~openerp-dev/openobject-addons/6.0-opw-50587-ira into
lp:openobject-addons/6.0.
Requested reviews:
Vinay Rana (openerp) (vra-openerp)
Related bugs:
Bug #887701 in OpenERP Addons: "module point of sale wizard pos.box.out"
https://bugs.launchpad.net/openobject-addons/+bug/887701
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-50587-ira/+merge/82662
Hello Vinay,
I have checked the Xavier Fernandez's patch and its working properly as per the
expectation.
So the issue of account taking from product.template id is resolved now through
this branch.
Thanks,
Ila Rana.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/6.0-opw-50587-ira/+merge/82662
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/6.0-opw-50587-ira.
=== modified file 'point_of_sale/wizard/pos_box_out.py'
--- point_of_sale/wizard/pos_box_out.py 2011-10-03 14:13:57 +0000
+++ point_of_sale/wizard/pos_box_out.py 2011-11-18 10:33:28 +0000
@@ -73,8 +73,7 @@
vals = {}
statement_obj = self.pool.get('account.bank.statement')
statement_line_obj = self.pool.get('account.bank.statement.line')
- product_obj = self.pool.get('product.template')
- productp_obj = self.pool.get('product.product')
+ product_obj = self.pool.get('product.product')
res_obj = self.pool.get('res.users')
for data in self.read(cr, uid, ids, context=context):
curr_company = res_obj.browse(cr, uid, uid, context=context).company_id.id
@@ -86,7 +85,7 @@
address_u = res_obj.browse(cr, uid, uid, context=context).address_id
am = 0.0
- amount_check = productp_obj.browse(cr, uid, data['product_id'], context=context).am_out or False
+ amount_check = product_obj.browse(cr, uid, data['product_id'], context=context).am_out or False
for st in stat_done:
for s in st.line_ids:
if address_u and s.partner_id == address_u.partner_id and s.am_out:
@@ -118,7 +117,7 @@
if data['amount'] > 0:
amount = -data['amount']
vals['amount'] = amount
- if productp_obj.browse(cr, uid, data['product_id'], context=context).am_out:
+ if product_obj.browse(cr, uid, data['product_id'], context=context).am_out:
vals['am_out'] = True
vals['ref'] = data['ref'] or ''
vals['name'] = "%s: %s " % (product_obj.browse(cr, uid, data['product_id'], context=context).name, data['name'].decode('utf8'))
_______________________________________________
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