-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[16.0][ADD] mrp_bom_line_tree_view_limit: Change tree view limit to 1…
…00 in bom line, move and movelines tree views.
- Loading branch information
Berezi
committed
Nov 8, 2024
1 parent
5c2027e
commit 6d27412
Showing
6 changed files
with
94 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg | ||
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
:alt: License: AGPL-3 | ||
|
||
============================ | ||
Mrp BoM Line Tree View Limit | ||
============================ | ||
|
||
* Change tree view limit to 100 in bom line, move and movelines tree views. | ||
|
||
|
||
Bug Tracker | ||
=========== | ||
|
||
Bugs are tracked on `GitHub Issues | ||
<https://github.com/avanzosc/mrp-addons/issues>`_. In case of trouble, | ||
please check there if your issue has already been reported. If you spotted | ||
it first, help us smash it by providing detailed and welcomed feedback. | ||
|
||
Do not contact contributors directly about support or help with technical issues. | ||
|
||
Credits | ||
======= | ||
|
||
Contributors | ||
------------ | ||
|
||
* Ana Juaristi <[email protected]> | ||
* Berezi Amubieta <[email protected]> |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Copyright 2024 Berezi Aamubieta - AvanzOSC | ||
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html | ||
|
||
{ | ||
"name": "Mrp BoM Line Tree View Limit", | ||
"version": "16.0.1.0.0", | ||
"category": "Manufacturing/Manufacturing", | ||
"author": "Avanzosc", | ||
"license": "AGPL-3", | ||
"website": "https://github.com/avanzosc/mrp-addons", | ||
"depends": [ | ||
"mrp", | ||
], | ||
"data": [ | ||
"views/mrp_bom_view.xml", | ||
"views/mrp_production_view.xml", | ||
"views/mrp_workorder_view.xml", | ||
], | ||
"installable": True, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="mrp_bom_form_view" model="ir.ui.view"> | ||
<field name="model">mrp.bom</field> | ||
<field name="inherit_id" ref="mrp.mrp_bom_form_view" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='bom_line_ids']/tree" position="attributes"> | ||
<attribute name="limit">100</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |
18 changes: 18 additions & 0 deletions
18
mrp_bom_line_tree_view_limit/views/mrp_production_view.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="mrp_production_form_view" model="ir.ui.view"> | ||
<field name="model">mrp.production</field> | ||
<field name="inherit_id" ref="mrp.mrp_production_form_view" /> | ||
<field name="arch" type="xml"> | ||
<xpath expr="//field[@name='move_raw_ids']/tree" position="attributes"> | ||
<attribute name="limit">100</attribute> | ||
</xpath> | ||
<xpath | ||
expr="//field[@name='move_byproduct_ids']/tree" | ||
position="attributes" | ||
> | ||
<attribute name="limit">100</attribute> | ||
</xpath> | ||
</field> | ||
</record> | ||
</odoo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<odoo> | ||
<record id="mrp_production_workorder_tree_editable_view" model="ir.ui.view"> | ||
<field name="model">mrp.workorder</field> | ||
<field | ||
name="inherit_id" | ||
ref="mrp.mrp_production_workorder_tree_editable_view" | ||
/> | ||
<field name="arch" type="xml"> | ||
<tree position="attributes"> | ||
<attribute name="limit">100</attribute> | ||
</tree> | ||
</field> | ||
</record> | ||
</odoo> |