Merge lp:~agilebg/account-payment/adding_account_due_list_7 into lp:~account-payment-team/account-payment/7.0
- adding_account_due_list_7
- Merge into 7.0
Status: | Merged |
---|---|
Merged at revision: | 106 |
Proposed branch: | lp:~agilebg/account-payment/adding_account_due_list_7 |
Merge into: | lp:~account-payment-team/account-payment/7.0 |
Diff against target: |
764 lines (+728/-0) 7 files modified
account_due_list/__init__.py (+22/-0) account_due_list/__openerp__.py (+48/-0) account_due_list/account_move_line.py (+165/-0) account_due_list/i18n/account_due_list.pot (+151/-0) account_due_list/i18n/de.po (+109/-0) account_due_list/i18n/it.po (+157/-0) account_due_list/payment_view.xml (+76/-0) |
To merge this branch: | bzr merge lp:~agilebg/account-payment/adding_account_due_list_7 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Maxime Chambreuil (http://www.savoirfairelinux.com) | code review | Approve | |
Yannick Vaucher @ Camptocamp | code review, no tests | Approve | |
Lorenzo Battistini (community) | code review | Approve | |
Review via email: mp+182330@code.launchpad.net |
Commit message
Description of the change
Added porting account_due_list to 7.0
A due list of pending payments. The list contains every expected payment, generated by invoices. The list is fully filterable.
This functionality is taken from account_
This module is useful to users who need a due list but don't want to install all the functionalities provided by account_
- 108. By Alex Comba - Agile BG
-
[REF] PEP8 style
- 109. By Alex Comba - Agile BG
-
[FIX] wrong else position
Lorenzo Battistini (elbati) : | # |
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote : | # |
- 110. By Alex Comba - Agile BG
-
[FIX] PEP8 errors after running 'flake8'
- 111. By Alex Comba - Agile BG
-
[ADD] account_
due_list. pot
Alex Comba - Agile BG (tafaru) wrote : | # |
Hello Maxime,
please have a look at my new commits, do they satisfy your fixing needs?
Cheers.
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote : | # |
Hello Alex,
Here are some little things you should fixes before we can merge your contribution:
missing context propagation in browse and search method at:
l.121
l.123
l.138
l.148
l.228
Please add a Contributors section in __openerp__.py description
l.218 in fields_view_get context default value should be None instead of {}
Otherwise LGTM thanks for your contrib!
Cheers
Alex Comba - Agile BG (tafaru) wrote : | # |
Hello Yannick,
thank you for your remarks, I will check them asap.
Cheers
- 112. By Alex Comba - Agile BG
-
[FIX] Added missing context propagation in browse and search method
Alex Comba - Agile BG (tafaru) wrote : | # |
Hello Yannick,
I've just pushed a new commit, please have a look if it works well now.
Cheers
Yannick Vaucher @ Camptocamp (yvaucher-c2c) wrote : | # |
Could you also write the list of contributors under __openerp_
Like we did here:
Otherwise LGTM
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote : | # |
l27: from . import account_move_line
Maxime Chambreuil (http://www.savoirfairelinux.com) (max3903) wrote : | # |
I fixed my previous comment during the merge.
Preview Diff
1 | === added directory 'account_due_list' |
2 | === added file 'account_due_list/__init__.py' |
3 | --- account_due_list/__init__.py 1970-01-01 00:00:00 +0000 |
4 | +++ account_due_list/__init__.py 2013-12-20 16:17:10 +0000 |
5 | @@ -0,0 +1,22 @@ |
6 | +# -*- coding: utf-8 -*- |
7 | +############################################################################## |
8 | +# |
9 | +# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) |
10 | +# Copyright (C) 2011-2013 Agile Business Group sagl |
11 | +# (<http://www.agilebg.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 published |
15 | +# by the Free Software Foundation, either version 3 of the License, or |
16 | +# (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 | +import account_move_line |
28 | |
29 | === added file 'account_due_list/__openerp__.py' |
30 | --- account_due_list/__openerp__.py 1970-01-01 00:00:00 +0000 |
31 | +++ account_due_list/__openerp__.py 2013-12-20 16:17:10 +0000 |
32 | @@ -0,0 +1,48 @@ |
33 | +# -*- coding: utf-8 -*- |
34 | +############################################################################## |
35 | +# |
36 | +# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) |
37 | +# Copyright (C) 2011-2013 Agile Business Group sagl |
38 | +# (<http://www.agilebg.com>) |
39 | +# @author Jordi Esteve <jesteve@zikzakmedia.com> |
40 | +# @author Lorenzo Battistini <lorenzo.battistini@agilebg.com> |
41 | +# Ported to OpenERP 7.0 by Alex Comba <alex.comba@agilebg.com> and |
42 | +# Bruno Bottacini <bruno.bottacini@dorella.com> |
43 | +# |
44 | +# This program is free software: you can redistribute it and/or modify |
45 | +# it under the terms of the GNU Affero General Public License as published |
46 | +# by the Free Software Foundation, either version 3 of the License, or |
47 | +# (at your option) any later version. |
48 | +# |
49 | +# This program is distributed in the hope that it will be useful, |
50 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
51 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
52 | +# GNU Affero General Public License for more details. |
53 | +# |
54 | +# You should have received a copy of the GNU Affero General Public License |
55 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
56 | +# |
57 | +############################################################################## |
58 | +{ |
59 | + 'name': "Payments Due list", |
60 | + 'version': '0.1', |
61 | + 'category': 'Generic Modules/Payment', |
62 | + 'description': """ |
63 | +A due list of pending payments. The list contains every expected payment, |
64 | +generated by invoices. The list is fully filterable. |
65 | + """, |
66 | + 'author': ['Agile Business Group, Zikzakmedia SL'], |
67 | + 'website': 'http://www.agilebg.com', |
68 | + 'license': 'AGPL-3', |
69 | + "depends": [ |
70 | + 'account', |
71 | + ], |
72 | + 'conflicts': [ |
73 | + 'account_payment_extension', |
74 | + ], |
75 | + "data": [ |
76 | + 'payment_view.xml', |
77 | + ], |
78 | + "active": False, |
79 | + "installable": True |
80 | +} |
81 | |
82 | === added file 'account_due_list/account_move_line.py' |
83 | --- account_due_list/account_move_line.py 1970-01-01 00:00:00 +0000 |
84 | +++ account_due_list/account_move_line.py 2013-12-20 16:17:10 +0000 |
85 | @@ -0,0 +1,165 @@ |
86 | +# -*- coding: utf-8 -*- |
87 | +############################################################################## |
88 | +# |
89 | +# OpenERP, Open Source Management Solution |
90 | +# Copyright (c) 2008 Zikzakmedia S.L. (http://zikzakmedia.com) |
91 | +# Jordi Esteve <jesteve@zikzakmedia.com> |
92 | +# |
93 | +# Copyright (C) 2011 Domsense srl (<http://www.domsense.com>) |
94 | +# Copyright (C) 2011-2013 Agile Business Group sagl |
95 | +# (<http://www.agilebg.com>) |
96 | +# |
97 | +# This program is free software: you can redistribute it and/or modify |
98 | +# it under the terms of the GNU Affero General Public License as published |
99 | +# by the Free Software Foundation, either version 3 of the License, or |
100 | +# (at your option) any later version. |
101 | +# |
102 | +# This program is distributed in the hope that it will be useful, |
103 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
104 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
105 | +# GNU Affero General Public License for more details. |
106 | +# |
107 | +# You should have received a copy of the GNU Affero General Public License |
108 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
109 | +# |
110 | +############################################################################## |
111 | + |
112 | +from openerp.osv import fields, orm |
113 | +from openerp.tools.translate import _ |
114 | + |
115 | + |
116 | +class account_move_line(orm.Model): |
117 | + |
118 | + def _get_invoice(self, cr, uid, ids, field_name, arg, context=None): |
119 | + invoice_pool = self.pool.get('account.invoice') |
120 | + res = {} |
121 | + for line in self.browse(cr, uid, ids, context=context): |
122 | + inv_ids = invoice_pool.search( |
123 | + cr, |
124 | + uid, |
125 | + [('move_id', '=', line.move_id.id)], |
126 | + context=context |
127 | + ) |
128 | + if len(inv_ids) > 1: |
129 | + raise orm.except_orm( |
130 | + _('Error'), |
131 | + _('Incongruent data: move %s has more than one invoice') |
132 | + % line.move_id.name |
133 | + ) |
134 | + if inv_ids: |
135 | + res[line.id] = inv_ids[0] |
136 | + else: |
137 | + res[line.id] = False |
138 | + return res |
139 | + |
140 | + def _get_day(self, cr, uid, ids, field_name, arg, context=None): |
141 | + res = {} |
142 | + for line in self.browse(cr, uid, ids, context=context): |
143 | + if line.date_maturity: |
144 | + res[line.id] = line.date_maturity |
145 | + else: |
146 | + res[line.id] = False |
147 | + return res |
148 | + |
149 | + def _get_move_lines(self, cr, uid, ids, context=None): |
150 | + invoice_pool = self.pool.get('account.invoice') |
151 | + res = [] |
152 | + for invoice in invoice_pool.browse(cr, uid, ids, context=context): |
153 | + if invoice.move_id: |
154 | + for line in invoice.move_id.line_id: |
155 | + if line.id not in res: |
156 | + res.append(line.id) |
157 | + return res |
158 | + |
159 | + _inherit = 'account.move.line' |
160 | + |
161 | + _columns = { |
162 | + 'invoice_origin': fields.related( |
163 | + 'invoice', |
164 | + 'origin', |
165 | + type='char', |
166 | + string='Source Doc', |
167 | + store=False |
168 | + ), |
169 | + 'invoice_date': fields.related( |
170 | + 'invoice', |
171 | + 'date_invoice', |
172 | + type='date', |
173 | + string='Invoice Date', |
174 | + store=False |
175 | + ), |
176 | + 'partner_ref': fields.related( |
177 | + 'partner_id', |
178 | + 'ref', |
179 | + type='char', |
180 | + string='Partner Ref', |
181 | + store=False |
182 | + ), |
183 | + 'payment_term_id': fields.related( |
184 | + 'invoice', |
185 | + 'payment_term', |
186 | + type='many2one', |
187 | + string='Payment Term', |
188 | + store=False, |
189 | + relation="account.payment.term" |
190 | + ), |
191 | + 'stored_invoice_id': fields.function( |
192 | + _get_invoice, |
193 | + method=True, |
194 | + string="Invoice", |
195 | + type="many2one", |
196 | + relation="account.invoice", |
197 | + store={ |
198 | + 'account.move.line': ( |
199 | + lambda self, cr, uid, ids, c={}: ids, |
200 | + ['move_id'], |
201 | + 10 |
202 | + ), |
203 | + 'account.invoice': ( |
204 | + _get_move_lines, |
205 | + ['move_id'], |
206 | + 10 |
207 | + ), |
208 | + }), |
209 | + 'day': fields.function( |
210 | + _get_day, method=True, string="Day", type="char", size=16, |
211 | + store={ |
212 | + 'account.move.line': ( |
213 | + lambda self, cr, uid, ids, c={}: ids, |
214 | + ['date_maturity'], |
215 | + 10 |
216 | + ), |
217 | + }), |
218 | + } |
219 | + |
220 | + def fields_view_get( |
221 | + self, cr, uid, view_id=None, view_type='form', |
222 | + context=None, toolbar=False, submenu=False |
223 | + ): |
224 | + model_data_obj = self.pool.get('ir.model.data') |
225 | + ids = model_data_obj.search( |
226 | + cr, |
227 | + uid, |
228 | + [ |
229 | + ('module', '=', 'account_due_list'), |
230 | + ('name', '=', 'view_payments_tree') |
231 | + ], |
232 | + context=context |
233 | + ) |
234 | + if ids: |
235 | + view_payments_tree_id = model_data_obj.get_object_reference( |
236 | + cr, uid, 'account_due_list', 'view_payments_tree') |
237 | + if ids and view_id == view_payments_tree_id[1]: |
238 | + # Use due list |
239 | + result = super(orm.Model, self).fields_view_get( |
240 | + cr, uid, view_id, view_type, context, |
241 | + toolbar=toolbar, submenu=submenu |
242 | + ) |
243 | + else: |
244 | + # Use special views for account.move.line object |
245 | + # (for ex. tree view contains user defined fields) |
246 | + result = super(account_move_line, self).fields_view_get( |
247 | + cr, uid, view_id, view_type, context, |
248 | + toolbar=toolbar, submenu=submenu |
249 | + ) |
250 | + return result |
251 | |
252 | === added directory 'account_due_list/i18n' |
253 | === added file 'account_due_list/i18n/account_due_list.pot' |
254 | --- account_due_list/i18n/account_due_list.pot 1970-01-01 00:00:00 +0000 |
255 | +++ account_due_list/i18n/account_due_list.pot 2013-12-20 16:17:10 +0000 |
256 | @@ -0,0 +1,151 @@ |
257 | +# Translation of OpenERP Server. |
258 | +# This file contains the translation of the following modules: |
259 | +# * account_due_list |
260 | +# |
261 | +msgid "" |
262 | +msgstr "" |
263 | +"Project-Id-Version: OpenERP Server 7.0\n" |
264 | +"Report-Msgid-Bugs-To: \n" |
265 | +"POT-Creation-Date: 2013-11-12 08:17+0000\n" |
266 | +"PO-Revision-Date: 2013-11-12 08:17+0000\n" |
267 | +"Last-Translator: <>\n" |
268 | +"Language-Team: \n" |
269 | +"MIME-Version: 1.0\n" |
270 | +"Content-Type: text/plain; charset=UTF-8\n" |
271 | +"Content-Transfer-Encoding: \n" |
272 | +"Plural-Forms: \n" |
273 | + |
274 | +#. module: account_due_list |
275 | +#: view:account.move.line:0 |
276 | +msgid "Receivable" |
277 | +msgstr "" |
278 | + |
279 | +#. module: account_due_list |
280 | +#: view:account.move.line:0 |
281 | +msgid "Unreconciled payments" |
282 | +msgstr "" |
283 | + |
284 | +#. module: account_due_list |
285 | +#: view:account.move.line:0 |
286 | +msgid "Payable payments" |
287 | +msgstr "" |
288 | + |
289 | +#. module: account_due_list |
290 | +#: view:account.move.line:0 |
291 | +msgid "Unreconciled" |
292 | +msgstr "" |
293 | + |
294 | +#. module: account_due_list |
295 | +#: view:account.move.line:0 |
296 | +msgid "Group By..." |
297 | +msgstr "" |
298 | + |
299 | +#. module: account_due_list |
300 | +#: field:account.move.line,invoice_origin:0 |
301 | +msgid "Source Doc" |
302 | +msgstr "" |
303 | + |
304 | +#. module: account_due_list |
305 | +#: field:account.move.line,invoice_date:0 |
306 | +msgid "Invoice Date" |
307 | +msgstr "" |
308 | + |
309 | +#. module: account_due_list |
310 | +#: code:addons/account_due_list/account_move_line.py:42 |
311 | +#, python-format |
312 | +msgid "Incongruent data: move %s has more than one invoice" |
313 | +msgstr "" |
314 | + |
315 | +#. module: account_due_list |
316 | +#: view:account.move.line:0 |
317 | +msgid "Payable" |
318 | +msgstr "" |
319 | + |
320 | +#. module: account_due_list |
321 | +#: view:account.move.line:0 |
322 | +msgid "Search Payments" |
323 | +msgstr "" |
324 | + |
325 | +#. module: account_due_list |
326 | +#: model:ir.model,name:account_due_list.model_account_move_line |
327 | +msgid "Journal Items" |
328 | +msgstr "" |
329 | + |
330 | +#. module: account_due_list |
331 | +#: field:account.move.line,day:0 |
332 | +msgid "Day" |
333 | +msgstr "" |
334 | + |
335 | +#. module: account_due_list |
336 | +#: view:account.move.line:0 |
337 | +msgid "Overdue payments" |
338 | +msgstr "" |
339 | + |
340 | +#. module: account_due_list |
341 | +#: view:account.move.line:0 |
342 | +msgid "Total Debit" |
343 | +msgstr "" |
344 | + |
345 | +#. module: account_due_list |
346 | +#: view:account.move.line:0 |
347 | +msgid "Payments" |
348 | +msgstr "" |
349 | + |
350 | +#. module: account_due_list |
351 | +#: code:addons/account_due_list/account_move_line.py:41 |
352 | +#, python-format |
353 | +msgid "Error" |
354 | +msgstr "" |
355 | + |
356 | +#. module: account_due_list |
357 | +#: model:ir.actions.act_window,name:account_due_list.action_invoice_payments |
358 | +#: model:ir.ui.menu,name:account_due_list.menu_action_invoice_payments |
359 | +msgid "Invoice payments" |
360 | +msgstr "" |
361 | + |
362 | +#. module: account_due_list |
363 | +#: view:account.move.line:0 |
364 | +msgid "Overdue" |
365 | +msgstr "" |
366 | + |
367 | +#. module: account_due_list |
368 | +#: view:account.move.line:0 |
369 | +msgid "Receivable payments" |
370 | +msgstr "" |
371 | + |
372 | +#. module: account_due_list |
373 | +#: view:account.move.line:0 |
374 | +msgid "Due date" |
375 | +msgstr "" |
376 | + |
377 | +#. module: account_due_list |
378 | +#: field:account.move.line,payment_term_id:0 |
379 | +msgid "Payment Term" |
380 | +msgstr "" |
381 | + |
382 | +#. module: account_due_list |
383 | +#: view:account.move.line:0 |
384 | +msgid "Month" |
385 | +msgstr "" |
386 | + |
387 | +#. module: account_due_list |
388 | +#: view:account.move.line:0 |
389 | +msgid "Total Credit" |
390 | +msgstr "" |
391 | + |
392 | +#. module: account_due_list |
393 | +#: view:account.move.line:0 |
394 | +#: field:account.move.line,stored_invoice_id:0 |
395 | +msgid "Invoice" |
396 | +msgstr "" |
397 | + |
398 | +#. module: account_due_list |
399 | +#: view:account.move.line:0 |
400 | +msgid "Partner" |
401 | +msgstr "" |
402 | + |
403 | +#. module: account_due_list |
404 | +#: field:account.move.line,partner_ref:0 |
405 | +msgid "Partner Ref" |
406 | +msgstr "" |
407 | + |
408 | |
409 | === added file 'account_due_list/i18n/de.po' |
410 | --- account_due_list/i18n/de.po 1970-01-01 00:00:00 +0000 |
411 | +++ account_due_list/i18n/de.po 2013-12-20 16:17:10 +0000 |
412 | @@ -0,0 +1,109 @@ |
413 | +# Translation of OpenERP Server. |
414 | +# This file contains the translation of the following modules: |
415 | +# * account_due_list |
416 | +# |
417 | +msgid "" |
418 | +msgstr "" |
419 | +"Project-Id-Version: OpenERP Server 6.0.3\n" |
420 | +"Report-Msgid-Bugs-To: support@openerp.com\n" |
421 | +"POT-Creation-Date: 2011-10-11 08:28+0000\n" |
422 | +"PO-Revision-Date: 2011-10-11 10:35+0100\n" |
423 | +"Last-Translator: Thomas Winteler <info@win-soft.ch>\n" |
424 | +"Language-Team: \n" |
425 | +"MIME-Version: 1.0\n" |
426 | +"Content-Type: text/plain; charset=UTF-8\n" |
427 | +"Content-Transfer-Encoding: 8bit\n" |
428 | +"Plural-Forms: \n" |
429 | + |
430 | +#. module: account_due_list |
431 | +#: view:account.move.line:0 |
432 | +msgid "Receivable" |
433 | +msgstr "Debitor" |
434 | + |
435 | +#. module: account_due_list |
436 | +#: field:account.move.line,invoice_origin:0 |
437 | +msgid "Source Doc" |
438 | +msgstr "Herkunft" |
439 | + |
440 | +#. module: account_due_list |
441 | +#: view:account.move.line:0 |
442 | +msgid "Payable" |
443 | +msgstr "Kreditor" |
444 | + |
445 | +#. module: account_due_list |
446 | +#: constraint:account.move.line:0 |
447 | +msgid "You can not create move line on closed account." |
448 | +msgstr "Sie können keine Buchung auf einem bereits abgeschlossenen Konto vornehmen." |
449 | + |
450 | +#. module: account_due_list |
451 | +#: field:account.move.line,invoice_date:0 |
452 | +msgid "Invoice Date" |
453 | +msgstr "Rechnungsdatum" |
454 | + |
455 | +#. module: account_due_list |
456 | +#: view:account.move.line:0 |
457 | +msgid "Unreconciled" |
458 | +msgstr "Offene Posten" |
459 | + |
460 | +#. module: account_due_list |
461 | +#: view:account.move.line:0 |
462 | +msgid "Total Debit" |
463 | +msgstr "Total Debit" |
464 | + |
465 | +#. module: account_due_list |
466 | +#: view:account.move.line:0 |
467 | +msgid "Group By..." |
468 | +msgstr "Gruppierung..." |
469 | + |
470 | +#. module: account_due_list |
471 | +#: sql_constraint:account.move.line:0 |
472 | +msgid "Wrong credit or debit value in accounting entry !" |
473 | +msgstr "Falscher Buchungsbetrag in Soll oder Haben" |
474 | + |
475 | +#. module: account_due_list |
476 | +#: view:account.move.line:0 |
477 | +#: model:ir.actions.act_window,name:account_due_list.action_invoice_payments |
478 | +#: model:ir.ui.menu,name:account_due_list.menu_action_invoice_payments |
479 | +msgid "Payments" |
480 | +msgstr "Zahlungen" |
481 | + |
482 | +#. module: account_due_list |
483 | +#: view:account.move.line:0 |
484 | +msgid "Search Payments" |
485 | +msgstr "Zahlungen suchen" |
486 | + |
487 | +#. module: account_due_list |
488 | +#: model:ir.model,name:account_due_list.model_account_move_line |
489 | +msgid "Journal Items" |
490 | +msgstr "Buchungsjournale" |
491 | + |
492 | +#. module: account_due_list |
493 | +#: view:account.move.line:0 |
494 | +msgid "Partner" |
495 | +msgstr "Partner" |
496 | + |
497 | +#. module: account_due_list |
498 | +#: constraint:account.move.line:0 |
499 | +msgid "You can not create move line on view account." |
500 | +msgstr "Sie können keine Buchungen auf Konten des Typs Ansicht erstellen." |
501 | + |
502 | +#. module: account_due_list |
503 | +#: constraint:account.move.line:0 |
504 | +msgid "Company must be same for its related account and period." |
505 | +msgstr "Das Unternehmen muss für zugehörige Konten und Perioden identisch sein." |
506 | + |
507 | +#. module: account_due_list |
508 | +#: view:account.move.line:0 |
509 | +msgid "Total Credit" |
510 | +msgstr "Total Kredit" |
511 | + |
512 | +#. module: account_due_list |
513 | +#: field:account.move.line,partner_ref:0 |
514 | +msgid "Partner Ref" |
515 | +msgstr "Partner Ref" |
516 | + |
517 | +#. module: account_due_list |
518 | +#: view:account.move.line:0 |
519 | +msgid "Overdue" |
520 | +msgstr "Überfällig" |
521 | + |
522 | |
523 | === added file 'account_due_list/i18n/it.po' |
524 | --- account_due_list/i18n/it.po 1970-01-01 00:00:00 +0000 |
525 | +++ account_due_list/i18n/it.po 2013-12-20 16:17:10 +0000 |
526 | @@ -0,0 +1,157 @@ |
527 | +# Translation of OpenERP Server. |
528 | +# This file contains the translation of the following modules: |
529 | +# * account_due_list |
530 | +# |
531 | +msgid "" |
532 | +msgstr "" |
533 | +"Project-Id-Version: OpenERP Server 6.0.3\n" |
534 | +"Report-Msgid-Bugs-To: support@openerp.com\n" |
535 | +"POT-Creation-Date: 2012-01-01 14:38+0000\n" |
536 | +"PO-Revision-Date: 2012-01-01 15:39+0100\n" |
537 | +"Last-Translator: Lorenzo Battistini <lorenzo.battistini@agilebg.com>\n" |
538 | +"Language-Team: \n" |
539 | +"MIME-Version: 1.0\n" |
540 | +"Content-Type: text/plain; charset=UTF-8\n" |
541 | +"Content-Transfer-Encoding: 8bit\n" |
542 | +"Plural-Forms: \n" |
543 | + |
544 | +#. module: account_due_list |
545 | +#: view:account.move.line:0 |
546 | +msgid "Receivable" |
547 | +msgstr "Crediti" |
548 | + |
549 | +#. module: account_due_list |
550 | +#: field:account.move.line,payment_term_id:0 |
551 | +msgid "Payment Term" |
552 | +msgstr "Termini di pagamento" |
553 | + |
554 | +#. module: account_due_list |
555 | +#: view:account.move.line:0 |
556 | +msgid "Unreconciled" |
557 | +msgstr "Non riconciliate" |
558 | + |
559 | +#. module: account_due_list |
560 | +#: view:account.move.line:0 |
561 | +msgid "Group By..." |
562 | +msgstr "Raggruppa per..." |
563 | + |
564 | +#. module: account_due_list |
565 | +#: field:account.move.line,invoice_origin:0 |
566 | +msgid "Source Doc" |
567 | +msgstr "Documento di origine" |
568 | + |
569 | +#. module: account_due_list |
570 | +#: field:account.move.line,invoice_date:0 |
571 | +msgid "Invoice Date" |
572 | +msgstr "Data fattura" |
573 | + |
574 | +#. module: account_due_list |
575 | +#: code:addons/account_due_list/account_move_line.py:37 |
576 | +#, python-format |
577 | +msgid "Incongruent data: move %s has more than one invoice" |
578 | +msgstr "Dati incongruenti: la registrazione %s ha più di una fattura" |
579 | + |
580 | +#. module: account_due_list |
581 | +#: view:account.move.line:0 |
582 | +msgid "Payable" |
583 | +msgstr "Debiti" |
584 | + |
585 | +#. module: account_due_list |
586 | +#: view:account.move.line:0 |
587 | +msgid "Search Payments" |
588 | +msgstr "Ricerca pagamenti" |
589 | + |
590 | +#. module: account_due_list |
591 | +#: model:ir.model,name:account_due_list.model_account_move_line |
592 | +msgid "Journal Items" |
593 | +msgstr "Voci sezionale" |
594 | + |
595 | +#. module: account_due_list |
596 | +#: constraint:account.move.line:0 |
597 | +msgid "Company must be same for its related account and period." |
598 | +msgstr "L'azienda deve essere la stessa del suo conto e periodo." |
599 | + |
600 | +#. module: account_due_list |
601 | +#: view:account.move.line:0 |
602 | +msgid "Total Credit" |
603 | +msgstr "Credito totale" |
604 | + |
605 | +#. module: account_due_list |
606 | +#: constraint:account.move.line:0 |
607 | +msgid "You can not create move line on closed account." |
608 | +msgstr "Nonè possibile creare movimenti su un conto chiuso." |
609 | + |
610 | +#. module: account_due_list |
611 | +#: view:account.move.line:0 |
612 | +msgid "Total Debit" |
613 | +msgstr "Debito totale" |
614 | + |
615 | +#. module: account_due_list |
616 | +#: sql_constraint:account.move.line:0 |
617 | +msgid "Wrong credit or debit value in accounting entry !" |
618 | +msgstr "Valore di debito o credito errato nella registrazione contabile" |
619 | + |
620 | +#. module: account_due_list |
621 | +#: view:account.move.line:0 |
622 | +#: model:ir.actions.act_window,name:account_due_list.action_invoice_payments |
623 | +#: model:ir.ui.menu,name:account_due_list.menu_action_invoice_payments |
624 | +msgid "Payments" |
625 | +msgstr "Pagamenti" |
626 | + |
627 | +#. module: account_due_list |
628 | +#: code:addons/account_due_list/account_move_line.py:37 |
629 | +#, python-format |
630 | +msgid "Error" |
631 | +msgstr "Errore" |
632 | + |
633 | +#. module: account_due_list |
634 | +#: model:ir.module.module,description:account_due_list.module_meta_information |
635 | +msgid "A due list of pending payments. The list contains every expected payment, generated by invoices. The list is fully filterable." |
636 | +msgstr "A due list of pending payments. The list contains every expected payment, generated by invoices. The list is fully filterable." |
637 | + |
638 | +#. module: account_due_list |
639 | +#: view:account.move.line:0 |
640 | +msgid "Overdue" |
641 | +msgstr "Scaduti" |
642 | + |
643 | +#. module: account_due_list |
644 | +#: view:account.move.line:0 |
645 | +msgid "Due date" |
646 | +msgstr "Data scadenza" |
647 | + |
648 | +#. module: account_due_list |
649 | +#: model:ir.module.module,shortdesc:account_due_list.module_meta_information |
650 | +msgid "Payments Due list" |
651 | +msgstr "Scadenzario pagamenti" |
652 | + |
653 | +#. module: account_due_list |
654 | +#: field:account.move.line,day:0 |
655 | +msgid "Day" |
656 | +msgstr "Giorno" |
657 | + |
658 | +#. module: account_due_list |
659 | +#: view:account.move.line:0 |
660 | +msgid "Month" |
661 | +msgstr "Mese" |
662 | + |
663 | +#. module: account_due_list |
664 | +#: view:account.move.line:0 |
665 | +#: field:account.move.line,stored_invoice_id:0 |
666 | +msgid "Invoice" |
667 | +msgstr "Fattura" |
668 | + |
669 | +#. module: account_due_list |
670 | +#: view:account.move.line:0 |
671 | +msgid "Partner" |
672 | +msgstr "Partner" |
673 | + |
674 | +#. module: account_due_list |
675 | +#: field:account.move.line,partner_ref:0 |
676 | +msgid "Partner Ref" |
677 | +msgstr "Rif Partner" |
678 | + |
679 | +#. module: account_due_list |
680 | +#: constraint:account.move.line:0 |
681 | +msgid "You can not create move line on view account." |
682 | +msgstr "Non è possibile creare movimenti su conti vista." |
683 | + |
684 | |
685 | === added file 'account_due_list/payment_view.xml' |
686 | --- account_due_list/payment_view.xml 1970-01-01 00:00:00 +0000 |
687 | +++ account_due_list/payment_view.xml 2013-12-20 16:17:10 +0000 |
688 | @@ -0,0 +1,76 @@ |
689 | +<?xml version="1.0" encoding="utf-8"?> |
690 | +<openerp> |
691 | +<data> |
692 | + |
693 | + <!--****************************** PAYMENTS ***********************************--> |
694 | + <record id="view_payments_tree" model="ir.ui.view"> |
695 | + <field name="name">Payments</field> |
696 | + <field name="model">account.move.line</field> |
697 | + <field name="field_parent">partner_id</field> |
698 | + <field name="priority" eval="20"/> |
699 | + <field name="arch" type="xml"> |
700 | + <tree string="Payments" colors="grey:reconcile_id!=False;red:date_maturity<current_date"> |
701 | + <field name="stored_invoice_id" readonly="1"/> |
702 | + <field name="invoice_date" readonly="1"/> |
703 | + <field name="invoice_origin" readonly="1"/> |
704 | + <field name="partner_id" readonly="1"/> |
705 | + <field name="partner_ref" readonly="1"/> |
706 | + <field name="payment_term_id" readonly="1"/> |
707 | + <field name="account_id" readonly="1"/> |
708 | + <field name="debit" readonly="1" sum="Total Debit"/> |
709 | + <field name="credit" readonly="1" sum="Total Credit"/> |
710 | + <field name="date_maturity"/> |
711 | + <field name="move_id" readonly="1"/> |
712 | + <field name="reconcile_id" readonly="1"/> |
713 | + <field name="reconcile_partial_id" readonly="1"/> |
714 | + <field name="day" invisible="1"/> |
715 | + </tree> |
716 | + </field> |
717 | + </record> |
718 | + |
719 | + <record id="view_payments_filter" model="ir.ui.view"> |
720 | + <field name="name">Payments Select</field> |
721 | + <field name="model">account.move.line</field> |
722 | + <field name="priority" eval="20"/> |
723 | + <field name="arch" type="xml"> |
724 | + <search string="Search Payments"> |
725 | + <group col='10' colspan='4'> |
726 | + <filter icon="terp-sale" string="Receivable" domain="[('account_id.type','=','receivable')]" help="Receivable payments"/> |
727 | + <filter icon="terp-purchase" string="Payable" domain="[('account_id.type','=','payable')]" help="Payable payments"/> |
728 | + <separator orientation="vertical"/> |
729 | + <filter icon="terp-dolar_ok!" string="Unreconciled" domain="[('reconcile_id','=',False)]" help="Unreconciled payments"/> |
730 | + <separator orientation="vertical"/> |
731 | + <filter icon="terp-go-today" string="Overdue" domain="[('date_maturity','<',time.strftime('%%Y-%%m-%%d'))]" help="Overdue payments" name="overdue"/> |
732 | + <separator orientation="vertical"/> |
733 | + <field name="account_id"/> |
734 | + <field name="partner_id"/> |
735 | + <field name="invoice"/> |
736 | + <field name="invoice_origin"/> |
737 | + <field name="date_maturity"/> |
738 | + </group> |
739 | + <newline/> |
740 | + <group expand="0" string="Group By..."> |
741 | + <filter string="Partner" icon="terp-partner" domain="[]" context="{'group_by':'partner_id'}"/> |
742 | + <filter string="Invoice" icon="terp-folder-orange" domain="[]" context="{'group_by':'stored_invoice_id'}"/> |
743 | + <filter string="Due date" icon="terp-go-today" domain="[]" context="{'group_by':'day'}"/> |
744 | + <filter string="Month" icon="terp-go-month" domain="[]" context="{'group_by':'date_maturity'}"/> |
745 | + </group> |
746 | + </search> |
747 | + </field> |
748 | + </record> |
749 | + |
750 | + <!-- Invoice Payments --> |
751 | + <record model="ir.actions.act_window" id="action_invoice_payments"> |
752 | + <field name="name">Invoice payments</field> |
753 | + <field name="res_model">account.move.line</field> |
754 | + <field name="view_type">form</field> |
755 | + <field name="view_mode">tree,form</field> |
756 | + <field name="view_id" ref="view_payments_tree"/> |
757 | + <field name="search_view_id" ref="view_payments_filter"/> |
758 | + <field name="domain">[('account_id.type','in',['receivable','payable']),('invoice','<>',False)]</field> |
759 | + </record> |
760 | + |
761 | + <menuitem name="Invoice payments" parent="account.menu_finance_entries" action="action_invoice_payments" id="menu_action_invoice_payments" sequence="5"/> |
762 | + |
763 | +</data> |
764 | +</openerp> |
Hello Alex,
Thanks for your contribution.
Can you add the pot file and fix your PEP8 issues given by flake8 (you have spaces before ':') ?