mirror of
https://github.com/bringout/oca-ocb-project.git
synced 2026-04-22 18:22:09 +02:00
Initial commit: Project packages
This commit is contained in:
commit
89613c97b0
753 changed files with 496325 additions and 0 deletions
|
|
@ -0,0 +1,24 @@
|
|||
<?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,26 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<odoo>
|
||||
|
||||
<record id="res_config_settings_view_form" model="ir.ui.view">
|
||||
<field name="name">res.config.settings.view.form.inherit.project.timesheet.holidays</field>
|
||||
<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)]}">
|
||||
<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"/>
|
||||
</div>
|
||||
<div class="w-100">
|
||||
<label string="Task" for="leave_timesheet_task_id" class="col-2 col-lg-3"/>
|
||||
<field name="leave_timesheet_task_id" context="{'active_test': False, 'default_project_id': internal_project_id}" class="oe_inline ml16"/>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Loading…
Add table
Add a link
Reference in a new issue