Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Owo Sugiana
/
project_product
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 2748e822
authored
Jul 07, 2023
by
Owo Sugiana
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Produk pada kegiatan
1 parent
33c258d9
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletions
__manifest__.py
models/project.py
views/project.xml
__manifest__.py
View file @
2748e82
...
...
@@ -4,7 +4,8 @@
'author'
:
'opensipkd.com'
,
'license'
:
'LGPL-3'
,
'summary'
:
'Tambahkan beberapa produk pada proyek'
,
'description'
:
'Sekedar menambahkan catatan, tidak terkait stok atau transaksi'
,
'description'
:
'Sekedar menambahkan catatan, tidak terkait stok atau '
'transaksi'
,
'depends'
:
[
'project'
,
'product'
],
'data'
:
[
'views/project.xml'
,
...
...
models/project.py
View file @
2748e82
...
...
@@ -17,3 +17,9 @@ class Project(models.Model):
_inherit
=
'project.project'
product_ids
=
fields
.
One2many
(
'project.product'
,
'project_id'
)
class
Task
(
models
.
Model
):
_inherit
=
'project.task'
product_id
=
fields
.
Many2one
(
'product.product'
)
views/project.xml
View file @
2748e82
...
...
@@ -17,4 +17,15 @@
</page>
</field>
</record>
<record
id=
"edit_task_form2"
model=
"ir.ui.view"
>
<field
name=
"name"
>
project.task.product.form
</field>
<field
name=
"model"
>
project.task
</field>
<field
name=
"inherit_id"
ref=
"project.view_task_form2"
/>
<field
name=
"type"
>
form
</field>
<field
name=
"arch"
type=
"xml"
>
<field
name=
"date_last_stage_update"
position=
"after"
>
<field
name=
"product_id"
/>
</field>
</field>
</record>
</odoo>
Write
Preview
Markdown
is supported
Attach a file
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 post a comment