Skip to content

Commit

Permalink
[16.0][ADD] mrp_stock_quant_manual_assign: On the "Components" page o…
Browse files Browse the repository at this point in the history
…f production orders, show the "Manual Quants" button.
  • Loading branch information
alfredoavanzosc authored and anajuaristi committed Sep 20, 2024
1 parent da3b180 commit 96393bd
Show file tree
Hide file tree
Showing 11 changed files with 184 additions and 0 deletions.
33 changes: 33 additions & 0 deletions mrp_stock_quant_manual_assign/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.. image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: https://www.gnu.org/licenses/agpl
:alt: License: AGPL-3

=============================
Mrp stock quant manual assign
=============================

* On the "Components" page of production orders, show the "Manual Quants"
button.


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]>
* Alfredo de la Fuente <[email protected]>

Do not contact contributors directly about support or help with technical issues.
Empty file.
16 changes: 16 additions & 0 deletions mrp_stock_quant_manual_assign/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2024 Alfredo de la Fuente - AvanzOSC
# License AGPL-3 - See http://www.gnu.org/licenses/agpl-3.0.html
{
"name": "Mrp Stock Quant Manual Assign",
"version": "16.0.1.0.0",
"category": "Manufacturing/Manufacturing",
"website": "https://github.com/avanzosc/mrp-addons",
"author": "AvanzOSC,",
"license": "AGPL-3",
"depends": ["mrp", "stock_quant_manual_assign"],
"data": [
"views/mrp_production_views.xml",
],
"installable": True,
"auto_install": True,
}
21 changes: 21 additions & 0 deletions mrp_stock_quant_manual_assign/i18n/ca_ES.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_stock_quant_manual_assign
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-19 09:41+0000\n"
"PO-Revision-Date: 2024-08-19 09:41+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: mrp_stock_quant_manual_assign
#: model_terms:ir.ui.view,arch_db:mrp_stock_quant_manual_assign.mrp_production_form_view
msgid "Manual Quants"
msgstr ""
21 changes: 21 additions & 0 deletions mrp_stock_quant_manual_assign/i18n/en_GB.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_stock_quant_manual_assign
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-19 09:41+0000\n"
"PO-Revision-Date: 2024-08-19 09:41+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: mrp_stock_quant_manual_assign
#: model_terms:ir.ui.view,arch_db:mrp_stock_quant_manual_assign.mrp_production_form_view
msgid "Manual Quants"
msgstr ""
21 changes: 21 additions & 0 deletions mrp_stock_quant_manual_assign/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_stock_quant_manual_assign
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-19 09:42+0000\n"
"PO-Revision-Date: 2024-08-19 09:42+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: mrp_stock_quant_manual_assign
#: model_terms:ir.ui.view,arch_db:mrp_stock_quant_manual_assign.mrp_production_form_view
msgid "Manual Quants"
msgstr "Quants manuales"
21 changes: 21 additions & 0 deletions mrp_stock_quant_manual_assign/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_stock_quant_manual_assign
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-19 09:41+0000\n"
"PO-Revision-Date: 2024-08-19 09:41+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: mrp_stock_quant_manual_assign
#: model_terms:ir.ui.view,arch_db:mrp_stock_quant_manual_assign.mrp_production_form_view
msgid "Manual Quants"
msgstr ""
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * mrp_stock_quant_manual_assign
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2024-08-19 09:40+0000\n"
"PO-Revision-Date: 2024-08-19 09:40+0000\n"
"Last-Translator: \n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: mrp_stock_quant_manual_assign
#: model_terms:ir.ui.view,arch_db:mrp_stock_quant_manual_assign.mrp_production_form_view
msgid "Manual Quants"
msgstr ""
23 changes: 23 additions & 0 deletions mrp_stock_quant_manual_assign/views/mrp_production_views.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?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/button[@name='action_show_details']"
position="after"
>
<field name="state" invisible="1" />
<button
name="%(stock_quant_manual_assign.assign_manual_quants_action)d"
type="action"
icon="fa-tags"
title="Manual Quants"
options='{"warn": true}'
attrs="{'invisible':[('state','not in',('confirmed','assigned','partially_available'))]}"
/>
</xpath>
</field>
</record>
</odoo>
6 changes: 6 additions & 0 deletions setup/mrp_stock_quant_manual_assign/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 96393bd

Please sign in to comment.