[WIP]partner_skills:replace radio button by dropdown and allow to check many skills at once
This commit is contained in:
@@ -145,19 +145,20 @@
|
||||
<group>
|
||||
<group>
|
||||
<field name="partner_id" invisible="1"/>
|
||||
<field name="skill_type_id" widget="radio"/>
|
||||
<field name="skill_type_id" options="{'no_open': True, 'no_create': True}"/>
|
||||
</group>
|
||||
<group>
|
||||
<div class="text-end mb-2" invisible="not skill_type_id">
|
||||
<button name="action_add_all_skills_of_type"
|
||||
type="object"
|
||||
string="Add all skills of this type"
|
||||
class="btn btn-link btn-sm p-0"/>
|
||||
</div>
|
||||
<field name="skill_id" options="{'no_open': True, 'no_create': True}"
|
||||
context="{'default_skill_type_id': skill_type_id}"
|
||||
<field name="skill_id" invisible="1"/>
|
||||
<field name="skill_ids"
|
||||
widget="many2many_checkboxes"
|
||||
domain="[('skill_type_id', '=', skill_type_id)]"
|
||||
invisible="not skill_type_id"/>
|
||||
<div class="text-end mb-2" invisible="not skill_type_id">
|
||||
<button name="action_check_all_skills"
|
||||
type="object"
|
||||
string="Check all boxes"
|
||||
class="btn btn-link btn-sm p-0"/>
|
||||
</div>
|
||||
<!-- SKILL LEVEL BLOCK (hidden for now)
|
||||
<label for="skill_level_id"
|
||||
invisible="not (skill_id or skill_type_id)"/>
|
||||
@@ -177,7 +178,11 @@
|
||||
</group>
|
||||
</sheet>
|
||||
<footer>
|
||||
<button string="Save" special="save" class="btn-primary" data-hotkey="q"/>
|
||||
<button string="Save"
|
||||
name="action_save_skill_selection"
|
||||
type="object"
|
||||
class="btn-primary"
|
||||
data-hotkey="q"/>
|
||||
<button string="Discard" special="cancel" data-hotkey="x"/>
|
||||
</footer>
|
||||
</form>
|
||||
|
||||
Reference in New Issue
Block a user