Ujjvala Collins (OpenERP) has proposed merging 
lp:~openerp-dev/openobject-addons/trunk-bug-838151-uco into 
lp:openobject-addons.

Requested reviews:
  OpenERP Core Team (openerp)
Related bugs:
  Bug #838151 in OpenERP Addons: "POS : cannot make input or outut operations"
  https://bugs.launchpad.net/openobject-addons/+bug/838151

For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-838151-uco/+merge/73812

[FIX] point_of_sale:
--------------------------------
* Removed lines of code to fix the error of address_id from res.users object, 
which is removed from base.
-- 
https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-838151-uco/+merge/73812
Your team OpenERP R&D Team is subscribed to branch 
lp:~openerp-dev/openobject-addons/trunk-bug-838151-uco.
=== modified file 'point_of_sale/wizard/pos_box_entries.py'
--- point_of_sale/wizard/pos_box_entries.py	2011-01-14 00:11:01 +0000
+++ point_of_sale/wizard/pos_box_entries.py	2011-09-02 13:41:28 +0000
@@ -122,9 +122,6 @@
             vals['amount'] = data['amount'] or 0.0
             vals['ref'] = "%s" % (data['ref'] or '')
             vals['name'] = "%s: %s " % (product_obj.browse(cr, uid, data['product_id'], context=context).name, data['name'].decode('utf8'))
-            address_u = res_obj.browse(cr, uid, uid, context=context).address_id
-            if address_u:
-                vals['partner_id'] = address_u.partner_id and address_u.partner_id.id or None
             bank_statement.create(cr, uid, vals, context=context)
         return {}
 

=== modified file 'point_of_sale/wizard/pos_box_out.py'
--- point_of_sale/wizard/pos_box_out.py	2011-04-26 07:39:18 +0000
+++ point_of_sale/wizard/pos_box_out.py	2011-09-02 13:41:28 +0000
@@ -119,9 +119,6 @@
                 vals['am_out'] = True
             vals['ref'] = data['ref'] or ''
             vals['name'] = "%s: %s " % (product.name, data['name'])
-            address_u = res_obj.browse(cr, uid, uid, context=context).address_id
-            if address_u:
-                vals['partner_id'] = address_u.partner_id and address_u.partner_id.id or None
             statement_line_obj.create(cr, uid, vals, context=context)
         return {}
 

_______________________________________________
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

Reply via email to