[IMP]GOLEM Member Skills : volunteer or not ?
This commit is contained in:
parent
94b5c2a323
commit
ed3cf3dbc6
@ -21,6 +21,7 @@ from openerp import models, fields
|
|||||||
class GolemMember(models.Model):
|
class GolemMember(models.Model):
|
||||||
_inherit = 'golem.member'
|
_inherit = 'golem.member'
|
||||||
|
|
||||||
|
is_volunteer = fields.Boolean('Volunteer?')
|
||||||
skill_ids = fields.Many2many('golem.member.skill', string='Skills')
|
skill_ids = fields.Many2many('golem.member.skill', string='Skills')
|
||||||
|
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<field name="inherit_id" ref="golem_member.golem_member_view_form" />
|
<field name="inherit_id" ref="golem_member.golem_member_view_form" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="category_id" position="before">
|
<field name="category_id" position="before">
|
||||||
|
<field name="is_volunteer" />
|
||||||
<field name="skill_ids" widget="many2many_tags"
|
<field name="skill_ids" widget="many2many_tags"
|
||||||
placeholder="Skills..." />
|
placeholder="Skills..." />
|
||||||
</field>
|
</field>
|
||||||
@ -33,12 +34,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
</record>
|
</record>
|
||||||
<!-- Searches -->
|
<!-- Searches -->
|
||||||
<record model="ir.ui.view" id="golem_member_view_filter_add_skills">
|
<record model="ir.ui.view" id="golem_member_view_filter_add_skills">
|
||||||
<field name="name">Add Skills Group By Filter</field>
|
<field name="name">Add Skills Search and Filter</field>
|
||||||
<field name="model">golem.member</field>
|
<field name="model">golem.member</field>
|
||||||
<field name="inherit_id" ref="golem_member.golem_member_view_filter" />
|
<field name="inherit_id" ref="golem_member.golem_member_view_filter" />
|
||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<field name="email" position="after">
|
<field name="email" position="after">
|
||||||
<field name="skill_ids" widget="many2one" />
|
<field name="skill_ids" widget="many2one" />
|
||||||
|
<filter name="filter_is_volunteer" string="Is volunteer"
|
||||||
|
domain="[('is_volunteer', '=', True)]" />
|
||||||
</field>
|
</field>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
Loading…
Reference in New Issue
Block a user