/
This commit is contained in:
parent
dc88b0d9c4
commit
8333992f1a
@ -30,7 +30,6 @@ class GolemActivityType(models.Model):
|
|||||||
name = fields.Char('Activity type', required=True, translate=True)
|
name = fields.Char('Activity type', required=True, translate=True)
|
||||||
is_recurrent = fields.Boolean('Is recurrent?')
|
is_recurrent = fields.Boolean('Is recurrent?')
|
||||||
|
|
||||||
|
|
||||||
class GolemActivity(models.Model):
|
class GolemActivity(models.Model):
|
||||||
""" GOLEM Activity """
|
""" GOLEM Activity """
|
||||||
_name = 'golem.activity'
|
_name = 'golem.activity'
|
||||||
@ -47,8 +46,6 @@ class GolemActivity(models.Model):
|
|||||||
|
|
||||||
full_name = fields.Char('Name', compute='_compute_full_name', store=True,
|
full_name = fields.Char('Name', compute='_compute_full_name', store=True,
|
||||||
index=True)
|
index=True)
|
||||||
display_date = fields.Boolean('Display date?', default=True)
|
|
||||||
|
|
||||||
|
|
||||||
@api.multi
|
@api.multi
|
||||||
@api.depends('name', 'default_code')
|
@api.depends('name', 'default_code')
|
||||||
|
@ -59,14 +59,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
attrs="{'invisible': [('is_recurrent', '=', False)]}" />
|
attrs="{'invisible': [('is_recurrent', '=', False)]}" />
|
||||||
<field name="hour_stop" widget="float_time"
|
<field name="hour_stop" widget="float_time"
|
||||||
attrs="{'invisible': [('is_recurrent', '=', False)]}" />
|
attrs="{'invisible': [('is_recurrent', '=', False)]}" />
|
||||||
<field name="display_date"
|
|
||||||
attrs="{'invisible':[('is_recurrent', '=', False)]}" />
|
|
||||||
<field name="date_start"
|
<field name="date_start"
|
||||||
attrs="{'invisible':[('is_recurrent', '=', True),
|
attrs="{'invisible': [('is_recurrent', '=', True)]}" />
|
||||||
('display_date', '=', False)]}" />
|
|
||||||
<field name="date_stop"
|
<field name="date_stop"
|
||||||
attrs="{'invisible':[('is_recurrent', '=', True),
|
attrs="{'invisible': [('is_recurrent', '=', True)]}" />
|
||||||
('display_date', '=', False)]}" />
|
|
||||||
</group>
|
</group>
|
||||||
<group name="places">
|
<group name="places">
|
||||||
</group>
|
</group>
|
||||||
|
Loading…
Reference in New Issue
Block a user