Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Tryton
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Tryton
Tryton
Commits
4d53c859
Commit
4d53c859
authored
2 years ago
by
Cédric Krier
Browse files
Options
Downloads
Patches
Plain Diff
Add relate from product to lots
Closes
#11873
parent
f2fa06a4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!114
Return an empty list when the treeview has no selection
,
!60
Add relate from product to lots
Pipeline
#60079
passed
2 years ago
Stage: preparation
Stage: execution
Pipeline: Tryton
#60080
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/stock_lot/stock.xml
+29
-0
29 additions, 0 deletions
modules/stock_lot/stock.xml
with
29 additions
and
0 deletions
modules/stock_lot/stock.xml
+
29
−
0
View file @
4d53c859
...
...
@@ -35,6 +35,35 @@
sequence=
"50"
id=
"menu_lot_form"
/>
<record
model=
"ir.action.act_window"
id=
"act_lot_form_product_relate"
>
<field
name=
"name"
>
Lots
</field>
<field
name=
"res_model"
>
stock.lot
</field>
<field
name=
"domain"
eval=
"[If(Eval('active_ids', []) == [Eval('active_id')], (If(Eval('active_model') == 'product.template', 'product.template', 'product'), '=', Eval('active_id', -1)), (If(Eval('active_model') == 'product.template', 'product.template', 'product'), 'in', Eval('active_ids', [])))]"
pyson=
"1"
/>
</record>
<record
model=
"ir.action.act_window.view"
id=
"act_lot_form_product_relate_view1"
>
<field
name=
"sequence"
eval=
"10"
/>
<field
name=
"view"
ref=
"lot_view_tree"
/>
<field
name=
"act_window"
ref=
"act_lot_form_product_relate"
/>
</record>
<record
model=
"ir.action.act_window.view"
id=
"act_lot_form_product_relate_view2"
>
<field
name=
"sequence"
eval=
"20"
/>
<field
name=
"view"
ref=
"lot_view_form"
/>
<field
name=
"act_window"
ref=
"act_lot_form_product_relate"
/>
</record>
<record
model=
"ir.action.keyword"
id=
"act_lot_form_product_relate_keyword1"
>
<field
name=
"keyword"
>
form_relate
</field>
<field
name=
"model"
>
product.product,-1
</field>
<field
name=
"action"
ref=
"act_lot_form_product_relate"
/>
</record>
<record
model=
"ir.action.keyword"
id=
"act_lot_form_product_relate_keyword2"
>
<field
name=
"keyword"
>
form_relate
</field>
<field
name=
"model"
>
product.template,-1
</field>
<field
name=
"action"
ref=
"act_lot_form_product_relate"
/>
</record>
<record
model=
"ir.model.access"
id=
"access_lot"
>
<field
name=
"model"
search=
"[('model', '=', 'stock.lot')]"
/>
<field
name=
"perm_read"
eval=
"False"
/>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment