[FIX] (hr_)gamification,sales_team: one2many with many2many widget

with the new views, we removed the many2many_kanban widget on many2manys, since it is the default behaviour anyway, but we also removed it for a few one2manys.  And this is a mistake, some one2manys have to behave like many2manys.

(PR #17190)
This commit is contained in:
pka-odoo
2017-06-06 11:33:31 +02:00
committed by ged-odoo
parent 2d26ed05a7
commit ab0bd7be25
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -73,7 +73,7 @@
</group>
</group>
<group string="Rewards for challenges">
<field name="challenge_ids" nolabel="1" context="{'default_reward_id': active_id}" />
<field name="challenge_ids" mode="kanban" widget="many2many" nolabel="1" context="{'default_reward_id': active_id}" />
</group>
<group string="Statistics">
<group>
@@ -20,7 +20,7 @@ KanbanRecord.include({
view_mode: 'form',
view_type: 'form,kanban,tree',
views: [[false, 'form']],
res_id: this.record.badge_id.raw_value[0]
res_id: this.record.badge_id.raw_value
};
this.do_action(action);
} else {
@@ -18,7 +18,7 @@
Badges are rewards of good work. Give them to people you believe deserve it.
</p>
</div>
<field name="badge_ids" />
<field name="badge_ids" mode="kanban" widget="many2many"/>
</page>
</xpath>
+1 -1
View File
@@ -96,7 +96,7 @@
</group>
<notebook>
<page name="members" string="Team Members" attrs="{'invisible': [('team_type', 'in', ['pos', 'ebay'])]}">
<field name="member_ids" options="{'not_delete': True}">
<field name="member_ids" widget="many2many" options="{'not_delete': True}">
<kanban quick_create="false" create="true" delete="true">
<field name="id"/>
<field name="name"/>