Skip to content

Commit

Permalink
[14.0][ADD] mrp_sale_info_usability: Make optional show the fields cr…
Browse files Browse the repository at this point in the history
…eated by mrp_sale_info in production orders.
  • Loading branch information
Tu Nombre authored and Berezi committed Oct 22, 2024
1 parent e143099 commit 1139ce0
Show file tree
Hide file tree
Showing 7 changed files with 98 additions and 0 deletions.
28 changes: 28 additions & 0 deletions mrp_sale_info_usability/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
.. 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 Sale Info Usability
=======================

Make optional show the fields created by mrp_sale_info in production orders.

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
------------

* Berezi Amubieta <[email protected]>
* Ana Juaristi <[email protected]>
Empty file.
18 changes: 18 additions & 0 deletions mrp_sale_info_usability/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2024 Berezi Amubieta - AvanzOSC
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
{
"name": "MRP Sale Info Usability",
"version": "14.0.1.0.0",
"author": "Avanzosc",
"category": "Manufacturing/Manufacturing",
"website": "https://github.com/avanzosc/mrp-addons",
"depends": [
"mrp_sale_info",
],
"data": [
"views/mrp_production_view.xml",
"views/mrp_workorder_view.xml",
],
"license": "AGPL-3",
"installable": True,
}
21 changes: 21 additions & 0 deletions mrp_sale_info_usability/views/mrp_production_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="mrp_production_tree_view" model="ir.ui.view">
<field name="model">mrp.production</field>
<field name="inherit_id" ref="mrp_sale_info.mrp_production_tree_view" />
<field name="arch" type="xml">
<field name="sale_id" position="attributes">
<attribute name="optional">show</attribute>
</field>
<field name="partner_id" position="attributes">
<attribute name="optional">show</attribute>
</field>
<field name="commitment_date" position="attributes">
<attribute name="optional">show</attribute>
</field>
<field name="client_order_ref" position="attributes">
<attribute name="optional">show</attribute>
</field>
</field>
</record>
</odoo>
24 changes: 24 additions & 0 deletions mrp_sale_info_usability/views/mrp_workorder_view.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<record id="mrp_production_workorder_tree_view_inherit" model="ir.ui.view">
<field name="model">mrp.workorder</field>
<field
name="inherit_id"
ref="mrp_sale_info.mrp_production_workorder_tree_view_inherit"
/>
<field name="arch" type="xml">
<field name="sale_id" position="attributes">
<attribute name="optional">show</attribute>
</field>
<field name="partner_id" position="attributes">
<attribute name="optional">show</attribute>
</field>
<field name="commitment_date" position="attributes">
<attribute name="optional">show</attribute>
</field>
<field name="client_order_ref" position="attributes">
<attribute name="optional">show</attribute>
</field>
</field>
</record>
</odoo>
6 changes: 6 additions & 0 deletions setup/mrp_sale_info_usability/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)

0 comments on commit 1139ce0

Please sign in to comment.