[IMP]GOLEM Season : minor reordering in form, and typo / stule

This commit is contained in:
Fabien BOURGEOIS 2018-02-27 18:33:34 +01:00
parent 211a44ab4e
commit 021d70e828
3 changed files with 3 additions and 6 deletions

View File

@ -18,7 +18,7 @@
{ {
'name': 'GOLEM seasons', 'name': 'GOLEM seasons',
'summary': 'GOLEM non-profit seasons management', 'summary': 'GOLEM non-profit seasons management',
'version': '10.0.1.0.0', 'version': '10.0.1.0.1',
'category': 'GOLEM', 'category': 'GOLEM',
'author': 'Fabien Bourgeois', 'author': 'Fabien Bourgeois',
'license': 'AGPL-3', 'license': 'AGPL-3',

View File

@ -28,11 +28,8 @@ class GolemSeason(models.Model):
_('This season name has already been used.'))] _('This season name has already been used.'))]
name = fields.Char('Season name', copy=False, required=True) name = fields.Char('Season name', copy=False, required=True)
membership_id = fields.Many2one('product.template', 'Membership type', membership_id = fields.Many2one('product.template', 'Membership type',
domain="[('membership', '=', True)]") domain=[('membership', '=', True)])
member_counter = fields.Integer('Counter for member number generation', member_counter = fields.Integer('Counter for member number generation',
readonly=True, default=1) readonly=True, default=1)
date_start = fields.Date('Period start') date_start = fields.Date('Period start')

View File

@ -35,8 +35,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
</div> </div>
<group string="Season"> <group string="Season">
<field name="is_default" invisible="True" /> <field name="is_default" invisible="True" />
<field name="membership_id" options="{'no_create': true}"/>
<field name="name" attrs="{'required': True}" /> <field name="name" attrs="{'required': True}" />
<field name="membership_id" options="{'no_create': true}"/>
<field name="date_start" <field name="date_start"
attrs="{'required': [('date_end', '!=', False)]}" /> attrs="{'required': [('date_end', '!=', False)]}" />
<field name="date_end" <field name="date_end"