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

Proposed by Alexis de Lattre
Status: Needs review
Proposed branch: lp:~akretion-team/openerp-manufacturing/70-add-mrp-product-serial
Merge into: lp:openerp-manufacturing
Diff against target: 169 lines (+143/-0)
5 files modified
mrp_product_serial/__init__.py (+21/-0)
mrp_product_serial/__openerp__.py (+43/-0)
mrp_product_serial/i18n/fr.po (+21/-0)
mrp_product_serial/i18n/product_serial_mrp.pot (+21/-0)
mrp_product_serial/mrp_view.xml (+37/-0)
To merge this branch: bzr merge lp:~akretion-team/openerp-manufacturing/70-add-mrp-product-serial
Reviewer Review Type Date Requested Status
Joël Grand-Guillaume @ camptocamp code review, no tests Approve
Maxime Chambreuil (http://www.savoirfairelinux.com) Approve
Alexandre Fayolle - camptocamp lgtm Approve
Review via email: mp+211689@code.launchpad.net

Description of the change

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

To post a comment you must log in.
Revision history for this message
Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c) wrote :

LGTM. I've also reviewed the other MP and it needs fixing

review: Approve (lgtm)
Revision history for this message
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) :
review: Approve
Revision history for this message
Joël Grand-Guillaume @ camptocamp (jgrandguillaume-c2c) wrote :

LGTM, this other MP is now ok

review: Approve (code review, no tests)

Unmerged revisions

7. By Alexis de Lattre

Add module mrp_product_serial.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== 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:31:40 +0000
@@ -0,0 +1,21 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# MRP Product Serial module for OpenERP
5# Copyright (C) 2014 Akretion (http://www.akretion.com)
6# @author Alexis de Lattre <alexis.delattre@akretion.com>
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
022
=== 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:31:40 +0000
@@ -0,0 +1,43 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3#
4# MRP Product Serial module for OpenERP
5# Copyright (C) 2014 Akretion (http://www.akretion.com)
6# @author Alexis de Lattre <alexis.delattre@akretion.com>
7#
8# This program is free software: you can redistribute it and/or modify
9# it under the terms of the GNU Affero General Public License as
10# published by the Free Software Foundation, either version 3 of the
11# License, or (at your option) any later version.
12#
13# This program is distributed in the hope that it will be useful,
14# but WITHOUT ANY WARRANTY; without even the implied warranty of
15# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16# GNU Affero General Public License for more details.
17#
18# You should have received a copy of the GNU Affero General Public License
19# along with this program. If not, see <http://www.gnu.org/licenses/>.
20#
21##############################################################################
22
23
24{
25 'name': 'MRP Product Serial',
26 'version': '0.1',
27 'category': 'Manufacturing',
28 'license': 'AGPL-3',
29 'summary': 'Easier management of serial numbers in MRP',
30 'description': """
31MRP Product Serial
32==================
33
34Adds the *Spread Serial Numbers* wizard on Manufacturing Orders.
35
36Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for any help or question about this module.
37 """,
38 'author': 'Akretion',
39 'website': 'http://www.akretion.com',
40 'depends': ['mrp', 'product_serial'],
41 'data': ['mrp_view.xml'],
42 'active': False,
43}
044
=== 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:31:40 +0000
@@ -0,0 +1,21 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3#
4msgid ""
5msgstr ""
6"Project-Id-Version: OpenERP Server 7.0\n"
7"Report-Msgid-Bugs-To: \n"
8"POT-Creation-Date: 2014-02-10 16:38+0000\n"
9"PO-Revision-Date: 2014-02-10 16:38+0000\n"
10"Last-Translator: Alexis de Lattre <alexis.delattre@akretion.com>\n"
11"Language-Team: \n"
12"MIME-Version: 1.0\n"
13"Content-Type: text/plain; charset=UTF-8\n"
14"Content-Transfer-Encoding: \n"
15"Plural-Forms: \n"
16
17#. module: product_serial_mrp
18#: view:mrp.production:0
19msgid "Spread Serial Numbers"
20msgstr "Propage les numéros de série"
21
022
=== 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:31:40 +0000
@@ -0,0 +1,21 @@
1# Translation of OpenERP Server.
2# This file contains the translation of the following modules:
3#
4msgid ""
5msgstr ""
6"Project-Id-Version: OpenERP Server 7.0\n"
7"Report-Msgid-Bugs-To: \n"
8"POT-Creation-Date: 2014-02-10 16:37+0000\n"
9"PO-Revision-Date: 2014-02-10 16:37+0000\n"
10"Last-Translator: <>\n"
11"Language-Team: \n"
12"MIME-Version: 1.0\n"
13"Content-Type: text/plain; charset=UTF-8\n"
14"Content-Transfer-Encoding: \n"
15"Plural-Forms: \n"
16
17#. module: product_serial_mrp
18#: view:mrp.production:0
19msgid "Spread Serial Numbers"
20msgstr ""
21
022
=== 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:31:40 +0000
@@ -0,0 +1,37 @@
1<?xml version="1.0" encoding="utf-8"?>
2
3<!--
4 Copyright (C) 2014 Akretion (http://www.akretion.com/)
5 @author Alexis de Lattre <alexis.delattre@akretion.com>
6 The licence is in the file __openerp__.py
7-->
8
9<openerp>
10<data>
11
12
13<record id="mrp_production_form_view" model="ir.ui.view">
14 <field name="name">product.serial.mrp.production.form</field>
15 <field name="model">mrp.production</field>
16 <field name="inherit_id" ref="mrp.mrp_production_form_view" />
17 <field name="arch" type="xml">
18 <xpath expr="//group[@string='Consumed Products']/.." position="before">
19 <button type="action"
20 name="%(product_serial.action_prodlot_selection)d"
21 string="Spread Serial Numbers"
22 states="draft,confirmed,ready,in_production"
23 context="{'stock_move_field': 'move_lines'}"/>
24 </xpath>
25 <xpath expr="//group[@string='Products to Produce']/.." position="before">
26 <button type="action"
27 name="%(product_serial.action_prodlot_selection)d"
28 string="Spread Serial Numbers"
29 states="draft,confirmed,ready,in_production"
30 context="{'stock_move_field': 'move_created_ids', 'default_create_prodlots': True}"/>
31 </xpath>
32 </field>
33</record>
34
35
36</data>
37</openerp>

Subscribers

People subscribed via source and target branches