relation_ids
This commit is contained in:
parent
34b0f1f385
commit
c2f395a2e6
@ -15,8 +15,8 @@ class Coworker(models.Model):
|
||||
events_coworker_count = fields.Integer('Number of event have participe',
|
||||
compute='_compute_events_coworker_count')
|
||||
#Relation fields
|
||||
coworker_relation_ids = fields.One2many(
|
||||
'coworking.relation', 'relation', 'coworker1')
|
||||
relation_ids = fields.One2many(
|
||||
'coworking.relation', 'relation')
|
||||
|
||||
@api.depends('event_ids')
|
||||
def _compute_events_coworker_count(self):
|
||||
|
@ -11,7 +11,8 @@
|
||||
<notebook position="inside">
|
||||
<page string="Relation" name="Relation">
|
||||
<group name="relation">
|
||||
<field name="coworker_relation_ids" context="{'default_relation_id': active_id}" />
|
||||
<field name="relation_ids" context="{'relation_id': active_id}" />
|
||||
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
|
Loading…
Reference in New Issue
Block a user