Odoo Help


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.


auto compute price without any button

on 6/24/13, 12:03 PM 964 views

Hi all,

I want to get rid of the buttons (ex: compute button in sales order form) to calculate the total, subtotal. If I make changes to any field that is affecting the price, all the pricing should be calculated automatically without the help of the compute button. I mean that I don't want to use the compute button. It should work like a on_change method functionality in javascript. is it possible?



Francesco OpenCode

--Francesco OpenCode--
| 5 7 9
Grottaglie, Italy
--Francesco OpenCode--

Italian Odoo (OpenERP) Modules Developer LINKEDIN: http://www.linkedin.com/in/francescoapruzzese

Francesco OpenCode
On 6/24/13, 12:46 PM

OpenERP has got function fields. Function fields are a particular field calculated in relation to a particular python function that return the value of this fields. In your case you can use a function field to obtain the auto-calculated values.

and it can all be done with Python, so no need to look around in Javascript. But maybe you should have at least one button (Save or so), to make it clear how to end the work and save it.

on 6/24/13, 1:02 PM

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

0 follower(s)


Asked: 6/24/13, 12:03 PM
Seen: 964 times
Last updated: 3/16/15, 8:10 AM