Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dwsproject
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dws
dwsproject
Commits
fbbe7417
Commit
fbbe7417
authored
Jan 07, 2025
by
liuyongcheng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix 添加班次默认值
parent
3f65f793
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
39 deletions
+0
-39
sdddl_project/__manifest__.py
+0
-1
sdddl_project/data/roke_work_shift.xml
+0
-38
No files found.
sdddl_project/__manifest__.py
View file @
fbbe7417
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
"""
,
"""
,
'data'
:
[
'data'
:
[
'security/ir.model.access.csv'
,
'security/ir.model.access.csv'
,
'data/roke_work_shift.xml'
,
'views/inherit_roke_production_task.xml'
,
'views/inherit_roke_production_task.xml'
,
'views/button_js.xml'
,
'views/button_js.xml'
,
'views/iniherit_work_order_view.xml'
,
'views/iniherit_work_order_view.xml'
,
...
...
sdddl_project/data/roke_work_shift.xml
deleted
100644 → 0
View file @
3f65f793
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data
noupdate=
"0"
>
<record
id=
"roke_work_shift_1"
model=
"roke.work.shift"
>
<field
name=
"name"
>
早班
</field>
</record>
<record
id=
"roke_work_shift_2"
model=
"roke.work.shift"
>
<field
name=
"name"
>
中班
</field>
</record>
<record
id=
"roke_work_shift_3"
model=
"roke.work.shift"
>
<field
name=
"name"
>
晚班
</field>
</record>
<record
id=
"roke_workstation_api.roke_classes_main_1"
model=
"roke.classes.main"
>
<field
name=
"name"
>
24小时单班制
</field>
<field
name=
"classes_ids"
eval=
"[(5, 0, 0),
(0, 0, {'work_shift_id': ref('roke_work_shift_1'), 'start_time': 8.5, 'end_time': 17.5, 'is_active': True}),
(0, 0, {'work_shift_id': ref('roke_work_shift_2')}),
(0, 0, {'work_shift_id': ref('roke_work_shift_3')})]"
/>
</record>
<record
id=
"roke_workstation_api.roke_classes_main_2"
model=
"roke.classes.main"
>
<field
name=
"name"
>
24小时两班制
</field>
<field
name=
"classes_ids"
eval=
"[(5, 0, 0),
(0, 0, {'work_shift_id': ref('roke_work_shift_1'), 'start_time': 8.5, 'end_time': 20.5, 'is_active': True}),
(0, 0, {'work_shift_id': ref('roke_work_shift_2'), 'start_time': 20.5, 'end_time': 8.5, 'is_active': True}),
(0, 0, {'work_shift_id': ref('roke_work_shift_3')})]"
/>
</record>
<record
id=
"roke_workstation_api.roke_classes_main_3"
model=
"roke.classes.main"
>
<field
name=
"name"
>
24小时三班制
</field>
<field
name=
"is_default"
>
True
</field>
<field
name=
"classes_ids"
eval=
"[(5, 0, 0),
(0, 0, {'work_shift_id': ref('roke_work_shift_1'), 'start_time': 8.5, 'end_time': 16.5, 'is_active': True}),
(0, 0, {'work_shift_id': ref('roke_work_shift_2'), 'start_time': 16.5, 'end_time': 0.5, 'is_active': True}),
(0, 0, {'work_shift_id': ref('roke_work_shift_3'), 'start_time': 0.5, 'end_time': 8.5, 'is_active': True})]"
/>
</record>
</data>
</odoo>
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment