[FIX] web,project: kanban_selection widget position
Move the project kanban_selection widget out of h1 and make it as direct child of form sheet. This allows to put it on the right of oe_title no matter what (+ enterprise compatibility).
This commit is contained in:
@@ -254,14 +254,15 @@
|
||||
options='{"terminology": "archive"}'/>
|
||||
</button>
|
||||
</div>
|
||||
<field name="kanban_state" widget="kanban_state_selection"
|
||||
options='{
|
||||
"states_legend_field": "stage_id",
|
||||
"states_legend": {"normal": "legend_normal", "blocked": "legend_blocked", "done": "legend_done"}
|
||||
}'/>
|
||||
<div class="oe_title">
|
||||
<h1 class="o_row">
|
||||
<field name="priority" widget="priority"/>
|
||||
<field name="name" placeholder="Task Title..."/>
|
||||
<field name="kanban_state" widget="kanban_state_selection"
|
||||
options='{
|
||||
"states_legend_field": "stage_id",
|
||||
"states_legend": {"normal": "legend_normal", "blocked": "legend_blocked", "done": "legend_done"}}'/>
|
||||
</h1>
|
||||
</div>
|
||||
<group>
|
||||
|
||||
@@ -218,7 +218,7 @@ var KanbanSelection = FieldChar.extend({
|
||||
var dd_fetched = this.prepare_dropdown_selection();
|
||||
return $.when(dd_fetched).then(function (states) {
|
||||
self.states = states;
|
||||
self.$el.addClass('oe_right');
|
||||
self.$el.addClass('oe_right oe_inline');
|
||||
self.$el.html(QWeb.render("KanbanSelection", {'widget': self}));
|
||||
self.$el.find('li').on('click', self.set_kanban_selection.bind(self));
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user