small improvement on resource form to fit with resource holiday

This commit is contained in:
Youssef Elouahby 2020-05-21 23:32:10 +00:00
parent 73f53fdec3
commit 300676c204
1 changed files with 22 additions and 18 deletions

View File

@ -68,24 +68,28 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<field name="supervisor_id" /> <field name="supervisor_id" />
</group> </group>
</group> </group>
<group string="availability configuration"> <notebook>
<group colspan="2"> <page name="availability" string="availability configuration">
<field name="id" invisible="1"/> <group>
<field name="availability_24_7"/> <group colspan="2">
<field name="availability_start" /> <field name="id" invisible="1"/>
<field name="availability_stop" /> <field name="availability_24_7"/>
</group> <field name="availability_start" />
<p attrs="{'invisible': ['|', <field name="availability_stop" />
('id', '!=', False), </group>
('availability_24_7', '=', True)]}"> <p attrs="{'invisible': ['|',
Please save the resource before fixing the timetable availability" ('id', '!=', False),
</p> ('availability_24_7', '=', True)]}">
<group colspan="2" attrs="{'invisible': [('availability_24_7', '=', True)]}"> Please save the resource before fixing the timetable availability"
<field name="timetable_ids" </p>
context="{'default_resource_id': active_id}" <group colspan="2" attrs="{'invisible': [('availability_24_7', '=', True)]}">
attrs="{'readonly': [('id', '=', False)]}" /> <field name="timetable_ids"
</group> context="{'default_resource_id': active_id}"
</group> attrs="{'readonly': [('id', '=', False)]}" />
</group>
</group>
</page>
</notebook>
</sheet> </sheet>
<div class="oe_chatter"> <div class="oe_chatter">
<field name="message_follower_ids" widget="mail_followers" /> <field name="message_follower_ids" widget="mail_followers" />