forked from Yaltik/golem
[TMP] Display date in if_recurent
This commit is contained in:
parent
8333992f1a
commit
2310a56a1b
@ -30,6 +30,7 @@ class GolemActivityType(models.Model):
|
||||
name = fields.Char('Activity type', required=True, translate=True)
|
||||
is_recurrent = fields.Boolean('Is recurrent?')
|
||||
|
||||
|
||||
class GolemActivity(models.Model):
|
||||
""" GOLEM Activity """
|
||||
_name = 'golem.activity'
|
||||
@ -46,6 +47,7 @@ class GolemActivity(models.Model):
|
||||
|
||||
full_name = fields.Char('Name', compute='_compute_full_name', store=True,
|
||||
index=True)
|
||||
is_fullseason = fields.Boolean('Not full season?', default=False)
|
||||
|
||||
@api.multi
|
||||
@api.depends('name', 'default_code')
|
||||
|
@ -59,10 +59,15 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
attrs="{'invisible': [('is_recurrent', '=', False)]}" />
|
||||
<field name="hour_stop" widget="float_time"
|
||||
attrs="{'invisible': [('is_recurrent', '=', False)]}" />
|
||||
|
||||
<field name="is_fullseason"
|
||||
attrs="{'invisible':[('is_recurrent', '=', False)]}" />
|
||||
<field name="date_start"
|
||||
attrs="{'invisible': [('is_recurrent', '=', True)]}" />
|
||||
attrs="{'invisible':[('is_recurrent', '=', True),
|
||||
('is_fullseason', '=', False)]}" />
|
||||
<field name="date_stop"
|
||||
attrs="{'invisible': [('is_recurrent', '=', True)]}" />
|
||||
attrs="{'invisible':[('is_recurrent', '=', True),
|
||||
('is_fullseason', '=', False)]}" />
|
||||
</group>
|
||||
<group name="places">
|
||||
</group>
|
||||
@ -111,8 +116,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<field name="animator_id" />
|
||||
<field name="weekday" string="Day"
|
||||
attrs="{'invisible': [('is_recurrent', '=', False)]}" />
|
||||
<field name="date_start" string="Date"
|
||||
attrs="{'invisible': [('is_recurrent', '=', True)]}" />
|
||||
<field name="date_start" string="Date" />
|
||||
<field name="list_price" sum="True" />
|
||||
</tree>
|
||||
</field>
|
||||
|
Loading…
x
Reference in New Issue
Block a user