Skip to content

Commit

Permalink
[16.0][ADD] mrp_bom_line_tree_view_limit: Change tree view limit to 1…
Browse files Browse the repository at this point in the history
…00 in bom line, move and movelines tree views.
  • Loading branch information
Berezi committed Nov 8, 2024
1 parent 5c2027e commit 6d27412
Show file tree
Hide file tree
Showing 6 changed files with 94 additions and 0 deletions.
29 changes: 29 additions & 0 deletions mrp_bom_line_tree_view_limit/README.rst
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.
20 changes: 20 additions & 0 deletions mrp_bom_line_tree_view_limit/__manifest__.py
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,
}
12 changes: 12 additions & 0 deletions mrp_bom_line_tree_view_limit/views/mrp_bom_view.xml
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 mrp_bom_line_tree_view_limit/views/mrp_production_view.xml
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>
15 changes: 15 additions & 0 deletions mrp_bom_line_tree_view_limit/views/mrp_workorder_view.xml
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>

0 comments on commit 6d27412

Please sign in to comment.