Assumption: fields.related is needed to display the fields of two related tables in the same view.
one2many, many2one and many2many can be specified in Field Type in Settings>Technical>Database Structure>Models Create: Fields
Assumption: fields.related is needed to display the fields of two related tables in the same view.
one2many, many2one and many2many can be specified in Field Type in Settings>Technical>Database Structure>Models Create: Fields
Pulled from the documentation. Here are the relevant part:
A special case of computed fields are related (proxy) fields, which provide the value of a sub-field on the current record. They are defined by setting the related parameter and like regular computed fields they can be stored:
nickname = fields.Char(related='user_id.partner_id.name', store=True)
Create an account today to enjoy exclusive features and engage with our awesome community!
Registracija| Related Posts | Replies | Rodiniai | Veikla | |
|---|---|---|---|---|
|
1
liep. 23
|
3735 | |||
|
2
kov. 15
|
11870 | |||
|
2
vas. 25
|
2772 | |||
|
0
geg. 24
|
3070 | |||
|
1
rugp. 23
|
6095 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.