|
4 | 4 | <field name="name">rest.log tree</field> |
5 | 5 | <field name="model">rest.log</field> |
6 | 6 | <field name="arch" type="xml"> |
7 | | - <tree decoration-danger="state == 'failed'"> |
| 7 | + <list decoration-danger="state == 'failed'"> |
8 | 8 | <field name="collection" optional="hide" /> |
9 | 9 | <field name="collection_id" optional="hide" /> |
10 | 10 | <field name="create_uid" /> |
|
15 | 15 | <field name="exception_name" /> |
16 | 16 | <field name="exception_message" /> |
17 | 17 | <field name="severity" /> |
18 | | - </tree> |
| 18 | + </list> |
19 | 19 | </field> |
20 | 20 | </record> |
21 | 21 | <record id="rest_log_form_view" model="ir.ui.view"> |
22 | 22 | <field name="name">rest.log form</field> |
23 | 23 | <field name="model">rest.log</field> |
24 | 24 | <field name="arch" type="xml"> |
25 | 25 | <form> |
26 | | - <field name="collection_id" invisible="1" /> |
27 | 26 | <header> |
28 | 27 | <field name="state" widget="statusbar" /> |
29 | 28 | </header> |
30 | 29 | <sheet> |
31 | 30 | <div |
32 | 31 | class="oe_button_box" |
33 | 32 | name="button_box" |
34 | | - attrs="{'invisible': ['|', ('id','=',False), ('collection_id', '=', False)]}" |
| 33 | + invisible="['|', ('id','=',False), ('collection_id', '=', False)]" |
35 | 34 | > |
36 | 35 | <button |
37 | 36 | type="object" |
38 | 37 | name="action_view_collection" |
39 | 38 | icon="fa-eye" |
40 | | - attrs="{'invisible': [('collection_id', '=', False)]}" |
| 39 | + invisible="[('collection_id', '=', False)]" |
41 | 40 | > |
42 | 41 | View collection |
43 | 42 | </button> |
|
60 | 59 | <group |
61 | 60 | string="Result" |
62 | 61 | name="result" |
63 | | - attrs="{'invisible': [('state', '!=', 'success')]}" |
| 62 | + invisible="[('state', '!=', 'success')]" |
64 | 63 | > |
65 | 64 | <group> |
66 | 65 | <field name="result" nolabel="1" widget="ace" colspan="2" /> |
|
69 | 68 | <group |
70 | 69 | string="Error" |
71 | 70 | name="error" |
72 | | - attrs="{'invisible': [('state', '!=', 'failed')]}" |
| 71 | + invisible="[('state', '!=', 'failed')]" |
73 | 72 | > |
74 | 73 | <group colspan="2"> |
75 | 74 | <field name="exception_name" /> |
|
0 commit comments