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

Inherit form view from a predefined module.

By
Hussain Nagri
on 12/25/13, 3:59 AM 811 views

I want to create my own module which is an extension of sale.order. I want to have a form view which is like sale order view with few additional fields,
My problem is that when I inherit the sale order view and add say three extra fields these fields comes by default in the Original Sale Order form view too.
is this the default behaviour or am I doing something wrong ? What should I do to achieve what I want.

Try to look at this small module as example: https://github.com/bamps/smtp-per-user

Leonid Kurbatov
on 12/25/13, 8:18 AM
1
Abhishek
On 12/25/13, 6:37 AM

I think it will be an option , you just inherit the sale.order module and add three new field in python then create its corresponding xml file and then put your desired fields what you want.

Ex. create a class A inherit Sale.order ... in class A add three new fields and then go for its xml creation then keep all the xml properties same as sale.order's just add these three new fields where you want to add after replacing the previous in sale order form.

But may be there many way to achieve your requirement so better decide how u want to ..

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)

Stats

Asked: 12/25/13, 3:59 AM
Seen: 811 times
Last updated: 3/16/15, 8:10 AM