You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
-
I create a relation type allowing partners to be in
both sides of the relation.
-
!record {model: res.partner.relation.type, id: allow_self}:
name: 'Relation A'
name_inverse: 'Inverse Relation A'
contact_type_right: 'p'
contact_type_left: 'p'
allow_self: True
-
I create a relation type with default value for `allow_self`
both sides of the relation.
-
!record {model: res.partner.relation.type, id: allow_self}:
name: 'Relation B'
name_inverse: 'Inverse Relation B'
contact_type_right: 'p'
contact_type_left: 'p'
-
I create relation instance admin -- Relation A --> admin
-
!record {model: res.partner.relation, id: test_allow}:
left_partner_id: base.admin
right_partner_id: base.admin
type_id: test_allow
-
I create relation instance admin -- Relation B --> admin
-
!record {model: res.partner.relation, id: test_disallow}:
left_partner_id: base.admin
right_partner_id: base.admin
type_id: test_disallow
|