Create pos.order.line with automatic price selection according to product_id and pricelist_id
Asked by
codemonk
I need to implement a custom POS interface in our existing POS structure. To do so I use oerplib:
>>> order_id = oerp.create(
>>> order_line_id = oerp.create(
>>> order_line = oerp.browse(
>>> order_line.
0.0
>>> order_line.
1.0
We see that the unit_price was not updated based on the pricelist_id and product_id.
Any idea how I can retrieve the product price according to the pricelist without implement the pricelist logic myself?
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- OERPLib Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- codemonk
- Solved:
- Last query:
- Last reply:
To post a message you must log in.