[6.0] module point of sale wizard pos.box.out

Bug #887701 reported by Xavier Fernandez http://www.smile.fr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP Publisher's Warranty Team

Bug Description

file wizard/pos_box_out.py

The field product_id links to a product.product instance (check function _get_expense_product in same file)
'product_id': fields.selection(_get_expense_product, "Operation", required=True),

but in the function get_out we have:

        product_obj = self.pool.get('product.template')
        productp_obj = self.pool.get('product.product')
        res_obj = self.pool.get('res.users')
        for data in self.read(cr, uid, ids, context=context):
##############################
some code
##############################
            amount_check = productp_obj.browse(cr, uid, data['product_id'], context=context).am_out or False
##############################
some other code
##############################
            acc_id = product_obj.browse(cr, uid, data['product_id'], context=context).property_account_income

so data['product_id'] is sometimes used as a product.product id and sometimes like a product.template.

(but this is supposed to be a product.product id)

Tags: maintenance

Related branches

Revision history for this message
Xavier Fernandez http://www.smile.fr (xav-fernandez) wrote :
Revision history for this message
Amit Parik (amit-parik) wrote :

Hello Fernandez,

The Point_of_sale Module is already improved in trunk version.

So this issue only affect for the stable version but this is not a blocking point that's why we can not consider this issue as a fixes for stable version.
For these type of issues If you have a support and maintenance contract with us then you can contact our OPW team at <email address hidden>.

Thanks.

Changed in openobject-addons:
status: New → Won't Fix
Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
status: Won't Fix → New
tags: added: maintenance
Changed in openobject-addons:
milestone: none → 6.0.4
status: New → In Progress
importance: Undecided → Medium
Changed in openobject-addons:
status: In Progress → Fix Committed
summary: - module point of sale wizard pos.box.out
+ [6.0] module point of sale wizard pos.box.out
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.