I would like to use many fields of several models in one view and at registration i want that data to register in their models.
Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
I would like to use many fields of several models in one view and at registration i want that data to register in their models.
Thanks
Hi,
Either you can use the related field concept as stated in the other answer or you can create a new view using the query. For creating a new view using the fields of different models, see this answer : how do set multiple models in single form view ?
Thanks
You can introduce new fields in this model from another model using the 'related' attribute in the model. An example for relating a partner name using the field 'user_id':
nickname = fields.Char(related='user_id.partner_id.name', store=True)
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.