-
-
Notifications
You must be signed in to change notification settings - Fork 119
/
Copy pathchorus_flow.xml
128 lines (128 loc) · 5.31 KB
/
chorus_flow.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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<?xml version="1.0" ?>
<!--
Copyright 2018 Akretion (Alexis de Lattre <[email protected]>)
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="chorus_flow_form" model="ir.ui.view">
<field name="name">chorus.flow.form</field>
<field name="model">chorus.flow</field>
<field name="arch" type="xml">
<form>
<header>
<button
name="update_flow_status"
type="object"
string="Update Flow Status"
attrs="{'invisible': [('status', 'in', ('IN_INTEGRE', 'IN_INTEGRE_PARTIEL', 'IN_REJETE'))]}"
/>
<button
name="get_invoice_identifiers"
type="object"
string="Get Chorus Invoice Identifiers"
attrs="{'invisible': ['|', ('status', 'not in', ('IN_INTEGRE', 'IN_INTEGRE_PARTIEL')), ('invoice_identifiers', '=', True)]}"
/>
</header>
<group name="main">
<field name="name" />
<field name="date" />
<field name="syntax" />
<field name="initial_invoice_ids" widget="many2many_tags" />
<field name="attachment_id" />
<field name="company_id" groups="base.group_multi_company" />
<field name="status_display" />
<field name="status" invisible="1" />
<field name="status_date" />
<field name="invoice_identifiers" invisible="1" />
<field name="notes" />
</group>
<group name="invoices" string="Invoices">
<field name="invoice_ids" nolabel="1" colspan="2">
<tree
decoration-info="state == 'draft'"
decoration-muted="state == 'cancel'"
>
<field name="partner_id" string="Customer" />
<field name="invoice_date" />
<field name="name" />
<field name="invoice_date_due" />
<field name="amount_untaxed" />
<field name="amount_total" />
<field name="currency_id" invisible="1" />
<field name="state" invisible="1" />
<field name="payment_state" />
<field name="chorus_identifier" />
<field name="chorus_status" />
<field name="chorus_status_date" />
</tree>
</field>
</group>
</form>
</field>
</record>
<record id="chorus_flow_tree" model="ir.ui.view">
<field name="name">chorus.flow.tree</field>
<field name="model">chorus.flow</field>
<field name="arch" type="xml">
<tree>
<field name="name" />
<field name="date" />
<field name="syntax" optional="show" />
<field
name="status_display"
widget="badge"
decoration-info="status == 'IN_DEPOT_PORTAIL_EN_ATTENTE_TRAITEMENT_SE_CPP'"
decoration-success="status == 'IN_INTEGRE'"
decoration-warning="status == 'IN_INTEGRE_PARTIEL'"
decoration-danger="status == 'IN_REJETE'"
/>
<field name="status" invisible="1" />
<field name="status_date" optional="show" />
<field
name="company_id"
groups="base.group_multi_company"
optional="show"
/>
</tree>
</field>
</record>
<record id="chorus_flow_search" model="ir.ui.view">
<field name="name">chorus.flow.search</field>
<field name="model">chorus.flow</field>
<field name="arch" type="xml">
<search>
<field name="name" />
<group string="Group By" name="groupby">
<filter
name="status_groupby"
string="Status"
context="{'group_by': 'status_display'}"
/>
<filter
name="date_groupby"
string="Date"
context="{'group_by': 'date'}"
/>
</group>
</search>
</field>
</record>
<record id="chorus_flow_action" model="ir.actions.act_window">
<field name="name">Chorus Flows</field>
<field name="res_model">chorus.flow</field>
<field name="view_mode">tree,form</field>
</record>
<menuitem
id="chorus_config"
parent="account.menu_finance_configuration"
name="Chorus Pro"
sequence="100"
/>
<menuitem
id="chorus_flow_menu"
action="chorus_flow_action"
parent="chorus_config"
groups="l10n_fr_chorus_account.group_chorus_api"
sequence="20"
/>
</odoo>