forked from Yaltik/golem
[IMP]GOLEM Member multi-season management
This commit is contained in:
parent
4eb12b4510
commit
b27084fe73
@ -40,3 +40,4 @@ class GolemMember(models.Model):
|
|||||||
number = fields.Char('Number', size=50, index=True)
|
number = fields.Char('Number', size=50, index=True)
|
||||||
pictures_agreement = fields.Boolean('Pictures agreement?')
|
pictures_agreement = fields.Boolean('Pictures agreement?')
|
||||||
opt_out_sms = fields.Boolean('Out of SMS campaigns')
|
opt_out_sms = fields.Boolean('Out of SMS campaigns')
|
||||||
|
season_ids = fields.Many2many('golem.season', string='Seasons')
|
||||||
|
@ -32,6 +32,9 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
options="{'preview_image': 'image_medium', 'size': [90, 90]}" />
|
options="{'preview_image': 'image_medium', 'size': [90, 90]}" />
|
||||||
<field name="name" class="oe_inline" readonly="True" />
|
<field name="name" class="oe_inline" readonly="True" />
|
||||||
</h1>
|
</h1>
|
||||||
|
<group>
|
||||||
|
<field name="season_ids" widget="many2many_tags" />
|
||||||
|
</group>
|
||||||
</div>
|
</div>
|
||||||
<group string="Personal details">
|
<group string="Personal details">
|
||||||
<group>
|
<group>
|
||||||
@ -121,11 +124,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<search>
|
<search>
|
||||||
<field name="number" />
|
<field name="number" />
|
||||||
<field name="name" />
|
<field name="name" />
|
||||||
|
<field name="season_ids" widget="many2one" />
|
||||||
<field name="contact_address" />
|
<field name="contact_address" />
|
||||||
<field name="city" />
|
<field name="city" />
|
||||||
<field name="phone" />
|
<field name="phone" />
|
||||||
<field name="mobile" />
|
<field name="mobile" />
|
||||||
<field name="email" />
|
<field name="email" />
|
||||||
|
<field name="category_id" widget="many2one" />
|
||||||
<group string="Group By">
|
<group string="Group By">
|
||||||
<filter name="group_city" string="By city"
|
<filter name="group_city" string="By city"
|
||||||
context="{'group_by': 'city'}"/>
|
context="{'group_by': 'city'}"/>
|
||||||
|
Loading…
Reference in New Issue
Block a user