File: party.xml

package info (click to toggle)
tryton-modules-purchase 5.0.6-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 1,252 kB
  • sloc: python: 2,723; xml: 1,049; makefile: 6; sh: 3
file content (26 lines) | stat: -rw-r--r-- 1,128 bytes parent folder | download | duplicates (2)
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
<?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>
        <record model="ir.action.act_window" id="act_purchase_form2">
            <field name="name">Purchases</field>
            <field name="res_model">purchase.purchase</field>
            <field name="domain"
                eval="[If(Eval('active_ids', []) == [Eval('active_id')], ('party', '=', Eval('active_id')), ('party', 'in', Eval('active_ids')))]"
                pyson="1"/>
        </record>
        <record model="ir.action.keyword"
                id="act_open_purchase_keyword1">
            <field name="keyword">form_relate</field>
            <field name="model">party.party,-1</field>
            <field name="action" ref="act_purchase_form2"/>
        </record>
        <record model="ir.action-res.group"
            id="act_purchase_form2-group_purchase">
            <field name="action" ref="act_purchase_form2"/>
            <field name="group" ref="group_purchase"/>
        </record>

    </data>
</tryton>