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
0
Merge Requests
0
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
bfacb4ef
Commit
bfacb4ef
authored
Mar 19, 2025
by
夏超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] 东联委外记录功能记录
parent
2750df7f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
sdddl_project/models/roke_entrust_issue_record.py
+8
-0
sdddl_project/views/roke_entrust_issue_record_view.xml
+3
-0
No files found.
sdddl_project/models/roke_entrust_issue_record.py
View file @
bfacb4ef
...
...
@@ -11,3 +11,11 @@ class RokeEntrustIssueRecordModel(models.Model):
default
=
lambda
self
:
self
.
env
[
'ir.sequence'
]
.
next_by_code
(
'roke.entrust.issue.record.code'
))
material_ids
=
fields
.
Many2many
(
"roke.send.material.record"
,
string
=
"委外发料记录"
)
class
InheritRokeSendMaterialRecordModel
(
models
.
Model
):
_inherit
=
"roke.send.material.record"
process_id
=
fields
.
Many2one
(
related
=
"material_id.process_id"
,
string
=
"工序"
,
store
=
True
)
entrust_customer
=
fields
.
Many2one
(
related
=
"material_id.entrust_customer"
,
string
=
"委外客户"
,
store
=
True
)
sdddl_project/views/roke_entrust_issue_record_view.xml
View file @
bfacb4ef
...
...
@@ -39,6 +39,9 @@
<page
string=
"发料明细"
>
<field
name=
"material_ids"
options=
"{'no_create': True}"
>
<tree>
<field
name=
"material_id"
/>
<field
name=
"process_id"
/>
<field
name=
"entrust_customer"
/>
<field
name=
"product_id"
/>
<field
name=
"qty"
/>
<field
name=
"consume_qty"
/>
...
...
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