Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[14.0][ADD] mrp_sale_info_usability: Make optional show the fields cr… #449

Merged
merged 1 commit into from
Oct 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
)
Loading