Ronald Portier
6 years ago
committed by
Jan Verbeek
10 changed files with 120 additions and 11 deletions
-
4partner_multi_relation_tabs/demo/res_partner_category_demo.xml
-
20partner_multi_relation_tabs/demo/res_partner_demo.xml
-
21partner_multi_relation_tabs/demo/res_partner_relation_demo.xml
-
11partner_multi_relation_tabs/demo/res_partner_relation_type_demo.xml
-
10partner_multi_relation_tabs/demo/res_partner_tab_demo.xml
-
2partner_multi_relation_tabs/models/res_partner.py
-
11partner_multi_relation_tabs/models/res_partner_relation_all.py
-
4partner_multi_relation_tabs/tests/common.py
-
33partner_multi_relation_tabs/tests/test_partner_tabs.py
-
15partner_multi_relation_tabs/tests/test_tab.py
@ -1,11 +1,30 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?xml version="1.0" encoding="UTF-8"?> |
||||
<odoo> |
<odoo> |
||||
|
|
||||
<!-- Relations --> |
|
||||
|
<!-- Company has ceo. --> |
||||
<record id="relation_company_ceo" model="res.partner.relation"> |
<record id="relation_company_ceo" model="res.partner.relation"> |
||||
<field name="left_partner_id" ref="partner_big_company" /> |
<field name="left_partner_id" ref="partner_big_company" /> |
||||
<field name="right_partner_id" ref="partner_important_person" /> |
<field name="right_partner_id" ref="partner_important_person" /> |
||||
<field name="type_id" ref="relation_type_company_has_ceo" /> |
<field name="type_id" ref="relation_type_company_has_ceo" /> |
||||
</record> |
</record> |
||||
|
|
||||
|
<!-- Departments of main organisation. --> |
||||
|
<record id="relation_programming_department" model="res.partner.relation"> |
||||
|
<field name="left_partner_id" ref="base.main_partner" /> |
||||
|
<field name="right_partner_id" ref="partner_programming_department" /> |
||||
|
<field |
||||
|
name="type_id" |
||||
|
ref="relation_type_organisation_has_department" |
||||
|
/> |
||||
|
</record> |
||||
|
|
||||
|
<record id="relation_helpdesk_department" model="res.partner.relation"> |
||||
|
<field name="left_partner_id" ref="base.main_partner" /> |
||||
|
<field name="right_partner_id" ref="partner_helpdesk_department" /> |
||||
|
<field |
||||
|
name="type_id" |
||||
|
ref="relation_type_organisation_has_department" |
||||
|
/> |
||||
|
</record> |
||||
|
|
||||
</odoo> |
</odoo> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue