|
29 | 29 | <field name="result_description" /> |
30 | 30 | <field name="result" /> |
31 | 31 | <field name="inspection_closed_at" /> |
32 | | - <field name="write_date" /> |
33 | | - <field name="write_uid" /> |
34 | 32 | <templates> |
35 | | - <t t-name="menu" groups="base.group_user"> |
36 | | - <a |
37 | | - name="action_success" |
38 | | - type="object" |
39 | | - role="menuitem" |
40 | | - class="dropdown-item" |
41 | | - >Approve</a> |
42 | | - <a |
43 | | - name="action_failure" |
44 | | - type="object" |
45 | | - role="menuitem" |
46 | | - class="dropdown-item" |
47 | | - >Refuse</a> |
48 | | - <a |
49 | | - t-if="widget.deletable" |
50 | | - role="menuitem" |
51 | | - type="delete" |
52 | | - class="dropdown-item" |
53 | | - >Delete</a> |
54 | | - </t> |
55 | | - <t t-name="card" class="flex-row"> |
56 | | - <aside invisible="1" /> |
57 | | - <main> |
58 | | - <field name="item_id" class="fw-bold fs-5" /> |
59 | | - <field name="instruction" /> |
60 | | - <field name="result_description" /> |
61 | | - <footer class="pt-1 mt-0"> |
62 | | - <small class="text-muted"> |
63 | | - Last edited by <t |
64 | | - t-esc="record.write_uid.value" |
65 | | - /> on <t t-esc="record.write_date.value" /> |
66 | | - </small> |
67 | | - <div name="footer_right" class="ms-auto d-flex " /> |
68 | | - </footer> |
69 | | - </main> |
70 | | - <div class="position-absolute top-0 end-0 m-2 me-4"> |
71 | | - <field |
72 | | - name="result" |
73 | | - widget="badge" |
74 | | - decoration-info="result == 'todo'" |
75 | | - decoration-success="result == 'success'" |
76 | | - decoration-danger="result == 'failure'" |
77 | | - /> |
| 33 | + <t t-name="kanban-box"> |
| 34 | + <div t-attf-class="oe_kanban_card oe_kanban_global_click"> |
| 35 | + <div class="o_dropdown_kanban dropdown"> |
| 36 | + <a |
| 37 | + class="dropdown-toggle o-no-caret btn" |
| 38 | + role="button" |
| 39 | + data-toggle="dropdown" |
| 40 | + data-display="static" |
| 41 | + href="#" |
| 42 | + aria-label="Dropdown menu" |
| 43 | + title="Dropdown menu" |
| 44 | + > |
| 45 | + <span class="fa fa-ellipsis-v" /> |
| 46 | + </a> |
| 47 | + <div class="dropdown-menu" role="menu"> |
| 48 | + <a |
| 49 | + name="action_success" |
| 50 | + type="object" |
| 51 | + role="menuitem" |
| 52 | + class="dropdown-item" |
| 53 | + >Approve</a> |
| 54 | + <a |
| 55 | + name="action_failure" |
| 56 | + type="object" |
| 57 | + role="menuitem" |
| 58 | + class="dropdown-item" |
| 59 | + >Refuse</a> |
| 60 | + </div> |
| 61 | + </div> |
| 62 | + <div class="o_kanban_record_top"> |
| 63 | + <div class="o_kanban_record_headings"> |
| 64 | + <strong class="o_kanban_record_title"> |
| 65 | + <span> |
| 66 | + <t t-esc="record.item_id.value" /> |
| 67 | + </span> |
| 68 | + </strong> |
| 69 | + </div> |
| 70 | + <span class="float-right"> |
| 71 | + <field |
| 72 | + name="result" |
| 73 | + widget="badge" |
| 74 | + decoration-info="result == 'todo'" |
| 75 | + decoration-success="result == 'success'" |
| 76 | + decoration-danger="result == 'failure'" |
| 77 | + /> |
| 78 | + </span> |
| 79 | + </div> |
| 80 | + <div class="row"> |
| 81 | + <div class="col-12 text-muted"> |
| 82 | + <span> |
| 83 | + <t t-esc="record.instruction.value" /> |
| 84 | + </span> |
| 85 | + </div> |
| 86 | + </div> |
78 | 87 | </div> |
79 | 88 | </t> |
80 | 89 | </templates> |
|
0 commit comments