|
@ -32,21 +32,19 @@ |
|
|
<field name="country_id"/> |
|
|
<field name="country_id"/> |
|
|
<field name="mobile"/> |
|
|
<field name="mobile"/> |
|
|
<field name="state_id"/> |
|
|
<field name="state_id"/> |
|
|
<field name="image_small"/> |
|
|
|
|
|
|
|
|
<field name="image_128"/> |
|
|
<field name="lang"/> |
|
|
<field name="lang"/> |
|
|
<!-- fields in form x2many view to diminish requests --> |
|
|
<!-- fields in form x2many view to diminish requests --> |
|
|
<field name="comment"/> |
|
|
<field name="comment"/> |
|
|
<field name="customer"/> |
|
|
|
|
|
<field name="display_name"/> |
|
|
<field name="display_name"/> |
|
|
<field name="supplier"/> |
|
|
|
|
|
<templates> |
|
|
<templates> |
|
|
<t t-name="kanban-box"> |
|
|
<t t-name="kanban-box"> |
|
|
<t t-set="color" t-value="kanban_color(record.color.raw_value)"/> |
|
|
<t t-set="color" t-value="kanban_color(record.color.raw_value)"/> |
|
|
<div t-att-class="color + (record.title.raw_value == 1 ? ' oe_kanban_color_alert' : '') + ' oe_kanban_global_click'"> |
|
|
<div t-att-class="color + (record.title.raw_value == 1 ? ' oe_kanban_color_alert' : '') + ' oe_kanban_global_click'"> |
|
|
<a t-if="!read_only_mode" type="delete" class="fa fa-times pull-right"/> |
|
|
<a t-if="!read_only_mode" type="delete" class="fa fa-times pull-right"/> |
|
|
<div class="o_kanban_image"> |
|
|
<div class="o_kanban_image"> |
|
|
<img alt="" t-if="record.image_small.raw_value" t-att-src="kanban_image('res.partner', 'image_small', record.id.raw_value)"/> |
|
|
|
|
|
<t t-if="!record.image_small.raw_value"> |
|
|
|
|
|
|
|
|
<img alt="" t-if="record.image_128.raw_value" t-att-src="kanban_image('res.partner', 'image_128', record.id.raw_value)"/> |
|
|
|
|
|
<t t-if="!record.image_128.raw_value"> |
|
|
<img alt="Delivery" t-if="record.type.raw_value === 'delivery'" t-att-src='_s + "/base/static/img/truck.png"'/> |
|
|
<img alt="Delivery" t-if="record.type.raw_value === 'delivery'" t-att-src='_s + "/base/static/img/truck.png"'/> |
|
|
<img alt="Invoice" t-if="record.type.raw_value === 'invoice'" t-att-src='_s + "/base/static/img/money.png"'/> |
|
|
<img alt="Invoice" t-if="record.type.raw_value === 'invoice'" t-att-src='_s + "/base/static/img/money.png"'/> |
|
|
<t t-if="record.type.raw_value !== 'invoice' && record.type.raw_value !== 'delivery'"> |
|
|
<t t-if="record.type.raw_value !== 'invoice' && record.type.raw_value !== 'delivery'"> |
|
|