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

Odoo website_sale module total calculation in Shopping Cart

By
skadoosh
on 6/14/16, 12:58 AM 257 views

<img src="http://i.imgur.com/7nADyjL.png" />

I created a custom module which applies a discount on a sale order line if the quantity is >= 6 .

For this I did override a _fnct_get_discounted_price functional field of sale.order.line (which is defined in website_sale module).

In the above problem a discount of 0.5% percentage is applied on sale.order.line if quantity is >= 6 as intended.

But the Total is still calculated using the original price instead if discounted price.

ie Total should be 6 x 75.05 + 6 x 1709.05= 10704.599 instead of  6 x 79.00 + 6 x 1799 = 11268

Where is the calculation of Total performed

0
Pinakin Nayi (pna)
On 6/14/16, 4:51 AM

Same functionality you can achieve by sales pricelist no need for custom module and its work perfectly.


Thanks.

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: 6/14/16, 12:58 AM
Seen: 257 times
Last updated: 6/14/16, 4:51 AM