← Back to team overview

openerp-community-reviewer team mailing list archive

[Merge] lp:~akretion-team/openerp-manufacturing/70-add-mrp-product-serial into lp:openerp-manufacturing

 

Alexis de Lattre has proposed merging lp:~akretion-team/openerp-manufacturing/70-add-mrp-product-serial into lp:openerp-manufacturing.

Requested reviews:
  Manufacture Core Editors (manufacture-core-editors)

For more details, see:
https://code.launchpad.net/~akretion-team/openerp-manufacturing/70-add-mrp-product-serial/+merge/211689

This MP adds the module mrp_product_serial. This module depends on mrp and product_serial (from OCA project stock-logistics-flows). It adds the "Spread Serial Numbers" wizard on Manufacturing Orders.

This module require the last version of the product_serial module, which is under review here : https://code.launchpad.net/~akretion-team/stock-logistic-flows/70-product_serial-plus-plus/+merge/195144
-- 
https://code.launchpad.net/~akretion-team/openerp-manufacturing/70-add-mrp-product-serial/+merge/211689
Your team OpenERP Community Reviewer/Maintainer is subscribed to branch lp:openerp-manufacturing.
=== added directory 'mrp_product_serial'
=== added file 'mrp_product_serial/__init__.py'
--- mrp_product_serial/__init__.py	1970-01-01 00:00:00 +0000
+++ mrp_product_serial/__init__.py	2014-03-19 10:09:00 +0000
@@ -0,0 +1,21 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+#    MRP Product Serial module for OpenERP
+#    Copyright (C) 2014 Akretion (http://www.akretion.com)
+#    @author Alexis de Lattre <alexis.delattre@xxxxxxxxxxxx>
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################

=== added file 'mrp_product_serial/__openerp__.py'
--- mrp_product_serial/__openerp__.py	1970-01-01 00:00:00 +0000
+++ mrp_product_serial/__openerp__.py	2014-03-19 10:09:00 +0000
@@ -0,0 +1,43 @@
+# -*- encoding: utf-8 -*-
+##############################################################################
+#
+#    MRP Product Serial module for OpenERP
+#    Copyright (C) 2014 Akretion (http://www.akretion.com)
+#    @author Alexis de Lattre <alexis.delattre@xxxxxxxxxxxx>
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+#
+##############################################################################
+
+
+{
+    'name': 'MRP Product Serial',
+    'version': '0.1',
+    'category': 'Manufacturing',
+    'license': 'AGPL-3',
+    'summary': 'Easier management of serial numbers in MRP',
+    'description': """
+MRP Product Serial
+==================
+
+Adds the *Spread Serial Numbers* wizard on Manufacturing Orders.
+
+Please contact Alexis de Lattre from Akretion <alexis.delattre@xxxxxxxxxxxx> for any help or question about this module.
+    """,
+    'author': 'Akretion',
+    'website': 'http://www.akretion.com',
+    'depends': ['mrp', 'product_serial'],
+    'data': ['mrp_view.xml'],
+    'active': False,
+}

=== added directory 'mrp_product_serial/i18n'
=== added file 'mrp_product_serial/i18n/fr.po'
--- mrp_product_serial/i18n/fr.po	1970-01-01 00:00:00 +0000
+++ mrp_product_serial/i18n/fr.po	2014-03-19 10:09:00 +0000
@@ -0,0 +1,21 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-02-10 16:38+0000\n"
+"PO-Revision-Date: 2014-02-10 16:38+0000\n"
+"Last-Translator: Alexis de Lattre <alexis.delattre@xxxxxxxxxxxx>\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: product_serial_mrp
+#: view:mrp.production:0
+msgid "Spread Serial Numbers"
+msgstr "Propage les numéros de série"
+

=== added file 'mrp_product_serial/i18n/product_serial_mrp.pot'
--- mrp_product_serial/i18n/product_serial_mrp.pot	1970-01-01 00:00:00 +0000
+++ mrp_product_serial/i18n/product_serial_mrp.pot	2014-03-19 10:09:00 +0000
@@ -0,0 +1,21 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2014-02-10 16:37+0000\n"
+"PO-Revision-Date: 2014-02-10 16:37+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: product_serial_mrp
+#: view:mrp.production:0
+msgid "Spread Serial Numbers"
+msgstr ""
+

=== added file 'mrp_product_serial/mrp_view.xml'
--- mrp_product_serial/mrp_view.xml	1970-01-01 00:00:00 +0000
+++ mrp_product_serial/mrp_view.xml	2014-03-19 10:09:00 +0000
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="utf-8"?>
+
+<!--
+    Copyright (C) 2014 Akretion (http://www.akretion.com/)
+    @author Alexis de Lattre <alexis.delattre@xxxxxxxxxxxx>
+    The licence is in the file __openerp__.py
+-->
+
+<openerp>
+<data>
+
+
+<record id="mrp_production_form_view" model="ir.ui.view">
+    <field name="name">product.serial.mrp.production.form</field>
+    <field name="model">mrp.production</field>
+    <field name="inherit_id" ref="mrp.mrp_production_form_view" />
+    <field name="arch" type="xml">
+        <xpath expr="//group[@string='Consumed Products']/.." position="before">
+            <button type="action"
+                name="%(product_serial.action_prodlot_selection)d"
+                string="Spread Serial Numbers"
+                states="draft,confirmed,ready,in_production"
+                context="{'stock_move_field': 'move_lines'}"/>
+        </xpath>
+        <xpath expr="//group[@string='Products to Produce']/.." position="before">
+            <button type="action"
+                name="%(product_serial.action_prodlot_selection)d"
+                string="Spread Serial Numbers"
+                states="draft,confirmed,ready,in_production"
+                context="{'stock_move_field': 'move_created_ids', 'default_create_prodlots': True}"/>
+        </xpath>
+    </field>
+</record>
+
+
+</data>
+</openerp>


Follow ups