forked from Objectif-PI/printers
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server_action_view.xml
103 lines (101 loc) · 5.39 KB
/
server_action_view.xml
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
<?xml version="1.0" encoding="UTF-8"?>
<openerp>
<data>
##############################################################################
#
# printers module for OpenERP, Allow to manage printers un OpenERP
# Copyright (C) 2011 SYLEAM Info Services ([http://www.Syleam.fr/])
# Sylvain Garancher [[email protected]]
# Christophe CHAUVET [[email protected]]
#
# This file is a part of printers
#
# printers is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# printers is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see [http://www.gnu.org/licenses/].
#
##############################################################################
<record model="ir.ui.view" id="view_server_action_printing_form">
<field name="name">ir.actions.server,printing,form</field>
<field name="model">ir.actions.server</field>
<field name="inherit_id" ref="base.view_server_action_form"/>
<field name="priority" eval="30"/>
<field name="arch" type="xml">
<data>
<notebook position="inside">
<page string="Printing" attrs="{'invisible':[('state','!=','printing')]}">
<label string="Use Administration->Printing->Printing Server Action instead of this form" colspan="4" align="0.0"/>
</page>
</notebook>
</data>
</field>
</record>
<record id="view_server_action_redef_printing_tree" model="ir.ui.view">
<field name="name">ir.actions.server.tree</field>
<field name="model">ir.actions.server</field>
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<tree string="Print SA">
<field name="name"/>
<field name="model_id"/>
<field name="state" invisible="1"/>
<field name="sequence"/>
<field name="condition"/>
<field name="printing_function"/>
<field name="printing_source"/>
</tree>
</field>
</record>
<record id="view_server_action_redef_printing_form" model="ir.ui.view">
<field name="name">ir.actions.server.form</field>
<field name="model">ir.actions.server</field>
<field name="priority" eval="20"/>
<field name="arch" type="xml">
<form string="Print SA">
<field name="name" select="1"/>
<field name="model_id" on_change="onchange_model_id(model_id)"/>
<field name="model_name" invisible="1"/>
<field name="state" invisible="1"/>
<field name="sequence"/>
<field name="condition"/>
<newline/>
<field name="printing_source" colspan="4" required="1"/>
<field name="printing_jobname" colspan="4"/>
<field name="printing_function" required="0" invisible="1"/>
<field name="printing_report_id" domain="[('model', '=', model_name)]"/>
</form>
</field>
</record>
<record model="ir.actions.act_window" id="act_open_server_action_redef_printing_view">
<field name="name">Printing Server Action</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">ir.actions.server</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('state','=','printing')]</field>
<field name="context">{'default_state': 'printing'}</field>
</record>
<record model="ir.actions.act_window.view" id="act_open_server_action_redef_printing_view_form">
<field name="act_window_id" ref="act_open_server_action_redef_printing_view"/>
<field name="sequence" eval="20"/>
<field name="view_mode">form</field>
<field name="view_id" ref="view_server_action_redef_printing_form"/>
</record>
<record model="ir.actions.act_window.view" id="act_open_server_action_redef_printing_view_tree">
<field name="act_window_id" ref="act_open_server_action_redef_printing_view"/>
<field name="sequence" eval="10"/>
<field name="view_mode">tree</field>
<field name="view_id" ref="view_server_action_redef_printing_tree"/>
</record>
<menuitem id="menu_server_action_redef_printing" parent="menu_admin_printing" sequence="20" action="act_open_server_action_redef_printing_view"/>
</data>
</openerp>