[IMP]GOLEM Member multi-season management

This commit is contained in:
Fabien Bourgeois 2016-06-26 06:34:08 +02:00
parent 4eb12b4510
commit b27084fe73
2 changed files with 6 additions and 0 deletions

View File

@ -40,3 +40,4 @@ class GolemMember(models.Model):
number = fields.Char('Number', size=50, index=True)
pictures_agreement = fields.Boolean('Pictures agreement?')
opt_out_sms = fields.Boolean('Out of SMS campaigns')
season_ids = fields.Many2many('golem.season', string='Seasons')

View File

@ -32,6 +32,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
options="{'preview_image': 'image_medium', 'size': [90, 90]}" />
<field name="name" class="oe_inline" readonly="True" />
</h1>
<group>
<field name="season_ids" widget="many2many_tags" />
</group>
</div>
<group string="Personal details">
<group>
@ -121,11 +124,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<search>
<field name="number" />
<field name="name" />
<field name="season_ids" widget="many2one" />
<field name="contact_address" />
<field name="city" />
<field name="phone" />
<field name="mobile" />
<field name="email" />
<field name="category_id" widget="many2one" />
<group string="Group By">
<filter name="group_city" string="By city"
context="{'group_by': 'city'}"/>