forked from Yaltik/golem
[IMP]GOLEM Season : minor reordering in form, and typo / stule
This commit is contained in:
parent
211a44ab4e
commit
021d70e828
@ -18,7 +18,7 @@
|
||||
{
|
||||
'name': 'GOLEM seasons',
|
||||
'summary': 'GOLEM non-profit seasons management',
|
||||
'version': '10.0.1.0.0',
|
||||
'version': '10.0.1.0.1',
|
||||
'category': 'GOLEM',
|
||||
'author': 'Fabien Bourgeois',
|
||||
'license': 'AGPL-3',
|
||||
|
@ -28,11 +28,8 @@ class GolemSeason(models.Model):
|
||||
_('This season name has already been used.'))]
|
||||
|
||||
name = fields.Char('Season name', copy=False, required=True)
|
||||
|
||||
membership_id = fields.Many2one('product.template', 'Membership type',
|
||||
domain="[('membership', '=', True)]")
|
||||
|
||||
|
||||
domain=[('membership', '=', True)])
|
||||
member_counter = fields.Integer('Counter for member number generation',
|
||||
readonly=True, default=1)
|
||||
date_start = fields.Date('Period start')
|
||||
|
@ -35,8 +35,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
</div>
|
||||
<group string="Season">
|
||||
<field name="is_default" invisible="True" />
|
||||
<field name="membership_id" options="{'no_create': true}"/>
|
||||
<field name="name" attrs="{'required': True}" />
|
||||
<field name="membership_id" options="{'no_create': true}"/>
|
||||
<field name="date_start"
|
||||
attrs="{'required': [('date_end', '!=', False)]}" />
|
||||
<field name="date_end"
|
||||
|
Loading…
Reference in New Issue
Block a user