summaryrefslogtreecommitdiff
path: root/addons/fleet/fleet_view.xml
diff options
context:
space:
mode:
authorGéry Debongnie <ged@odoo.com>2015-06-15 16:31:27 +0200
committerGéry Debongnie <ged@odoo.com>2015-06-15 16:31:27 +0200
commit2c7367a8cc8d9e200b1fa2083ce0d80f8f4e4bd3 (patch)
treeaf916cff4d94554b1e9667913e3feb331ec81a13 /addons/fleet/fleet_view.xml
parent5cb10d4fc9594f0c6825757c24d66d63664ce026 (diff)
parent82186a93bb3f93c36667835df68fa31dcacf97a2 (diff)
[MERGE] new kanban view
This branch introduces the new kanban view. It is not completely compatible with the previous version. Here are a few importants points to be aware of: * the kanban view template is rendered directly, not put inside a div. It means that if a template has more than one root, chaos will ensue * kanban view has been split into several files, and various js modules have changed. For example, the KanbanRecord class is now exported by the 'web_kanban.Record' module. So, require statements need to be updated * records do not have access to the view (i.e., record.view.is_action_enabled('edit')) You can use the 'editable' and 'deletable' key instead
Diffstat (limited to 'addons/fleet/fleet_view.xml')
-rw-r--r--addons/fleet/fleet_view.xml28
1 files changed, 14 insertions, 14 deletions
diff --git a/addons/fleet/fleet_view.xml b/addons/fleet/fleet_view.xml
index 99825594dc8..296a46ae6e1 100644
--- a/addons/fleet/fleet_view.xml
+++ b/addons/fleet/fleet_view.xml
@@ -190,20 +190,7 @@
<field name="state_id" widget="statusbar" clickable="True" />
</header>
<sheet>
- <field name="image_medium" widget='image' class="oe_left oe_avatar"/>
- <div class="oe_title">
- <label for="model_id" class="oe_edit_only"/>
- <h1>
- <field name="model_id" class="oe_inline" on_change="on_change_model(model_id)"/>
- </h1>
- <label for="license_plate" class="oe_edit_only"/>
- <h2>
- <field name="license_plate" class="oe_inline"/>
- </h2>
- <label for="tag_ids" class="oe_edit_only"/>
- <field name="tag_ids" widget="many2many_tags" />
- </div>
- <div class="oe_right oe_button_box">
+ <div class="oe_button_box" name="button_box">
<button name="return_action_to_open"
type="object"
class="oe_stat_button"
@@ -245,6 +232,19 @@
<field name="odometer_count" widget="statinfo" string="Odometer"/>
</button>
</div>
+ <field name="image_medium" widget='image' class="oe_left oe_avatar"/>
+ <div class="oe_title">
+ <label for="model_id" class="oe_edit_only"/>
+ <h1>
+ <field name="model_id" class="oe_inline" on_change="on_change_model(model_id)"/>
+ </h1>
+ <label for="license_plate" class="oe_edit_only"/>
+ <h2>
+ <field name="license_plate" class="oe_inline"/>
+ </h2>
+ <label for="tag_ids" class="oe_edit_only"/>
+ <field name="tag_ids" widget="many2many_tags" />
+ </div>
<group col="2" string="General Properties">
<group >
<field name="driver_id" />