Odoo Help

0

0
2 Answers
2
Avatar

Hilar AK

--Hilar AK--
--Hilar AK--
  Blog:-
        https://hilarlive.wordpress.com/
  StackOverflow:
        http://stackoverflow.com/users/7561347/burmese-pythis

Quora:
    

            https://www.quora.com/profile/Hilar-Ak-1

Experienced Odoo developer, Functional Consultant.



Hilar AK
01/02/18 01:39

You can use class inheritance to achieve this. Normally by prototype inheritance the newly created data or fields will not be accessible if you are using the parent model on your new view. But this will not be the case if you are simply inheriting the main model like class inheritance.

0
hirenJ
01/02/18 01:53

@hilar can you please post a demo code for class inheritance you are talking about. thank you for instant reply.

3 Comments
Hilar AK
01/02/18 02:15

class xx(..)

{

_name = 'x'

_inherit = 'x'

...

...

extra fields

...

}

xx(..)

hirenJ
01/02/18 02:18

I want to use view of ir.model, but want to create records under test.ir.model i don't think it is possilbe with class inheritance because it will not copy all the fields in test.ir.model is there any other way to do so?

David Yao
10/04/18 23:16

hi hirenj, did you find out a solution? I got similar issue here. please help me out if you have any hint. Thanks a lot!

Ask a Question
Writer
Keep Informed
1 follower(s)
About This Community

This platform 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.

Register
Odoo Training Center

Access to our eLearning platform and experience all Odoo Apps through learning videos, use cases and quizzes.

Test it now