Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to use « variable » price_type in delivery pricelists?

By
Pascal Tremblay
on 5/28/16, 3:07 PM 337 views

Hello all,

I don't understand how I could use the variable (instead of fixed) price_type in the delivery pricelists.

I don't find any example on Google. Could you help me to understand those variable price_type?

Thanks



 

0

Pascal Tremblay

--Pascal Tremblay--
1312
| 5 2 7
Alma, Canada
--Pascal Tremblay--


Pascal Tremblay
On 5/29/16, 3:34 PM

Ok, I have analyzed the file addons/delivery/delivery.py. The method is get_price_from_picking.


For the price_type Fixed :

If the condition is fulfilled, the price of the shipping for this order will be exactly the value of  list_price.


For the price_type Variable :

If the condition is fulfilled, the price of the shipping for this order will be the list_price multiplied by the value of the variable_factor.

For example, the price of the shipping would be 30 $ if the condition is fulfilled, with a list_price of 6 $ and a variable_factor = weight and a total weight of 5 for this order.

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/28/16, 3:07 PM
Seen: 337 times
Last updated: 5/29/16, 5:04 PM