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
|
<?xml version="1.0" encoding="utf-8" ?>
<openerp>
<data>
<record id="documents_done_list_view" model="ir.ui.view">
<field name="name">documents.done.list.view</field>
<field name="model">documents.done.wizard</field>
<field name="type">tree</field>
<field name="arch" type="xml">
<tree string="Documents not done">
<field name="name" />
<field name="creation_date" />
<field name="partner_id" />
<field name="model" />
<field name="display_state" />
<field name="problem" invisible="1" />
<button type="object" name="go_to_problems" string="Errors" icon="terp-gtk-stop" attrs="{'invisible': [('problem', '=', False)]}" />
<button type="object" name="cancel_line" string="Cancel" icon="terp-gtk-go-back-rtl" attrs="{'invisible': [('problem', '=', True)]}" />
</tree>
</field>
</record>
<record id="documents_done_search_view" model="ir.ui.view">
<field name="name">documents.done.search.view</field>
<field name="model">documents.done.wizard</field>
<field name="type">search</field>
<field name="arch" type="xml">
<search string="Documents not done">
<group colspan="4">
<field name="creation_date" />
<field name="expected_date" />
<field name="model" />
<field name="partner_id" />
<field name="name" />
<field name="display_state" />
</group>
<newline />
<!-- <group string="Group by..." expand="1" colspan="1">
<filter name="group_name" string="Name" domain="[]" context="{'group_by': 'name'}" icon="" />
<filter name="group_creation_date" string="Creation date" domain="[]" context="{'group_by': 'creation_date'}" icon="" />
<filter name="group_partner" string="Partner" domain="[]" context="{'group_by': 'partner_id'}" icon="" />
<filter name="group_model" string="Type" domain="[]" context="{'group_by': 'model'}" icon="" />
<filter name="group_state" string="State" domain="[]" context="{'group_by': 'state'}" icon="" />
</group>-->
</search>
</field>
</record>
<record id="action_documents_done_view" model="ir.actions.act_window">
<field name="name">Documents not 'Done'</field>
<field name="res_model">documents.done.wizard</field>
<field name="view_type">form</field>
<field name="view_mode">tree</field>
</record>
<menuitem id="menu_documents_done"
action="action_documents_done_view"
parent="object_query.menu_preferences" />
<record id="documents_done_problem_form_view" model="ir.ui.view">
<field name="name">documents.done.problem.form.view</field>
<field name="model">documents.done.problem</field>
<field name="type">form</field>
<field name="arch" type="xml">
<form string="Problem on documents">
<field name="doc_name" colspan="4" readonly="1" />
<field name="errors" invisible="1" />
<field name="pb_lines" mode="tree" colspan="4" nolabel="1" readonly="1">
<tree string="Documents">
<field name="doc_name" />
<field name="doc_type" />
<field name="doc_state_str" />
<button name="go_to_doc" type="object" icon="terp-stock_zoom" string="Go to document" />
</tree>
</field>
<separator colspan="4" string="Actions" />
<button special="cancel" string="Close" icon="gtk-cancel" />
<group colspan="3" col="3">
<button name="cancel_document" string="Done the document" type="object" colspan="3" icon="terp-check" />
</group>
</form>
</field>
</record>
</data>
</openerp>
|