Merge lp:~avanzosc/sepa-tools/6.1 into lp:sepa-tools/6.1
- 6.1
- Merge into 6.1
Proposed by
Oihane (Avanzosc)
Status: | Needs review |
---|---|
Proposed branch: | lp:~avanzosc/sepa-tools/6.1 |
Merge into: | lp:sepa-tools/6.1 |
Diff against target: |
391 lines (+353/-0) 7 files modified
l10n_es_iban_converter/__init__.py (+24/-0) l10n_es_iban_converter/__openerp__.py (+44/-0) l10n_es_iban_converter/i18n/base_iban_converter.pot (+49/-0) l10n_es_iban_converter/i18n/es.po (+49/-0) l10n_es_iban_converter/wizard/__init__.py (+24/-0) l10n_es_iban_converter/wizard/wizard_partner_cc_iban.py (+122/-0) l10n_es_iban_converter/wizard/wizard_partner_cc_iban_view.xml (+41/-0) |
To merge this branch: | bzr merge lp:~avanzosc/sepa-tools/6.1 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Pedro Manuel Baeza | code review | Approve | |
Ignacio Ibeas (www.acysos.com) | Pending | ||
Review via email: mp+229563@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
lp:~avanzosc/sepa-tools/6.1
updated
- 13. By Oihane (Avanzosc)
-
[MOD] Description adapted
- 14. By Oihane (Avanzosc)
-
[MOD] Format acc_number
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote : | # |
review:
Needs Fixing
(code review)
Revision history for this message
Oihane (Avanzosc) (oihanecruce) wrote : | # |
Is it necessary to put "from . import" it is version 6.1 and there is another version for 7.0
lp:~avanzosc/sepa-tools/6.1
updated
- 15. By Oihane (Avanzosc)
-
[MOD] Requested modifications
Revision history for this message
Pedro Manuel Baeza (pedro.baeza) wrote : | # |
LGTM
review:
Approve
(code review)
Unmerged revisions
- 15. By Oihane (Avanzosc)
-
[MOD] Requested modifications
- 14. By Oihane (Avanzosc)
-
[MOD] Format acc_number
- 13. By Oihane (Avanzosc)
-
[MOD] Description adapted
- 12. By Oihane (Avanzosc)
-
[ADD] New module <l10n_es_
iban_converter>
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'l10n_es_iban_converter' | |||
2 | === added file 'l10n_es_iban_converter/__init__.py' | |||
3 | --- l10n_es_iban_converter/__init__.py 1970-01-01 00:00:00 +0000 | |||
4 | +++ l10n_es_iban_converter/__init__.py 2014-08-06 11:31:37 +0000 | |||
5 | @@ -0,0 +1,24 @@ | |||
6 | 1 | # -*- encoding: utf-8 -*- | ||
7 | 2 | ######################################################################## | ||
8 | 3 | # | ||
9 | 4 | # @authors: Ignacio Ibeas <ignacio@acysos.com> | ||
10 | 5 | # Copyright (C) 2013 Acysos S.L. | ||
11 | 6 | # | ||
12 | 7 | #This program is free software: you can redistribute it and/or modify | ||
13 | 8 | #it under the terms of the GNU General Public License as published by | ||
14 | 9 | #the Free Software Foundation, either version 3 of the License, or | ||
15 | 10 | #(at your option) any later version. | ||
16 | 11 | # | ||
17 | 12 | # This module is GPLv3 or newer and incompatible | ||
18 | 13 | # with OpenERP SA "AGPL + Private Use License"! | ||
19 | 14 | # | ||
20 | 15 | #This program is distributed in the hope that it will be useful, | ||
21 | 16 | #but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
22 | 17 | #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
23 | 18 | #GNU General Public License for more details. | ||
24 | 19 | # | ||
25 | 20 | #You should have received a copy of the GNU General Public License | ||
26 | 21 | #along with this program. If not, see http://www.gnu.org/licenses. | ||
27 | 22 | ######################################################################## | ||
28 | 23 | |||
29 | 24 | from . import wizard | ||
30 | 0 | 25 | ||
31 | === added file 'l10n_es_iban_converter/__openerp__.py' | |||
32 | --- l10n_es_iban_converter/__openerp__.py 1970-01-01 00:00:00 +0000 | |||
33 | +++ l10n_es_iban_converter/__openerp__.py 2014-08-06 11:31:37 +0000 | |||
34 | @@ -0,0 +1,44 @@ | |||
35 | 1 | # -*- encoding: utf-8 -*- | ||
36 | 2 | ######################################################################## | ||
37 | 3 | # | ||
38 | 4 | # @authors: Ignacio Ibeas <ignacio@acysos.com> | ||
39 | 5 | # Copyright (C) 2013 Acysos S.L. | ||
40 | 6 | # | ||
41 | 7 | #This program is free software: you can redistribute it and/or modify | ||
42 | 8 | #it under the terms of the GNU General Public License as published by | ||
43 | 9 | #the Free Software Foundation, either version 3 of the License, or | ||
44 | 10 | #(at your option) any later version. | ||
45 | 11 | # | ||
46 | 12 | # This module is GPLv3 or newer and incompatible | ||
47 | 13 | # with OpenERP SA "AGPL + Private Use License"! | ||
48 | 14 | # | ||
49 | 15 | #This program is distributed in the hope that it will be useful, | ||
50 | 16 | #but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
51 | 17 | #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
52 | 18 | #GNU General Public License for more details. | ||
53 | 19 | # | ||
54 | 20 | #You should have received a copy of the GNU General Public License | ||
55 | 21 | #along with this program. If not, see http://www.gnu.org/licenses. | ||
56 | 22 | ######################################################################## | ||
57 | 23 | |||
58 | 24 | { | ||
59 | 25 | "name": "IBAN Converter - Spanish localization", | ||
60 | 26 | "version": "1.0", | ||
61 | 27 | "depends": [ | ||
62 | 28 | "base", | ||
63 | 29 | "base_iban", | ||
64 | 30 | "l10n_es_partner", | ||
65 | 31 | ], | ||
66 | 32 | "author": "Acysos S.L., Avanzosc S.L.", | ||
67 | 33 | "website": "http://www.acysos.com, http://www.avanzosc.com", | ||
68 | 34 | "category": "Tools", | ||
69 | 35 | "complexity": "normal", | ||
70 | 36 | "description": """ | ||
71 | 37 | This module create one action in res.partner object to convert CCC to IBAN | ||
72 | 38 | and vice versa. | ||
73 | 39 | """, | ||
74 | 40 | 'update_xml': [ | ||
75 | 41 | 'wizard/wizard_partner_cc_iban_view.xml', | ||
76 | 42 | ], | ||
77 | 43 | 'installable': True, | ||
78 | 44 | } | ||
79 | 0 | 45 | ||
80 | === added directory 'l10n_es_iban_converter/i18n' | |||
81 | === added file 'l10n_es_iban_converter/i18n/base_iban_converter.pot' | |||
82 | --- l10n_es_iban_converter/i18n/base_iban_converter.pot 1970-01-01 00:00:00 +0000 | |||
83 | +++ l10n_es_iban_converter/i18n/base_iban_converter.pot 2014-08-06 11:31:37 +0000 | |||
84 | @@ -0,0 +1,49 @@ | |||
85 | 1 | # Translation of OpenERP Server. | ||
86 | 2 | # This file contains the translation of the following modules: | ||
87 | 3 | # * l10n_es_iban_converter | ||
88 | 4 | # | ||
89 | 5 | msgid "" | ||
90 | 6 | msgstr "" | ||
91 | 7 | "Project-Id-Version: OpenERP Server 6.1\n" | ||
92 | 8 | "Report-Msgid-Bugs-To: \n" | ||
93 | 9 | "POT-Creation-Date: 2014-08-05 07:33+0000\n" | ||
94 | 10 | "PO-Revision-Date: 2014-08-05 07:33+0000\n" | ||
95 | 11 | "Last-Translator: <>\n" | ||
96 | 12 | "Language-Team: \n" | ||
97 | 13 | "MIME-Version: 1.0\n" | ||
98 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
99 | 15 | "Content-Transfer-Encoding: \n" | ||
100 | 16 | "Plural-Forms: \n" | ||
101 | 17 | |||
102 | 18 | #. module: l10n_es_iban_converter | ||
103 | 19 | #: view:wizard.partner.cc.iban:0 | ||
104 | 20 | #: model:ir.actions.act_window,name:l10n_es_iban_converter.action_partner_to_cciban | ||
105 | 21 | #: model:ir.actions.act_window,name:l10n_es_iban_converter.shorcut_partner_to_cciban | ||
106 | 22 | msgid "Convert CCC <-> IBAN" | ||
107 | 23 | msgstr "" | ||
108 | 24 | |||
109 | 25 | #. module: l10n_es_iban_converter | ||
110 | 26 | #: view:wizard.partner.cc.iban:0 | ||
111 | 27 | msgid "Ok" | ||
112 | 28 | msgstr "" | ||
113 | 29 | |||
114 | 30 | #. module: l10n_es_iban_converter | ||
115 | 31 | #: model:ir.model,name:l10n_es_iban_converter.model_wizard_partner_cc_iban | ||
116 | 32 | msgid "Wizard Partner CC IBAN" | ||
117 | 33 | msgstr "" | ||
118 | 34 | |||
119 | 35 | #. module: l10n_es_iban_converter | ||
120 | 36 | #: view:wizard.partner.cc.iban:0 | ||
121 | 37 | msgid "Cancel" | ||
122 | 38 | msgstr "" | ||
123 | 39 | |||
124 | 40 | #. module: l10n_es_iban_converter | ||
125 | 41 | #: field:wizard.partner.cc.iban,bank_state:0 | ||
126 | 42 | msgid "Bank Account Type" | ||
127 | 43 | msgstr "" | ||
128 | 44 | |||
129 | 45 | #. module: l10n_es_iban_converter | ||
130 | 46 | #: view:wizard.partner.cc.iban:0 | ||
131 | 47 | msgid "You are going to update account number in partners banks, select which type to do you want to change" | ||
132 | 48 | msgstr "" | ||
133 | 49 | |||
134 | 0 | 50 | ||
135 | === added file 'l10n_es_iban_converter/i18n/es.po' | |||
136 | --- l10n_es_iban_converter/i18n/es.po 1970-01-01 00:00:00 +0000 | |||
137 | +++ l10n_es_iban_converter/i18n/es.po 2014-08-06 11:31:37 +0000 | |||
138 | @@ -0,0 +1,49 @@ | |||
139 | 1 | # Translation of OpenERP Server. | ||
140 | 2 | # This file contains the translation of the following modules: | ||
141 | 3 | # * l10n_es_iban_converter | ||
142 | 4 | # | ||
143 | 5 | msgid "" | ||
144 | 6 | msgstr "" | ||
145 | 7 | "Project-Id-Version: OpenERP Server 6.1\n" | ||
146 | 8 | "Report-Msgid-Bugs-To: \n" | ||
147 | 9 | "POT-Creation-Date: 2014-08-05 07:35+0000\n" | ||
148 | 10 | "PO-Revision-Date: 2014-08-05 07:35+0000\n" | ||
149 | 11 | "Last-Translator: <>\n" | ||
150 | 12 | "Language-Team: \n" | ||
151 | 13 | "MIME-Version: 1.0\n" | ||
152 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
153 | 15 | "Content-Transfer-Encoding: \n" | ||
154 | 16 | "Plural-Forms: \n" | ||
155 | 17 | |||
156 | 18 | #. module: l10n_es_iban_converter | ||
157 | 19 | #: view:wizard.partner.cc.iban:0 | ||
158 | 20 | #: model:ir.actions.act_window,name:l10n_es_iban_converter.action_partner_to_cciban | ||
159 | 21 | #: model:ir.actions.act_window,name:l10n_es_iban_converter.shorcut_partner_to_cciban | ||
160 | 22 | msgid "Convert CCC <-> IBAN" | ||
161 | 23 | msgstr "Convertir CCC <-> IBAN" | ||
162 | 24 | |||
163 | 25 | #. module: l10n_es_iban_converter | ||
164 | 26 | #: view:wizard.partner.cc.iban:0 | ||
165 | 27 | msgid "Ok" | ||
166 | 28 | msgstr "Aceptar" | ||
167 | 29 | |||
168 | 30 | #. module: l10n_es_iban_converter | ||
169 | 31 | #: model:ir.model,name:l10n_es_iban_converter.model_wizard_partner_cc_iban | ||
170 | 32 | msgid "Wizard Partner CC IBAN" | ||
171 | 33 | msgstr "Wizard Partner CC IBAN" | ||
172 | 34 | |||
173 | 35 | #. module: l10n_es_iban_converter | ||
174 | 36 | #: view:wizard.partner.cc.iban:0 | ||
175 | 37 | msgid "Cancel" | ||
176 | 38 | msgstr "Cancelar" | ||
177 | 39 | |||
178 | 40 | #. module: l10n_es_iban_converter | ||
179 | 41 | #: field:wizard.partner.cc.iban,bank_state:0 | ||
180 | 42 | msgid "Bank Account Type" | ||
181 | 43 | msgstr "Tipo de cuenta de banco" | ||
182 | 44 | |||
183 | 45 | #. module: l10n_es_iban_converter | ||
184 | 46 | #: view:wizard.partner.cc.iban:0 | ||
185 | 47 | msgid "You are going to update account number in partners banks, select which type to do you want to change" | ||
186 | 48 | msgstr "Va a actualizar los números de cuenta, elija el tipo de cuenta al que quiere cambiar" | ||
187 | 49 | |||
188 | 0 | 50 | ||
189 | === added directory 'l10n_es_iban_converter/wizard' | |||
190 | === added file 'l10n_es_iban_converter/wizard/__init__.py' | |||
191 | --- l10n_es_iban_converter/wizard/__init__.py 1970-01-01 00:00:00 +0000 | |||
192 | +++ l10n_es_iban_converter/wizard/__init__.py 2014-08-06 11:31:37 +0000 | |||
193 | @@ -0,0 +1,24 @@ | |||
194 | 1 | # -*- encoding: utf-8 -*- | ||
195 | 2 | ######################################################################## | ||
196 | 3 | # | ||
197 | 4 | # @authors: Ignacio Ibeas <ignacio@acysos.com> | ||
198 | 5 | # Copyright (C) 2013 Acysos S.L. | ||
199 | 6 | # | ||
200 | 7 | #This program is free software: you can redistribute it and/or modify | ||
201 | 8 | #it under the terms of the GNU General Public License as published by | ||
202 | 9 | #the Free Software Foundation, either version 3 of the License, or | ||
203 | 10 | #(at your option) any later version. | ||
204 | 11 | # | ||
205 | 12 | # This module is GPLv3 or newer and incompatible | ||
206 | 13 | # with OpenERP SA "AGPL + Private Use License"! | ||
207 | 14 | # | ||
208 | 15 | #This program is distributed in the hope that it will be useful, | ||
209 | 16 | #but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
210 | 17 | #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
211 | 18 | #GNU General Public License for more details. | ||
212 | 19 | # | ||
213 | 20 | #You should have received a copy of the GNU General Public License | ||
214 | 21 | #along with this program. If not, see http://www.gnu.org/licenses. | ||
215 | 22 | ######################################################################## | ||
216 | 23 | |||
217 | 24 | from . import wizard_partner_cc_iban | ||
218 | 0 | 25 | ||
219 | === added file 'l10n_es_iban_converter/wizard/wizard_partner_cc_iban.py' | |||
220 | --- l10n_es_iban_converter/wizard/wizard_partner_cc_iban.py 1970-01-01 00:00:00 +0000 | |||
221 | +++ l10n_es_iban_converter/wizard/wizard_partner_cc_iban.py 2014-08-06 11:31:37 +0000 | |||
222 | @@ -0,0 +1,122 @@ | |||
223 | 1 | # -*- encoding: utf-8 -*- | ||
224 | 2 | ######################################################################## | ||
225 | 3 | # | ||
226 | 4 | # @authors: Ignacio Ibeas <ignacio@acysos.com> | ||
227 | 5 | # Copyright (C) 2013 Acysos S.L. | ||
228 | 6 | # | ||
229 | 7 | #This program is free software: you can redistribute it and/or modify | ||
230 | 8 | #it under the terms of the GNU General Public License as published by | ||
231 | 9 | #the Free Software Foundation, either version 3 of the License, or | ||
232 | 10 | #(at your option) any later version. | ||
233 | 11 | # | ||
234 | 12 | # This module is GPLv3 or newer and incompatible | ||
235 | 13 | # with OpenERP SA "AGPL + Private Use License"! | ||
236 | 14 | # | ||
237 | 15 | #This program is distributed in the hope that it will be useful, | ||
238 | 16 | #but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
239 | 17 | #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
240 | 18 | #GNU General Public License for more details. | ||
241 | 19 | # | ||
242 | 20 | #You should have received a copy of the GNU General Public License | ||
243 | 21 | #along with this program. If not, see http://www.gnu.org/licenses. | ||
244 | 22 | ######################################################################## | ||
245 | 23 | |||
246 | 24 | from openerp.osv import fields, orm | ||
247 | 25 | |||
248 | 26 | from openerp.addons.base_iban.base_iban import _pretty_iban | ||
249 | 27 | |||
250 | 28 | |||
251 | 29 | _mapping = {'A': '10', 'B': '11', 'C': '12', 'D': '13', 'E': '14', 'F': '15', | ||
252 | 30 | 'G': '16', 'H': '17', 'I': '18', 'J': '19', 'K': '20', 'L': '21', | ||
253 | 31 | 'M': '22', 'N': '23', 'O': '24', 'P': '25', 'Q': '26', 'R': '27', | ||
254 | 32 | 'S': '28', 'T': '29', 'U': '30', 'V': '31', 'W': '32', 'X': '33', | ||
255 | 33 | 'Y': '34', 'Z': '35'} | ||
256 | 34 | |||
257 | 35 | |||
258 | 36 | class WizardPartnerCcIban(orm.TransientModel): | ||
259 | 37 | _name = "wizard.partner.cc.iban" | ||
260 | 38 | _description = "Wizard Partner CC IBAN" | ||
261 | 39 | |||
262 | 40 | def _bank_type_get(self, cr, uid, context=None): | ||
263 | 41 | partner_bank_obj = self.pool['res.partner.bank'] | ||
264 | 42 | return partner_bank_obj._bank_type_get(cr, uid, context=context) | ||
265 | 43 | |||
266 | 44 | _columns = { | ||
267 | 45 | 'bank_state': fields.selection(_bank_type_get, 'Bank Account Type', | ||
268 | 46 | required=True), | ||
269 | 47 | } | ||
270 | 48 | |||
271 | 49 | def update_cc_iban(self, cr, uid, ids, context=None): | ||
272 | 50 | if context is None: | ||
273 | 51 | context = {} | ||
274 | 52 | data = self.read(cr, uid, ids, context=context)[0] | ||
275 | 53 | bank_obj = self.pool['res.partner.bank'] | ||
276 | 54 | partner_obj = self.pool['res.partner'] | ||
277 | 55 | partner_ids = context.get('active_ids') | ||
278 | 56 | if partner_ids: | ||
279 | 57 | for partner in partner_obj.browse(cr, uid, partner_ids, | ||
280 | 58 | context=context): | ||
281 | 59 | if partner.bank_ids: | ||
282 | 60 | for bank in partner.bank_ids: | ||
283 | 61 | new_data = {} | ||
284 | 62 | country = bank.acc_country_id | ||
285 | 63 | if not country: | ||
286 | 64 | country = partner.country | ||
287 | 65 | new_data['country_id'] = country.id | ||
288 | 66 | if bank.state == data['bank_state']: | ||
289 | 67 | continue | ||
290 | 68 | if bank.state == 'bank': | ||
291 | 69 | iban = self.convert_to_iban(cr, uid, | ||
292 | 70 | bank.acc_number, | ||
293 | 71 | country.code, | ||
294 | 72 | context=context) | ||
295 | 73 | values = bank_obj.onchange_banco(cr, uid, ids, | ||
296 | 74 | iban, country.id, | ||
297 | 75 | 'iban', | ||
298 | 76 | context=context) | ||
299 | 77 | new_data.update( | ||
300 | 78 | {'acc_number': values['value']['acc_number'], | ||
301 | 79 | 'state': 'iban'}) | ||
302 | 80 | elif bank.state == 'iban': | ||
303 | 81 | ccc = self.convert_to_ccc(cr, uid, bank.acc_number, | ||
304 | 82 | context=context) | ||
305 | 83 | values = bank_obj.onchange_banco(cr, uid, ids, ccc, | ||
306 | 84 | country.id, | ||
307 | 85 | 'bank', | ||
308 | 86 | context=context) | ||
309 | 87 | new_data.update( | ||
310 | 88 | {'acc_number': values['value']['acc_number'], | ||
311 | 89 | 'state': 'bank'}) | ||
312 | 90 | if (not bank.bank or not bank.bank_bic) and \ | ||
313 | 91 | 'bank' in values['value']: | ||
314 | 92 | bank_data = bank_obj.onchange_bank_id( | ||
315 | 93 | cr, uid, ids, values['value']['bank'], | ||
316 | 94 | context=context) | ||
317 | 95 | new_data.update( | ||
318 | 96 | {'bank': values['value']['bank'], | ||
319 | 97 | 'bank_bic': bank_data['value']['bank_bic'], | ||
320 | 98 | 'bank_name': bank_data['value']['bank_name']}) | ||
321 | 99 | bank_obj.write(cr, uid, [bank.id], new_data, | ||
322 | 100 | context=context) | ||
323 | 101 | return {'type': 'ir.actions.act_window_close'} | ||
324 | 102 | |||
325 | 103 | def convert_to_iban(self, cr, uid, acc_number, country_code, context=None): | ||
326 | 104 | code_char = _mapping[country_code[:1]] + _mapping[country_code[1:]] | ||
327 | 105 | ccc = acc_number.replace(" ", "") | ||
328 | 106 | for key, replacement in _mapping.items(): | ||
329 | 107 | ccc_number = ccc.replace(key, replacement) | ||
330 | 108 | ccc_convert = int(ccc_number + code_char + '00') | ||
331 | 109 | remainder = ccc_convert % 97 | ||
332 | 110 | control_digit = 98 - remainder | ||
333 | 111 | if control_digit < 10: | ||
334 | 112 | control_digit = '0' + str(control_digit) | ||
335 | 113 | else: | ||
336 | 114 | control_digit = str(control_digit) | ||
337 | 115 | iban = _pretty_iban(country_code + control_digit + str(ccc)) | ||
338 | 116 | return iban | ||
339 | 117 | |||
340 | 118 | def convert_to_ccc(self, cr, uid, acc_number, context=None): | ||
341 | 119 | ccc = acc_number.replace(" ", "") | ||
342 | 120 | acc_number = ccc[4:] | ||
343 | 121 | return "%s %s %s %s" % (acc_number[0:4], acc_number[4:8], | ||
344 | 122 | acc_number[8:10], acc_number[10:]) | ||
345 | 0 | 123 | ||
346 | === added file 'l10n_es_iban_converter/wizard/wizard_partner_cc_iban_view.xml' | |||
347 | --- l10n_es_iban_converter/wizard/wizard_partner_cc_iban_view.xml 1970-01-01 00:00:00 +0000 | |||
348 | +++ l10n_es_iban_converter/wizard/wizard_partner_cc_iban_view.xml 2014-08-06 11:31:37 +0000 | |||
349 | @@ -0,0 +1,41 @@ | |||
350 | 1 | <?xml version="1.0" encoding="UTF-8"?> | ||
351 | 2 | <openerp> | ||
352 | 3 | <data> | ||
353 | 4 | |||
354 | 5 | <record id="wizard_partner_cc_iban_view" model="ir.ui.view"> | ||
355 | 6 | <field name="name">wizard.partner.cc.iban.view</field> | ||
356 | 7 | <field name="model">wizard.partner.cc.iban</field> | ||
357 | 8 | <field name="type">form</field> | ||
358 | 9 | <field name="arch" type="xml"> | ||
359 | 10 | <form string="Convert CCC <-> IBAN"> | ||
360 | 11 | <group colspan="4"> | ||
361 | 12 | <separator colspan="4" /> | ||
362 | 13 | <label | ||
363 | 14 | string="You are going to update account number in partners banks, select which type to do you want to change" /> | ||
364 | 15 | <field name="bank_state" nolabel="1" /> | ||
365 | 16 | </group> | ||
366 | 17 | <group colspan="4"> | ||
367 | 18 | <button icon='gtk-cancel' special="cancel" | ||
368 | 19 | string="Cancel" /> | ||
369 | 20 | <button name="update_cc_iban" icon='gtk-ok' | ||
370 | 21 | type="object" string="Ok" /> | ||
371 | 22 | </group> | ||
372 | 23 | </form> | ||
373 | 24 | </field> | ||
374 | 25 | </record> | ||
375 | 26 | |||
376 | 27 | <!-- ACTION partner To CC IBAN --> | ||
377 | 28 | <act_window id="action_partner_to_cciban" key2="client_action_multi" | ||
378 | 29 | name="Convert CCC <-> IBAN" res_model="wizard.partner.cc.iban" | ||
379 | 30 | src_model="res.partner" view_id="wizard_partner_cc_iban_view" | ||
380 | 31 | view_mode="form" target="new" view_type="form" | ||
381 | 32 | groups="base.group_extended" /> | ||
382 | 33 | |||
383 | 34 | <!-- SHORCUT partner to CC IBAN --> | ||
384 | 35 | <act_window context="{'active_ids':[active_id]}" id="shorcut_partner_to_cciban" | ||
385 | 36 | name="Convert CCC <-> IBAN" res_model="wizard.partner.cc.iban" | ||
386 | 37 | src_model="res.partner" view_type="form" view_mode="form" | ||
387 | 38 | target="new" /> | ||
388 | 39 | |||
389 | 40 | </data> | ||
390 | 41 | </openerp> | ||
391 | 0 | \ No newline at end of file | 42 | \ No newline at end of file |
Some comments inline