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
1=== added directory 'mrp_product_serial'
2=== added file 'mrp_product_serial/__init__.py'
3--- mrp_product_serial/__init__.py 1970-01-01 00:00:00 +0000
4+++ mrp_product_serial/__init__.py 2014-03-19 10:31:40 +0000
5@@ -0,0 +1,21 @@
6+# -*- encoding: utf-8 -*-
7+##############################################################################
8+#
9+# MRP Product Serial module for OpenERP
10+# Copyright (C) 2014 Akretion (http://www.akretion.com)
11+# @author Alexis de Lattre <alexis.delattre@akretion.com>
12+#
13+# This program is free software: you can redistribute it and/or modify
14+# it under the terms of the GNU Affero General Public License as
15+# published by the Free Software Foundation, either version 3 of the
16+# License, or (at your option) any later version.
17+#
18+# This program is distributed in the hope that it will be useful,
19+# but WITHOUT ANY WARRANTY; without even the implied warranty of
20+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21+# GNU Affero General Public License for more details.
22+#
23+# You should have received a copy of the GNU Affero General Public License
24+# along with this program. If not, see <http://www.gnu.org/licenses/>.
25+#
26+##############################################################################
27
28=== added file 'mrp_product_serial/__openerp__.py'
29--- mrp_product_serial/__openerp__.py 1970-01-01 00:00:00 +0000
30+++ mrp_product_serial/__openerp__.py 2014-03-19 10:31:40 +0000
31@@ -0,0 +1,43 @@
32+# -*- encoding: utf-8 -*-
33+##############################################################################
34+#
35+# MRP Product Serial module for OpenERP
36+# Copyright (C) 2014 Akretion (http://www.akretion.com)
37+# @author Alexis de Lattre <alexis.delattre@akretion.com>
38+#
39+# This program is free software: you can redistribute it and/or modify
40+# it under the terms of the GNU Affero General Public License as
41+# published by the Free Software Foundation, either version 3 of the
42+# License, or (at your option) any later version.
43+#
44+# This program is distributed in the hope that it will be useful,
45+# but WITHOUT ANY WARRANTY; without even the implied warranty of
46+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
47+# GNU Affero General Public License for more details.
48+#
49+# You should have received a copy of the GNU Affero General Public License
50+# along with this program. If not, see <http://www.gnu.org/licenses/>.
51+#
52+##############################################################################
53+
54+
55+{
56+ 'name': 'MRP Product Serial',
57+ 'version': '0.1',
58+ 'category': 'Manufacturing',
59+ 'license': 'AGPL-3',
60+ 'summary': 'Easier management of serial numbers in MRP',
61+ 'description': """
62+MRP Product Serial
63+==================
64+
65+Adds the *Spread Serial Numbers* wizard on Manufacturing Orders.
66+
67+Please contact Alexis de Lattre from Akretion <alexis.delattre@akretion.com> for any help or question about this module.
68+ """,
69+ 'author': 'Akretion',
70+ 'website': 'http://www.akretion.com',
71+ 'depends': ['mrp', 'product_serial'],
72+ 'data': ['mrp_view.xml'],
73+ 'active': False,
74+}
75
76=== added directory 'mrp_product_serial/i18n'
77=== added file 'mrp_product_serial/i18n/fr.po'
78--- mrp_product_serial/i18n/fr.po 1970-01-01 00:00:00 +0000
79+++ mrp_product_serial/i18n/fr.po 2014-03-19 10:31:40 +0000
80@@ -0,0 +1,21 @@
81+# Translation of OpenERP Server.
82+# This file contains the translation of the following modules:
83+#
84+msgid ""
85+msgstr ""
86+"Project-Id-Version: OpenERP Server 7.0\n"
87+"Report-Msgid-Bugs-To: \n"
88+"POT-Creation-Date: 2014-02-10 16:38+0000\n"
89+"PO-Revision-Date: 2014-02-10 16:38+0000\n"
90+"Last-Translator: Alexis de Lattre <alexis.delattre@akretion.com>\n"
91+"Language-Team: \n"
92+"MIME-Version: 1.0\n"
93+"Content-Type: text/plain; charset=UTF-8\n"
94+"Content-Transfer-Encoding: \n"
95+"Plural-Forms: \n"
96+
97+#. module: product_serial_mrp
98+#: view:mrp.production:0
99+msgid "Spread Serial Numbers"
100+msgstr "Propage les numéros de série"
101+
102
103=== added file 'mrp_product_serial/i18n/product_serial_mrp.pot'
104--- mrp_product_serial/i18n/product_serial_mrp.pot 1970-01-01 00:00:00 +0000
105+++ mrp_product_serial/i18n/product_serial_mrp.pot 2014-03-19 10:31:40 +0000
106@@ -0,0 +1,21 @@
107+# Translation of OpenERP Server.
108+# This file contains the translation of the following modules:
109+#
110+msgid ""
111+msgstr ""
112+"Project-Id-Version: OpenERP Server 7.0\n"
113+"Report-Msgid-Bugs-To: \n"
114+"POT-Creation-Date: 2014-02-10 16:37+0000\n"
115+"PO-Revision-Date: 2014-02-10 16:37+0000\n"
116+"Last-Translator: <>\n"
117+"Language-Team: \n"
118+"MIME-Version: 1.0\n"
119+"Content-Type: text/plain; charset=UTF-8\n"
120+"Content-Transfer-Encoding: \n"
121+"Plural-Forms: \n"
122+
123+#. module: product_serial_mrp
124+#: view:mrp.production:0
125+msgid "Spread Serial Numbers"
126+msgstr ""
127+
128
129=== added file 'mrp_product_serial/mrp_view.xml'
130--- mrp_product_serial/mrp_view.xml 1970-01-01 00:00:00 +0000
131+++ mrp_product_serial/mrp_view.xml 2014-03-19 10:31:40 +0000
132@@ -0,0 +1,37 @@
133+<?xml version="1.0" encoding="utf-8"?>
134+
135+<!--
136+ Copyright (C) 2014 Akretion (http://www.akretion.com/)
137+ @author Alexis de Lattre <alexis.delattre@akretion.com>
138+ The licence is in the file __openerp__.py
139+-->
140+
141+<openerp>
142+<data>
143+
144+
145+<record id="mrp_production_form_view" model="ir.ui.view">
146+ <field name="name">product.serial.mrp.production.form</field>
147+ <field name="model">mrp.production</field>
148+ <field name="inherit_id" ref="mrp.mrp_production_form_view" />
149+ <field name="arch" type="xml">
150+ <xpath expr="//group[@string='Consumed Products']/.." position="before">
151+ <button type="action"
152+ name="%(product_serial.action_prodlot_selection)d"
153+ string="Spread Serial Numbers"
154+ states="draft,confirmed,ready,in_production"
155+ context="{'stock_move_field': 'move_lines'}"/>
156+ </xpath>
157+ <xpath expr="//group[@string='Products to Produce']/.." position="before">
158+ <button type="action"
159+ name="%(product_serial.action_prodlot_selection)d"
160+ string="Spread Serial Numbers"
161+ states="draft,confirmed,ready,in_production"
162+ context="{'stock_move_field': 'move_created_ids', 'default_create_prodlots': True}"/>
163+ </xpath>
164+ </field>
165+</record>
166+
167+
168+</data>
169+</openerp>

Subscribers

People subscribed via source and target branches