Skip to content

Commit 9e64e6b

Browse files
committed
[IMP] hr_timesheet_sheet_no_create: black, isort, prettier
1 parent 762a6bf commit 9e64e6b

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

hr_timesheet_sheet_no_create/views/hr_timesheet_sheet.xml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,34 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
22
<!-- Copyright 2020 Onestein (<https://www.onestein.eu>)
33
License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
4-
54
<odoo>
65

76
<record id="hr_timesheet_sheet_form" model="ir.ui.view">
87
<field name="model">hr_timesheet.sheet</field>
9-
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form"/>
8+
<field name="inherit_id" ref="hr_timesheet_sheet.hr_timesheet_sheet_form" />
109
<field name="arch" type="xml">
11-
<xpath expr="//field[@name='timesheet_ids']/tree//field[@name='project_id']" position="attributes">
10+
<xpath
11+
expr="//field[@name='timesheet_ids']/tree//field[@name='project_id']"
12+
position="attributes"
13+
>
1214
<attribute name="options">{'no_create': True}</attribute>
1315
</xpath>
14-
<xpath expr="//field[@name='timesheet_ids']/tree//field[@name='task_id']" position="attributes">
16+
<xpath
17+
expr="//field[@name='timesheet_ids']/tree//field[@name='task_id']"
18+
position="attributes"
19+
>
1520
<attribute name="options">{'no_create': True}</attribute>
1621
</xpath>
17-
<xpath expr="//field[@name='timesheet_ids']/form//field[@name='project_id']" position="attributes">
22+
<xpath
23+
expr="//field[@name='timesheet_ids']/form//field[@name='project_id']"
24+
position="attributes"
25+
>
1826
<attribute name="options">{'no_create': True}</attribute>
1927
</xpath>
20-
<xpath expr="//field[@name='timesheet_ids']/form//field[@name='task_id']" position="attributes">
28+
<xpath
29+
expr="//field[@name='timesheet_ids']/form//field[@name='task_id']"
30+
position="attributes"
31+
>
2132
<attribute name="options">{'no_create': True}</attribute>
2233
</xpath>
2334
</field>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../hr_timesheet_sheet_no_create
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import setuptools
2+
3+
setuptools.setup(
4+
setup_requires=['setuptools-odoo'],
5+
odoo_addon=True,
6+
)

0 commit comments

Comments
 (0)