Skip to Content
Menu
This question has been flagged
2 Replies
2104 Views

Required  odoo solution to configure pricelist to customer id selected. Also Sales order should list only configured pricelist for the selected customer.

Avatar
Discard

This is basic Odoo functionality. What is your question?

Author

i think no, in basic functionality there is no option to select the customer id when we set pricelist

You can define a pricelist and assign it to a particular customer.

Author

ya i done that but, it's not working

Best Answer

It's a very simple workflow. And it works, as Ermin said. 

- Sales / Configuration / Settings / Pricing / Activate the check "Pricelists"
- Sales / Product / Pricelists - Create a pricelist - Add the desired articles and its prices.
- Sales / Orders / Customers - Edit the customer and set the new pricelist in the tab "sales and purchase"
- Now, if a customer order is entered, the pricelist should appear at the heading of the order and the product lines should appear with the special price.

Avatar
Discard
Author

hii josep anton belchi riera, i think you didn't understand my query, what i want like in configuration of pricelist there should many2many filed to select customer so, in sales order that only customer can see that pricelist

With the workflow I explained, your pricelist will be selected by default. The users can change it manually.

Do you need users not to be able to change the proposed pricelist?

Best Answer

Hello Dhiraj,

I think you need based on customer select that relavants pricelist which is default bu you also need to in selection only that customer related pricelist.

If you want this, yes so inherit partner_id onchange methods and add domain for pricelist fields

Update answer:you need to customize pricelist model and add partner_id fields.

Then in sale order form inherit partner onchange methods and add domain like this

return { 'pricelist_id':[('partner_id','=',self.partner_id.id)]}

Check above if useful


Avatar
Discard
Author

yes i done that, but not working, can you give a solution for domain ?

Update answer:you need to customize pricelist model and add partner_id fields.

Then in sale order form inherit partner onchange methods and add domain like this

return { 'pricelist_id':[('partner_id','=',self.partner_id.id)]}

Check above if useful

Related Posts Replies Views Activity
3
Sep 25
2778
0
Aug 25
379
1
Aug 25
2451
2
Jul 25
8201
2
Jul 25
4628