[IMP]GOLEM Activity / Member : do not allow direct season creation

This commit is contained in:
Fabien BOURGEOIS 2018-08-27 12:24:00 +02:00
parent 29792a7712
commit 66567045c6
4 changed files with 6 additions and 4 deletions

View File

@ -19,7 +19,7 @@
'name': 'GOLEM activities',
'summary': 'Extends Odoo products for multi-activity',
'description': 'Extends Odoo products for multi-activity',
'version': '10.0.2.6.0',
'version': '10.0.2.6.1',
'category': 'GOLEM',
'author': 'Fabien Bourgeois, Michel Dessenne',
'license': 'AGPL-3',

View File

@ -38,7 +38,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
<group>
<group>
<field name="season_id" required="True" />
<field name="season_id" required="True"
options="{'no_create': True}" />
<field name="animator_id" />
<field name="type_id" required="True"
options="{'no_create': True}" />

View File

@ -20,7 +20,7 @@
'name': 'GOLEM non-profit members',
'summary': 'Extends Odoo contacts for MJC',
'description': 'Extends Odoo contacts for MJC',
'version': '10.0.2.3.4',
'version': '10.0.2.3.5',
'category': 'GOLEM',
'author': 'Fabien Bourgeois, Michel Dessenne',
'license': 'AGPL-3',

View File

@ -61,7 +61,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div>
<div class="oe_right oe_button_box" name="buttons" />
<group>
<field name="season_ids" widget="many2many_tags" />
<field name="season_ids" widget="many2many_tags"
options="{'no_create': True}" />
<field name="category_id" widget="many2many_tags"
placeholder="Tags..."/>
</group>