purchase_requisition: cannot create purchase order lines manually

Bug #874851 reported by Equipo OPENTIA (http://www.opentia.com)
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Odoo Addons (MOVED TO GITHUB)
Invalid
Low
OpenERP Publisher's Warranty Team

Bug Description

How to reproduce it in stable 6:

Purchases -> Purchase Management -> Purchase Requisitions -> New
On "Quotations" tab, New purchase order
Select a supplier and make sure that all required fields are filled
Create a new purchase order line

The error is:
 product_id_change method from class purchase_order_line does not receive correctly none of its parameters.

The onchange method call is done this way:
                            <field name="product_id" colspan="4"
 context="partner_id=parent.partner_id,quantity=product_qty,pricelist=parent.pricelist_id,uom=product_uom,warehouse=parent.warehouse_id"
on_change="product_id_change(parent.pricelist_id,product_id,product_qty,product_uom,parent.partner_id, parent.date_order,parent.fiscal_position,date_planned,name,price_unit,notes)"/>

The problem is that "parent" does not refer to the purchase.order, but to the purchase.requisition, and purchase.requisition does not have partner_id, pricelist_id, etcetera.

Greetings,

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

I have faced the same problem which is on product_id_change method, when I select the product the unit price doesn't change properly in stable version.

But in trunk it is working fine so I am assigning this to OPW team for stable version.

Thanks.

Changed in openobject-addons:
assignee: nobody → OpenERP Publisher's Warranty Team (openerp-opw)
importance: Undecided → Low
status: New → Confirmed
Revision history for this message
Amit Dodiya (OpenERP) (ado-openerp) wrote :

Hello,

I have checked the issue with stable 6.0 code and it works fine. For better clarification i have attached a video here.

Would you please try with the latest updated code of stable 6.0.
If you still face the problem then you can reopen this with more information.

Regards,
Amit

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

Other bug subscribers

Bug attachments

Remote bug watches

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