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

Set price of products with onchange function from product.product.

By
Juan Carlos
on 12/19/14, 12:00 PM 627 views

Sorry if I ask a lot, I do not want to abuse of the forum, but these things do not match. My goal is to create a simple manual in Spanish for Odoo and I need learn and know more, I'm verry happy.

My classes and code in this image (it is dropbox): https://db.tt/aabAZRzb

@api.onchange('producto_id')
    def _onchange_producto_id(self):
        if self.producto_id:
            self.precio = 100.00

Had seen before a self.pool.get used, how can I use it?

Refer doc: http://odoo-new-api-guide-line.readthedocs.org/en/latest/

deep
on 12/22/14, 1:21 AM

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

2 follower(s)

Stats

Asked: 12/19/14, 12:00 PM
Seen: 627 times
Last updated: 3/16/15, 8:10 AM