mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[ADD] timesheet_grid_description: hide duplicative name field
when timesheet_grid is installed with timesheet_description
This commit is contained in:
0
timesheet_grid_description/__init__.py
Normal file
0
timesheet_grid_description/__init__.py
Normal file
21
timesheet_grid_description/__manifest__.py
Executable file
21
timesheet_grid_description/__manifest__.py
Executable file
@@ -0,0 +1,21 @@
|
||||
{
|
||||
'name': 'Timesheet Grid Description',
|
||||
'description': 'bridge',
|
||||
'version': '15.0.1.0.0',
|
||||
'website': 'https://hibou.io/',
|
||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
||||
'license': 'AGPL-3',
|
||||
'category': 'Human Resources',
|
||||
'depends': [
|
||||
'timesheet_description',
|
||||
'timesheet_grid',
|
||||
],
|
||||
'data': [
|
||||
'views/timesheet_views.xml',
|
||||
],
|
||||
'demo': [
|
||||
],
|
||||
'installable': True,
|
||||
'auto_install': True,
|
||||
'application': False,
|
||||
}
|
||||
15
timesheet_grid_description/views/timesheet_views.xml
Normal file
15
timesheet_grid_description/views/timesheet_views.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<odoo>
|
||||
|
||||
<record id="timesheet_view_form_inherit" model="ir.ui.view">
|
||||
<field name="name">account.analytic.line.form.inherit</field>
|
||||
<field name="model">account.analytic.line</field>
|
||||
<field name="inherit_id" ref="timesheet_grid.timesheet_view_form"/>
|
||||
<field name="priority" eval="10000" />
|
||||
<field name="arch" type="xml">
|
||||
<!-- replace because name added to its own group via timesheet_description -->
|
||||
<xpath expr="//sheet/group[last()]" position="replace" />
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user