File: party.xml

package info (click to toggle)
tryton-modules-incoterm 7.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 588 kB
  • sloc: python: 825; xml: 538; makefile: 11; sh: 3
file content (45 lines) | stat: -rw-r--r-- 1,866 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<?xml version="1.0"?>
<!-- This file is part of Tryton.  The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
    <data depends="purchase">
        <record model="ir.ui.view" id="party_view_form_purchase">
            <field name="model">party.party</field>
            <field name="inherit" ref="party.party_view_form"/>
            <field name="name">party_form_purchase</field>
        </record>
    </data>

    <data depends="sale">
        <record model="ir.ui.view" id="party_view_form_sale">
            <field name="model">party.party</field>
            <field name="inherit" ref="party.party_view_form"/>
            <field name="name">party_form_sale</field>
        </record>
    </data>
    <data>
        <record model="ir.ui.view" id="party_incoterm_view_form">
            <field name="model">party.incoterm</field>
            <field name="type">form</field>
            <field name="name">party_incoterm_form</field>
        </record>

        <record model="ir.ui.view" id="party_incoterm_view_list">
            <field name="model">party.incoterm</field>
            <field name="type">tree</field>
            <field name="name">party_incoterm_list</field>
        </record>

        <record model="ir.rule.group" id="rule_group_party_incoterm_companies">
            <field name="name">User in companies</field>
            <field name="model" search="[('model', '=', 'party.incoterm')]"/>
            <field name="global_p" eval="True"/>
        </record>
        <record model="ir.rule" id="rule_party_incoterm_companies">
            <field name="domain"
                eval="[('company', 'in', Eval('companies', []))]"
                pyson="1"/>
            <field name="rule_group" ref="rule_group_party_incoterm_companies"/>
        </record>
    </data>
</tryton>