Merge lp:~vauxoo/addons-vauxoo/7.0-dev-incoterm_delivery_type-kty into lp:addons-vauxoo/7.0

Proposed by Katherine Zaoral (Vauxoo)
Status: Merged
Approved by: hbto [Vauxoo] http://www.vauxoo.com
Approved revision: 931
Merged at revision: 930
Proposed branch: lp:~vauxoo/addons-vauxoo/7.0-dev-incoterm_delivery_type-kty
Merge into: lp:addons-vauxoo/7.0
Diff against target: 276 lines (+218/-0)
7 files modified
incoterm_delivery_type/__init__.py (+26/-0)
incoterm_delivery_type/__openerp__.py (+45/-0)
incoterm_delivery_type/i18n/incoterm_delivery_type.pot (+32/-0)
incoterm_delivery_type/model/__init__.py (+26/-0)
incoterm_delivery_type/model/incoterm_delivery_type.py (+45/-0)
incoterm_delivery_type/view/incoterm_delivery_type_view.xml (+19/-0)
incoterm_delivery_type/wizard/__init__.py (+25/-0)
To merge this branch: bzr merge lp:~vauxoo/addons-vauxoo/7.0-dev-incoterm_delivery_type-kty
Reviewer Review Type Date Requested Status
hbto [Vauxoo] http://www.vauxoo.com Approve
Katherine Zaoral (Vauxoo) Approve
Review via email: mp+194749@code.launchpad.net

Description of the change

Module that adds a new delivery type in incoterm model

To post a comment you must log in.
Revision history for this message
Katherine Zaoral (Vauxoo) (kathy-zaoral) wrote :

I think this module meets the requirements

review: Approve
Revision history for this message
Katherine Zaoral (Vauxoo) (kathy-zaoral) wrote :

missing traduction template

review: Needs Fixing
931. By Katherine Zaoral (Vauxoo)

[ADD] add the translate template for this module.

Revision history for this message
Katherine Zaoral (Vauxoo) (kathy-zaoral) wrote :

Ready. translate template file added.

review: Approve
Revision history for this message
hbto [Vauxoo] http://www.vauxoo.com (humbertoarocha) wrote :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added directory 'incoterm_delivery_type'
2=== added file 'incoterm_delivery_type/__init__.py'
3--- incoterm_delivery_type/__init__.py 1970-01-01 00:00:00 +0000
4+++ incoterm_delivery_type/__init__.py 2013-11-11 21:22:35 +0000
5@@ -0,0 +1,26 @@
6+#!/usr/bin/python
7+# -*- encoding: utf-8 -*-
8+###############################################################################
9+# Module Writen to OpenERP, Open Source Management Solution
10+# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
11+# All Rights Reserved
12+############# Credits #########################################################
13+# Coded by: Katherine Zaoral <kathy@vauxo.com>
14+# Planified by: Humberto Arocha <hbto@vauxoo.com>
15+# Audited by: Humberto Arocha <hbto@vauxoo.com>
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 published
19+# by the Free Software Foundation, either version 3 of the License, or
20+# (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+import model
31+import wizard
32
33=== added file 'incoterm_delivery_type/__openerp__.py'
34--- incoterm_delivery_type/__openerp__.py 1970-01-01 00:00:00 +0000
35+++ incoterm_delivery_type/__openerp__.py 2013-11-11 21:22:35 +0000
36@@ -0,0 +1,45 @@
37+#!/usr/bin/python
38+# -*- encoding: utf-8 -*-
39+###############################################################################
40+# Module Writen to OpenERP, Open Source Management Solution
41+# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
42+# All Rights Reserved
43+############# Credits #########################################################
44+# Coded by: Katherine Zaoral <kathy@vauxo.com>
45+# Planified by: Humberto Arocha <hbto@vauxoo.com>
46+# Audited by: Humberto Arocha <hbto@vauxoo.com>
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 published
50+# by the Free Software Foundation, either version 3 of the License, or
51+# (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+ 'name': 'Incoterm Delivery Type',
64+ 'version': '1.0',
65+ 'author': 'Vauxoo',
66+ 'website': 'http://www.vauxoo.com/',
67+ 'category': '',
68+ 'description': '''
69+Incoterm Delivery Type
70+======================
71+This module add a delivery type boolan field in the incoterms model.
72+''',
73+ 'depends': ['base', 'mail', 'stock'],
74+ 'data': [
75+ 'view/incoterm_delivery_type_view.xml',
76+ ],
77+ 'demo': [],
78+ 'test': [],
79+ 'active': False,
80+ 'installable': True,
81+}
82
83=== added directory 'incoterm_delivery_type/data'
84=== added directory 'incoterm_delivery_type/demo'
85=== added directory 'incoterm_delivery_type/doc'
86=== added directory 'incoterm_delivery_type/doc/images'
87=== added directory 'incoterm_delivery_type/i18n'
88=== added file 'incoterm_delivery_type/i18n/incoterm_delivery_type.pot'
89--- incoterm_delivery_type/i18n/incoterm_delivery_type.pot 1970-01-01 00:00:00 +0000
90+++ incoterm_delivery_type/i18n/incoterm_delivery_type.pot 2013-11-11 21:22:35 +0000
91@@ -0,0 +1,32 @@
92+# Translation of OpenERP Server.
93+# This file contains the translation of the following modules:
94+# * incoterm_delivery_type
95+#
96+msgid ""
97+msgstr ""
98+"Project-Id-Version: OpenERP Server 7.0\n"
99+"Report-Msgid-Bugs-To: \n"
100+"POT-Creation-Date: 2013-11-11 21:15+0000\n"
101+"PO-Revision-Date: 2013-11-11 21:15+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: incoterm_delivery_type
110+#: model:ir.model,name:incoterm_delivery_type.model_stock_incoterms
111+msgid "Incoterms"
112+msgstr ""
113+
114+#. module: incoterm_delivery_type
115+#: field:stock.incoterms,is_delivery:0
116+msgid "This incoterm implies a delivery action"
117+msgstr ""
118+
119+#. module: incoterm_delivery_type
120+#: help:stock.incoterms,is_delivery:0
121+msgid "This option will be tell in the incoterms would be delivery or will be picked up by the customer"
122+msgstr ""
123+
124
125=== added directory 'incoterm_delivery_type/model'
126=== added file 'incoterm_delivery_type/model/__init__.py'
127--- incoterm_delivery_type/model/__init__.py 1970-01-01 00:00:00 +0000
128+++ incoterm_delivery_type/model/__init__.py 2013-11-11 21:22:35 +0000
129@@ -0,0 +1,26 @@
130+#!/usr/bin/python
131+# -*- encoding: utf-8 -*-
132+###############################################################################
133+# Module Writen to OpenERP, Open Source Management Solution
134+# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
135+# All Rights Reserved
136+############# Credits #########################################################
137+# Coded by: Katherine Zaoral <kathy@vauxo.com>
138+# Planified by: Humberto Arocha <hbto@vauxoo.com>
139+# Audited by: Humberto Arocha <hbto@vauxoo.com>
140+###############################################################################
141+# This program is free software: you can redistribute it and/or modify
142+# it under the terms of the GNU Affero General Public License as published
143+# by the Free Software Foundation, either version 3 of the License, or
144+# (at your option) any later version.
145+#
146+# This program is distributed in the hope that it will be useful,
147+# but WITHOUT ANY WARRANTY; without even the implied warranty of
148+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
149+# GNU Affero General Public License for more details.
150+#
151+# You should have received a copy of the GNU Affero General Public License
152+# along with this program. If not, see <http://www.gnu.org/licenses/>.
153+###############################################################################
154+
155+import incoterm_delivery_type
156
157=== added file 'incoterm_delivery_type/model/incoterm_delivery_type.py'
158--- incoterm_delivery_type/model/incoterm_delivery_type.py 1970-01-01 00:00:00 +0000
159+++ incoterm_delivery_type/model/incoterm_delivery_type.py 2013-11-11 21:22:35 +0000
160@@ -0,0 +1,45 @@
161+#!/usr/bin/python
162+# -*- encoding: utf-8 -*-
163+###############################################################################
164+# Module Writen to OpenERP, Open Source Management Solution
165+# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
166+# All Rights Reserved
167+############# Credits #########################################################
168+# Coded by: Katherine Zaoral <kathy@vauxoo.com>
169+# Planified by: Humberto Arocha <hbto@vauxoo.com>
170+# Audited by: Humberto Arocha <hbto@vauxoo.com>
171+###############################################################################
172+# This program is free software: you can redistribute it and/or modify
173+# it under the terms of the GNU Affero General Public License as published
174+# by the Free Software Foundation, either version 3 of the License, or
175+# (at your option) any later version.
176+#
177+# This program is distributed in the hope that it will be useful,
178+# but WITHOUT ANY WARRANTY; without even the implied warranty of
179+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
180+# GNU Affero General Public License for more details.
181+#
182+# You should have received a copy of the GNU Affero General Public License
183+# along with this program. If not, see <http://www.gnu.org/licenses/>.
184+###############################################################################
185+
186+from openerp.osv import fields, osv, orm
187+from openerp.tools.translate import _
188+from openerp import tools
189+
190+
191+class stock_incoterms(osv.Model):
192+
193+ _inherit = 'stock.incoterms'
194+
195+ _columns = {
196+ 'is_delivery': fields.boolean(
197+ 'This incoterm implies a delivery action',
198+ help=('This option will be tell in the incoterms would be delivery'
199+ ' or will be picked up by the customer')),
200+ }
201+
202+ _defaults = {
203+ 'is_delivery': False,
204+ }
205+
206
207=== added directory 'incoterm_delivery_type/report'
208=== added directory 'incoterm_delivery_type/security'
209=== added directory 'incoterm_delivery_type/static'
210=== added directory 'incoterm_delivery_type/static/description'
211=== added file 'incoterm_delivery_type/static/description/index.html'
212=== added directory 'incoterm_delivery_type/static/src'
213=== added directory 'incoterm_delivery_type/static/src/css'
214=== added directory 'incoterm_delivery_type/static/src/img'
215=== added file 'incoterm_delivery_type/static/src/img/icon.png'
216Binary files incoterm_delivery_type/static/src/img/icon.png 1970-01-01 00:00:00 +0000 and incoterm_delivery_type/static/src/img/icon.png 2013-11-11 21:22:35 +0000 differ
217=== added directory 'incoterm_delivery_type/static/src/js'
218=== added directory 'incoterm_delivery_type/static/src/xml'
219=== added directory 'incoterm_delivery_type/test'
220=== added directory 'incoterm_delivery_type/view'
221=== added file 'incoterm_delivery_type/view/incoterm_delivery_type_view.xml'
222--- incoterm_delivery_type/view/incoterm_delivery_type_view.xml 1970-01-01 00:00:00 +0000
223+++ incoterm_delivery_type/view/incoterm_delivery_type_view.xml 2013-11-11 21:22:35 +0000
224@@ -0,0 +1,19 @@
225+<?xml version="1.0" encoding="utf-8"?>
226+<openerp>
227+ <data>
228+
229+ <record id="stock_incoterm_delivery_type_form_view" model="ir.ui.view">
230+ <field name="name">stock.incoterm.delivery.type.form.view</field>
231+ <field name="model">stock.incoterms</field>
232+ <field name="inherit_id" ref="stock.stock_incoterms_form"/>
233+ <field name="arch" type="xml">
234+
235+ <xpath expr="//form//group" position="inside">
236+ <field name="is_delivery"/>
237+ </xpath>
238+
239+ </field>
240+ </record>
241+
242+ </data>
243+</openerp>
244
245=== added directory 'incoterm_delivery_type/wizard'
246=== added file 'incoterm_delivery_type/wizard/__init__.py'
247--- incoterm_delivery_type/wizard/__init__.py 1970-01-01 00:00:00 +0000
248+++ incoterm_delivery_type/wizard/__init__.py 2013-11-11 21:22:35 +0000
249@@ -0,0 +1,25 @@
250+#!/usr/bin/python
251+# -*- encoding: utf-8 -*-
252+###############################################################################
253+# Module Writen to OpenERP, Open Source Management Solution
254+# Copyright (C) OpenERP Venezuela (<http://www.vauxoo.com>).
255+# All Rights Reserved
256+############# Credits #########################################################
257+# Coded by: Katherine Zaoral <kathy@vauxo.com>
258+# Planified by: Humberto Arocha <hbto@vauxoo.com>
259+# Audited by: Humberto Arocha <hbto@vauxoo.com>
260+###############################################################################
261+# This program is free software: you can redistribute it and/or modify
262+# it under the terms of the GNU Affero General Public License as published
263+# by the Free Software Foundation, either version 3 of the License, or
264+# (at your option) any later version.
265+#
266+# This program is distributed in the hope that it will be useful,
267+# but WITHOUT ANY WARRANTY; without even the implied warranty of
268+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
269+# GNU Affero General Public License for more details.
270+#
271+# You should have received a copy of the GNU Affero General Public License
272+# along with this program. If not, see <http://www.gnu.org/licenses/>.
273+###############################################################################
274+
275
276=== added directory 'incoterm_delivery_type/workflow'