mirror of
https://github.com/bringout/oca-ocb-project.git
synced 2026-04-23 03:22:04 +02:00
19.0 vanilla
This commit is contained in:
parent
a2f74aefd8
commit
4a4d12c333
844 changed files with 212348 additions and 270090 deletions
|
|
@ -1,24 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="hr_holiday_status_view_form_inherit" model="ir.ui.view">
|
||||
<field name="name">hr.leave.type.form</field>
|
||||
<field name="model">hr.leave.type</field>
|
||||
<field name="inherit_id" ref="hr_holidays.edit_holiday_status_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//group[@name='visual']" position="before">
|
||||
<group name="timesheet" groups="base.group_no_one" string="Timesheet">
|
||||
<group>
|
||||
<field name="timesheet_project_id" context="{'active_test': False}"/>
|
||||
<field name="company_id" invisible="1"/>
|
||||
<field name="timesheet_task_id" context="{'active_test': False, 'default_project_id': timesheet_project_id}" attrs="
|
||||
{'invisible': [('timesheet_project_id', '=', False)], 'required': [('timesheet_project_id', '!=', False)]}"/>
|
||||
<field name="timesheet_generate" invisible="1"/>
|
||||
</group>
|
||||
</group>
|
||||
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
|
||||
<record model="ir.ui.view" id="leave_task_form_view">
|
||||
<field name="name">project.task.leave.form.view</field>
|
||||
<field name="model">project.task</field>
|
||||
<field name="inherit_id" ref="hr_timesheet.view_task_form2_inherited"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="/form" position="inside">
|
||||
<field name="is_timeoff_task" invisible="1"/>
|
||||
</xpath>
|
||||
<xpath expr="//field[@name='timesheet_ids']" position="attributes">
|
||||
<attribute name="readonly">not analytic_account_active or is_timeoff_task</attribute>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
|
|
@ -6,12 +6,12 @@
|
|||
<field name="model">res.config.settings</field>
|
||||
<field name="inherit_id" ref="hr_timesheet.res_config_settings_view_form"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//div[@id='module_project_timesheet_holidays']" position="replace">
|
||||
<div attrs="{'invisible': [('module_project_timesheet_holidays','=',False)]}">
|
||||
<xpath expr="//setting[@id='timesheet_off_validation_setting']" position="inside">
|
||||
<div invisible="not module_project_timesheet_holidays">
|
||||
<div class="row mt16">
|
||||
<div class="w-100">
|
||||
<label string="Project" for="internal_project_id" class="col-2 col-lg-3"/>
|
||||
<field name="internal_project_id" context="{'active_test': False}" class="oe_inline ml16"/>
|
||||
<field name="internal_project_id" context="{'active_test': False, 'default_company_id': company_id}" class="oe_inline ml16"/>
|
||||
</div>
|
||||
<div class="w-100">
|
||||
<label string="Task" for="leave_timesheet_task_id" class="col-2 col-lg-3"/>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue