forked from Yaltik/golem
small improvement on resource form to fit with resource holiday
This commit is contained in:
parent
73f53fdec3
commit
300676c204
@ -68,24 +68,28 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
<field name="supervisor_id" />
|
||||
</group>
|
||||
</group>
|
||||
<group string="availability configuration">
|
||||
<group colspan="2">
|
||||
<field name="id" invisible="1"/>
|
||||
<field name="availability_24_7"/>
|
||||
<field name="availability_start" />
|
||||
<field name="availability_stop" />
|
||||
</group>
|
||||
<p attrs="{'invisible': ['|',
|
||||
('id', '!=', False),
|
||||
('availability_24_7', '=', True)]}">
|
||||
Please save the resource before fixing the timetable availability"
|
||||
</p>
|
||||
<group colspan="2" attrs="{'invisible': [('availability_24_7', '=', True)]}">
|
||||
<field name="timetable_ids"
|
||||
context="{'default_resource_id': active_id}"
|
||||
attrs="{'readonly': [('id', '=', False)]}" />
|
||||
</group>
|
||||
</group>
|
||||
<notebook>
|
||||
<page name="availability" string="availability configuration">
|
||||
<group>
|
||||
<group colspan="2">
|
||||
<field name="id" invisible="1"/>
|
||||
<field name="availability_24_7"/>
|
||||
<field name="availability_start" />
|
||||
<field name="availability_stop" />
|
||||
</group>
|
||||
<p attrs="{'invisible': ['|',
|
||||
('id', '!=', False),
|
||||
('availability_24_7', '=', True)]}">
|
||||
Please save the resource before fixing the timetable availability"
|
||||
</p>
|
||||
<group colspan="2" attrs="{'invisible': [('availability_24_7', '=', True)]}">
|
||||
<field name="timetable_ids"
|
||||
context="{'default_resource_id': active_id}"
|
||||
attrs="{'readonly': [('id', '=', False)]}" />
|
||||
</group>
|
||||
</group>
|
||||
</page>
|
||||
</notebook>
|
||||
</sheet>
|
||||
<div class="oe_chatter">
|
||||
<field name="message_follower_ids" widget="mail_followers" />
|
||||
|
Loading…
Reference in New Issue
Block a user