Merge lp:~vauxoo/addons-vauxoo/7.0_addons-vauxoo_sale_order_line_seq-dev_luis into lp:addons-vauxoo/7.0

Proposed by Luis Torres - http://www.vauxoo.com
Status: Merged
Merged at revision: 1089
Proposed branch: lp:~vauxoo/addons-vauxoo/7.0_addons-vauxoo_sale_order_line_seq-dev_luis
Merge into: lp:addons-vauxoo/7.0
Diff against target: 232 lines (+189/-0)
8 files modified
sale_order_line_seq/__init__.py (+26/-0)
sale_order_line_seq/__openerp__.py (+49/-0)
sale_order_line_seq/i18n/es.po (+37/-0)
sale_order_line_seq/i18n/es_MX.po (+1/-0)
sale_order_line_seq/i18n/es_VE.po (+1/-0)
sale_order_line_seq/model/__init__.py (+26/-0)
sale_order_line_seq/model/sale_order.py (+34/-0)
sale_order_line_seq/view/sale_order_line_view.xml (+15/-0)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/7.0_addons-vauxoo_sale_order_line_seq-dev_luis
Reviewer Review Type Date Requested Status
Moisés López - http://www.vauxoo.com Approve
Review via email: mp+227382@code.launchpad.net

Description of the change

Se agrego un campo related para mostrar el número de la secuencia en las lineas de la orden de venta

To post a comment you must log in.
Revision history for this message
Moisés López - http://www.vauxoo.com (moylop260) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'sale_order_line_seq'
2=== added file 'sale_order_line_seq/__init__.py'
3--- sale_order_line_seq/__init__.py 1970-01-01 00:00:00 +0000
4+++ sale_order_line_seq/__init__.py 2014-07-18 18:45:50 +0000
5@@ -0,0 +1,26 @@
6+# -*- encoding: utf-8 -*-
7+#
8+# Module Writen to OpenERP, Open Source Management Solution
9+#
10+# Copyright (c) 2014 Vauxoo - http://www.vauxoo.com/
11+# All Rights Reserved.
12+# info Vauxoo (info@vauxoo.com)
13+#
14+# Coded by: Luis Torres (luis_t@vauxoo.com)
15+#
16+#
17+# This program is free software: you can redistribute it and/or modify
18+# it under the terms of the GNU Affero General Public License as
19+# published by the Free Software Foundation, either version 3 of the
20+# License, or (at your option) any later version.
21+#
22+# This program is distributed in the hope that it will be useful,
23+# but WITHOUT ANY WARRANTY; without even the implied warranty of
24+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
25+# GNU Affero General Public License for more details.
26+#
27+# You should have received a copy of the GNU Affero General Public License
28+# along with this program. If not, see <http://www.gnu.org/licenses/>.
29+#
30+#
31+import model
32
33=== added file 'sale_order_line_seq/__openerp__.py'
34--- sale_order_line_seq/__openerp__.py 1970-01-01 00:00:00 +0000
35+++ sale_order_line_seq/__openerp__.py 2014-07-18 18:45:50 +0000
36@@ -0,0 +1,49 @@
37+# -*- encoding: utf-8 -*-
38+#
39+# Module Writen to OpenERP, Open Source Management Solution
40+#
41+# Copyright (c) 2014 Vauxoo - http://www.vauxoo.com/
42+# All Rights Reserved.
43+# info Vauxoo (info@vauxoo.com)
44+#
45+# Coded by: Luis Torres (luis_t@vauxoo.com)
46+#
47+#
48+# This program is free software: you can redistribute it and/or modify
49+# it under the terms of the GNU Affero General Public License as
50+# published by the Free Software Foundation, either version 3 of the
51+# License, or (at your option) any later version.
52+#
53+# This program is distributed in the hope that it will be useful,
54+# but WITHOUT ANY WARRANTY; without even the implied warranty of
55+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
56+# GNU Affero General Public License for more details.
57+#
58+# You should have received a copy of the GNU Affero General Public License
59+# along with this program. If not, see <http://www.gnu.org/licenses/>.
60+#
61+#
62+
63+{
64+ "name": "Sale order line sequence",
65+ "version": "1.0",
66+ "author": "Vauxoo",
67+ "category": "Localization/Mexico",
68+ "description" : """
69+ This module add the sequence in the sale order lines
70+
71+ Note: This field is temporary
72+ """,
73+ "website": "http://www.vauxoo.com/",
74+ "license": "AGPL-3",
75+ "depends": [
76+ "sale",
77+ ],
78+ "demo": [],
79+ "test": [],
80+ "data": [
81+ "view/sale_order_line_view.xml",
82+ ],
83+ "installable": True,
84+ "active": False,
85+}
86
87=== added directory 'sale_order_line_seq/i18n'
88=== added file 'sale_order_line_seq/i18n/es.po'
89--- sale_order_line_seq/i18n/es.po 1970-01-01 00:00:00 +0000
90+++ sale_order_line_seq/i18n/es.po 2014-07-18 18:45:50 +0000
91@@ -0,0 +1,37 @@
92+# Translation of OpenERP Server.
93+# This file contains the translation of the following modules:
94+# * sale_order_line_seq
95+#
96+msgid ""
97+msgstr ""
98+"Project-Id-Version: OpenERP Server 7.0\n"
99+"Report-Msgid-Bugs-To: \n"
100+"POT-Creation-Date: 2014-07-18 17:53+0000\n"
101+"PO-Revision-Date: 2014-07-18 17:53+0000\n"
102+"Last-Translator: <>\n"
103+"Language-Team: \n"
104+"MIME-Version: 1.0\n"
105+"Content-Type: text/plain; charset=UTF-8\n"
106+"Content-Transfer-Encoding: \n"
107+"Plural-Forms: \n"
108+
109+#. module: sale_order_line_seq
110+#: view:sale.order:0
111+msgid "Seq"
112+msgstr "Sec."
113+
114+#. module: sale_order_line_seq
115+#: help:sale.order.line,sequence2:0
116+msgid "Field to show the number of sequence in line"
117+msgstr "Campo para mostrar el número de secuencia de la linea"
118+
119+#. module: sale_order_line_seq
120+#: model:ir.model,name:sale_order_line_seq.model_sale_order_line
121+msgid "Sales Order Line"
122+msgstr "Línea pedido de venta"
123+
124+#. module: sale_order_line_seq
125+#: field:sale.order.line,sequence2:0
126+msgid "Sequence"
127+msgstr "Secuencia"
128+
129
130=== added file 'sale_order_line_seq/i18n/es_MX.po'
131--- sale_order_line_seq/i18n/es_MX.po 1970-01-01 00:00:00 +0000
132+++ sale_order_line_seq/i18n/es_MX.po 2014-07-18 18:45:50 +0000
133@@ -0,0 +1,1 @@
134+
135
136=== added file 'sale_order_line_seq/i18n/es_VE.po'
137--- sale_order_line_seq/i18n/es_VE.po 1970-01-01 00:00:00 +0000
138+++ sale_order_line_seq/i18n/es_VE.po 2014-07-18 18:45:50 +0000
139@@ -0,0 +1,1 @@
140+
141
142=== added directory 'sale_order_line_seq/model'
143=== added file 'sale_order_line_seq/model/__init__.py'
144--- sale_order_line_seq/model/__init__.py 1970-01-01 00:00:00 +0000
145+++ sale_order_line_seq/model/__init__.py 2014-07-18 18:45:50 +0000
146@@ -0,0 +1,26 @@
147+# -*- encoding: utf-8 -*-
148+#
149+# Module Writen to OpenERP, Open Source Management Solution
150+#
151+# Copyright (c) 2014 Vauxoo - http://www.vauxoo.com/
152+# All Rights Reserved.
153+# info Vauxoo (info@vauxoo.com)
154+#
155+# Coded by: Luis Torres (luis_t@vauxoo.com)
156+#
157+#
158+# This program is free software: you can redistribute it and/or modify
159+# it under the terms of the GNU Affero General Public License as
160+# published by the Free Software Foundation, either version 3 of the
161+# License, or (at your option) any later version.
162+#
163+# This program is distributed in the hope that it will be useful,
164+# but WITHOUT ANY WARRANTY; without even the implied warranty of
165+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
166+# GNU Affero General Public License for more details.
167+#
168+# You should have received a copy of the GNU Affero General Public License
169+# along with this program. If not, see <http://www.gnu.org/licenses/>.
170+#
171+#
172+import sale_order
173
174=== added file 'sale_order_line_seq/model/sale_order.py'
175--- sale_order_line_seq/model/sale_order.py 1970-01-01 00:00:00 +0000
176+++ sale_order_line_seq/model/sale_order.py 2014-07-18 18:45:50 +0000
177@@ -0,0 +1,34 @@
178+# -*- encoding: utf-8 -*-
179+#
180+# Module Writen to OpenERP, Open Source Management Solution
181+#
182+# Copyright (c) 2014 Vauxoo - http://www.vauxoo.com/
183+# All Rights Reserved.
184+# info Vauxoo (info@vauxoo.com)
185+#
186+# Coded by: Luis Torres (luis_t@vauxoo.com)
187+#
188+#
189+# This program is free software: you can redistribute it and/or modify
190+# it under the terms of the GNU Affero General Public License as
191+# published by the Free Software Foundation, either version 3 of the
192+# License, or (at your option) any later version.
193+#
194+# This program is distributed in the hope that it will be useful,
195+# but WITHOUT ANY WARRANTY; without even the implied warranty of
196+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
197+# GNU Affero General Public License for more details.
198+#
199+# You should have received a copy of the GNU Affero General Public License
200+# along with this program. If not, see <http://www.gnu.org/licenses/>.
201+#
202+#
203+from openerp.osv import osv, fields
204+
205+class sale_order_line(osv.osv):
206+ _inherit = 'sale.order.line'
207+
208+ _columns = {
209+ 'sequence2': fields.related('sequence', type='integer', relation='sale.order.line',
210+ string='Sequence', help='Field to show the number of sequence in line')
211+ }
212
213=== added directory 'sale_order_line_seq/view'
214=== added file 'sale_order_line_seq/view/sale_order_line_view.xml'
215--- sale_order_line_seq/view/sale_order_line_view.xml 1970-01-01 00:00:00 +0000
216+++ sale_order_line_seq/view/sale_order_line_view.xml 2014-07-18 18:45:50 +0000
217@@ -0,0 +1,15 @@
218+<?xml version='1.0' encoding='utf-8'?>
219+<openerp>
220+ <data>
221+ <record model="ir.ui.view" id="view_seq_sale_order_line_form">
222+ <field name="name">view.seq.sale.order.line.form</field>
223+ <field name="model">sale.order</field>
224+ <field name="inherit_id" ref="sale.view_order_form"/>
225+ <field name="arch" type="xml">
226+ <xpath expr="//field[@name='sequence']" position="after">
227+ <field name="sequence2" string='Seq'/>
228+ </xpath>
229+ </field>
230+ </record>
231+ </data>
232+</openerp>