Merge lp:~nicolariolini/openobject-italia/add_invoice_report_aeroo_70 into lp:~openobject-italia-core-devs/openobject-italia/italian-addons-7.0
- add_invoice_report_aeroo_70
- Merge into italian-addons-7.0
Status: | Needs review |
---|---|
Proposed branch: | lp:~nicolariolini/openobject-italia/add_invoice_report_aeroo_70 |
Merge into: | lp:~openobject-italia-core-devs/openobject-italia/italian-addons-7.0 |
Diff against target: |
443 lines (+399/-0) 8 files modified
l10n_it_invoice_report_aeroo/AUTHORS.txt (+1/-0) l10n_it_invoice_report_aeroo/__init__.py (+28/-0) l10n_it_invoice_report_aeroo/__openerp__.py (+54/-0) l10n_it_invoice_report_aeroo/i18n/it.po (+182/-0) l10n_it_invoice_report_aeroo/invoice.py (+44/-0) l10n_it_invoice_report_aeroo/report/__init__.py (+27/-0) l10n_it_invoice_report_aeroo/report/invoice_parser.py (+34/-0) l10n_it_invoice_report_aeroo/report/invoice_report.xml (+29/-0) |
To merge this branch: | bzr merge lp:~nicolariolini/openobject-italia/add_invoice_report_aeroo_70 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Lorenzo Battistini | Needs Information | ||
Review via email:
|
Commit message
Description of the change
Modulo per stampa fattura in formato Aeroo. Utilizzare come base di partenza per i ritocchi al posto della stampa di defaulf in RML
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Nicola Riolini - Micronaet (nicolariolini) wrote : | # |
Ciao Lorenzo,
Ok su tutta la linea
1. Codice fiscale: aggiungo la dipendenza anche al modulo che lo introduce
2. Ok, traduco e provo a metterli in it.po
3. Di solito usavo il get_label lo reputavo più comodo che creare tutte le traduzioni dove sono già presenti in label (la stampa divenda di fatto simile alla videata), non c'è problema però; tra l'altro avevo fatto inizialmente una versione con il _() (in effetti alcuni termini non mi piacevano :) )
Nota: è meglio chiamarlo account_
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lorenzo Battistini (elbati) wrote : | # |
On 11/06/2013 08:47 PM, Nicola Riolini - Micronaet wrote:
> Ciao Lorenzo,
> Ok su tutta la linea
> 1. Codice fiscale: aggiungo la dipendenza anche al modulo che lo introduce
Aggiungo una nota: non so se volessi fare un modulo generico oppure
specificamente italiano. Nel primo caso, il CF non è necessario.
Nel secondo sì.
> 2. Ok, traduco e provo a metterli in it.po
> 3. Di solito usavo il get_label lo reputavo più comodo che creare tutte le traduzioni dove sono già presenti in label (la stampa divenda di fatto simile alla videata), non c'è problema però; tra l'altro avevo fatto inizialmente una versione con il _() (in effetti alcuni termini non mi piacevano :) )
Come preferisci, chiedevo come chiarimento.
Non disapproverò se usi il get_label ;-)
>
> Nota: è meglio chiamarlo account_
A questo punto, se gli aggiungi cose specifiche italiane (il CF), puoi
anche aggiungere il prefisso *l10n_it*:
*l10n_it_
*l10n_it_
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Nicola Riolini - Micronaet (nicolariolini) wrote : | # |
Grazie Lorenzo per delucidazioni:
1. Metto il CF se non trovo VAT, l'idea era un modulo da cui partire per la localizzazione italiana
3. Non convinceva neppure a me il get_label, ora però ricordo perchè non uso _(): a volte non mi traduce :), appena ho finito di litigarci ripubblico (mi sa che dovrò inserire i termini a mano in it.po...)
Nota: aggiudicato l10n_it_
P.S. Se faccio un "Delete proposal merge" si perde questa chiacchierata?
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lorenzo Battistini (elbati) wrote : | # |
On 11/07/2013 09:08 AM, Nicola Riolini - Micronaet wrote:
> Grazie Lorenzo per delucidazioni:
>
> 1. Metto il CF se non trovo VAT, l'idea era un modulo da cui partire per la localizzazione italiana
> 3. Non convinceva neppure a me il get_label, ora però ricordo perchè non uso _(): a volte non mi traduce :), appena ho finito di litigarci ripubblico (mi sa che dovrò inserire i termini a mano in it.po...)
E' un problema noto di aeroo?
>
> Nota: aggiudicato l10n_it_
>
> P.S. Se faccio un "Delete proposal merge" si perde questa chiacchierata?
Sì. Non fare delete.
Se aggiorni direttamente il branch
lp:~nicolariolini/openobject-italia/add_invoice_report_aeroo_70 , questa
proposal viene automaticamente aggiornata.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Nicola Riolini - Micronaet (nicolariolini) wrote : | # |
> E' un problema noto di aeroo?
Ma.. so che ho sempre dovuto litigare con sto metodo... in casi estremi diventava un select-case, però non dirlo a nessuno :)
> Se aggiorni direttamente il branch
> lp:~nicolariolini/openobject-italia/add_invoice_report_aeroo_70 , questa
> proposal viene automaticamente aggiornata.
Ri-grazie, scusa i dubbi stupidi ma lavorando da solo i merge non li ho mai sfruttati...
- 227. By Nicola Riolini - Micronaet
-
Rinominato il modulo
Messo _() al posto del get_label
Inserite le traduzioni nel it.poProblema residuo: non effettua le traduzioni pure essendo impostato it_IT
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Nicola Riolini - Micronaet (nicolariolini) wrote : | # |
Rinominato il modulo, ho inserito traduzioni e _() ma sembra piacergli di più la lingua inglese pure essendo correttamente impostata nell'ODT come it_IT :), appena trovo l'inghippo faccio sapere...
- 228. By Nicola Riolini - Micronaet
-
Normalizzato PEP8
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Lorenzo Battistini (elbati) wrote : | # |
This project is now hosted on https:/
Unmerged revisions
- 228. By Nicola Riolini - Micronaet
-
Normalizzato PEP8
- 227. By Nicola Riolini - Micronaet
-
Rinominato il modulo
Messo _() al posto del get_label
Inserite le traduzioni nel it.poProblema residuo: non effettua le traduzioni pure essendo impostato it_IT
- 226. By Nicola Riolini - Micronaet
-
Aggiunta modulo per stampare una fattura in formato Aeroo
Utilizzare come modello di partenza al posto dei files RML
Preview Diff
1 | === added directory 'l10n_it_invoice_report_aeroo' |
2 | === added file 'l10n_it_invoice_report_aeroo/AUTHORS.txt' |
3 | --- l10n_it_invoice_report_aeroo/AUTHORS.txt 1970-01-01 00:00:00 +0000 |
4 | +++ l10n_it_invoice_report_aeroo/AUTHORS.txt 2013-11-08 10:02:45 +0000 |
5 | @@ -0,0 +1,1 @@ |
6 | +Nicola Riolini <riolini@micronaet.it> |
7 | |
8 | === added file 'l10n_it_invoice_report_aeroo/__init__.py' |
9 | --- l10n_it_invoice_report_aeroo/__init__.py 1970-01-01 00:00:00 +0000 |
10 | +++ l10n_it_invoice_report_aeroo/__init__.py 2013-11-08 10:02:45 +0000 |
11 | @@ -0,0 +1,28 @@ |
12 | +#!/usr/bin/python |
13 | +# -*- coding: utf-8 -*- |
14 | +############################################################################## |
15 | +# |
16 | +# Copyright (C) 2010-2012 Associazione OpenERP Italia |
17 | +# (<http://www.openerp-italia.org>). |
18 | +# Copyright(c)2008-2010 SIA "KN dati". |
19 | +# (http://kndati.lv) All Rights Reserved. General contacts <info@kndati.lv> |
20 | +# |
21 | +# This program is free software: you can redistribute it and/or modify |
22 | +# it under the terms of the GNU Affero General Public License as published by |
23 | +# the Free Software Foundation, either version 3 of the License, or |
24 | +# (at your option) any later version. |
25 | +# |
26 | +# This program is distributed in the hope that it will be useful, |
27 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
28 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
29 | +# GNU General Public License for more details. |
30 | +# |
31 | +# You should have received a copy of the GNU Affero General Public License |
32 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
33 | +# |
34 | +############################################################################## |
35 | + |
36 | +import invoice |
37 | +import report |
38 | + |
39 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
40 | |
41 | === added file 'l10n_it_invoice_report_aeroo/__openerp__.py' |
42 | --- l10n_it_invoice_report_aeroo/__openerp__.py 1970-01-01 00:00:00 +0000 |
43 | +++ l10n_it_invoice_report_aeroo/__openerp__.py 2013-11-08 10:02:45 +0000 |
44 | @@ -0,0 +1,54 @@ |
45 | +#!/usr/bin/python |
46 | +# -*- coding: utf-8 -*- |
47 | +############################################################################## |
48 | +# |
49 | +# Copyright (C) 2010-2012 Associazione OpenERP Italia |
50 | +# (<http://www.openerp-italia.org>). |
51 | +# Copyright(c)2008-2010 SIA "KN dati". |
52 | +# (http://kndati.lv) All Rights Reserved. General contacts <info@kndati.lv> |
53 | +# |
54 | +# This program is free software: you can redistribute it and/or modify |
55 | +# it under the terms of the GNU Affero General Public License as published by |
56 | +# the Free Software Foundation, either version 3 of the License, or |
57 | +# (at your option) any later version. |
58 | +# |
59 | +# This program is distributed in the hope that it will be useful, |
60 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
61 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
62 | +# GNU General Public License for more details. |
63 | +# |
64 | +# You should have received a copy of the GNU Affero General Public License |
65 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
66 | +# |
67 | +############################################################################## |
68 | + |
69 | +{ |
70 | + 'name': 'Italian localization - Invoice report aeroo', |
71 | + 'version': '0.1', |
72 | + 'category': 'Localization/Italy/Reporting', |
73 | + 'description': """Base invoice in Aeroo: |
74 | + |
75 | + This invoice report is a model for start your invoice |
76 | + The module also replace action for print the report |
77 | + in the workflow button |
78 | + |
79 | + Remember to manually change report in template used for |
80 | + send e-mail |
81 | + """, |
82 | + 'author': 'OpenERP Italian Community', |
83 | + 'website': 'http://www.openerp-italia.org', |
84 | + 'license': 'AGPL-3', |
85 | + 'depends': ['base', |
86 | + 'account', |
87 | + 'l10n_it_fiscalcode', |
88 | + 'report_aeroo', |
89 | + 'report_aeroo_ooo', ], |
90 | + 'init_xml': [], |
91 | + 'update_xml': ['report/invoice_report.xml', ], |
92 | + 'demo_xml': [], |
93 | + 'test': [], |
94 | + 'active': False, |
95 | + 'installable': True, |
96 | +} |
97 | + |
98 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
99 | |
100 | === added directory 'l10n_it_invoice_report_aeroo/i18n' |
101 | === added file 'l10n_it_invoice_report_aeroo/i18n/it.po' |
102 | --- l10n_it_invoice_report_aeroo/i18n/it.po 1970-01-01 00:00:00 +0000 |
103 | +++ l10n_it_invoice_report_aeroo/i18n/it.po 2013-11-08 10:02:45 +0000 |
104 | @@ -0,0 +1,182 @@ |
105 | +# Translation of OpenERP Server. |
106 | +# This file contains the translation of the following modules: |
107 | +# * l10n_it_invoice_report_aeroo |
108 | +# |
109 | +msgid "" |
110 | +msgstr "" |
111 | +"Project-Id-Version: OpenERP Server 7.0\n" |
112 | +"Report-Msgid-Bugs-To: \n" |
113 | +"POT-Creation-Date: 2013-11-07 09:42+0000\n" |
114 | +"PO-Revision-Date: 2013-11-07 09:42+0000\n" |
115 | +"Last-Translator: <nicola.riolini@gmail.com>\n" |
116 | +"Language-Team: OpenERP - Italian Comunity Translators\n" |
117 | +"MIME-Version: 1.0\n" |
118 | +"Content-Type: text/plain; charset=UTF-8\n" |
119 | +"Content-Transfer-Encoding: \n" |
120 | +"Plural-Forms: \n" |
121 | + |
122 | +#. module: l10n_it_invoice_report_aeroo |
123 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
124 | +msgid "Net amount" |
125 | +msgstr "Imponibile" |
126 | + |
127 | +#. module: l10n_it_invoice_report_aeroo |
128 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
129 | +msgid "E-mail" |
130 | +msgstr "E-mail" |
131 | + |
132 | +#. module: l10n_it_invoice_report_aeroo |
133 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
134 | +msgid "Website" |
135 | +msgstr "Sito web" |
136 | + |
137 | +#. module: l10n_it_invoice_report_aeroo |
138 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
139 | +msgid "Fax" |
140 | +msgstr "Fax" |
141 | + |
142 | +#. module: l10n_it_invoice_report_aeroo |
143 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
144 | +msgid "Address" |
145 | +msgstr "Indirizzo" |
146 | + |
147 | +#. module: l10n_it_invoice_report_aeroo |
148 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
149 | +msgid "Discount" |
150 | +msgstr "Discount" |
151 | + |
152 | +#. module: l10n_it_invoice_report_aeroo |
153 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
154 | +msgid "Phone" |
155 | +msgstr "Telefono" |
156 | + |
157 | +#. module: l10n_it_invoice_report_aeroo |
158 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
159 | +msgid "INVOICE" |
160 | +msgstr "FATTURA" |
161 | + |
162 | +#. module: l10n_it_invoice_report_aeroo |
163 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
164 | +msgid "INVOICE:" |
165 | +msgstr "FATTURA:" |
166 | + |
167 | +#. module: l10n_it_invoice_report_aeroo |
168 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
169 | +msgid "DRAFT INVOICE:" |
170 | +msgstr "BOZZA FATTURA:" |
171 | + |
172 | +#. module: l10n_it_invoice_report_aeroo |
173 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
174 | +msgid "PROFORMA INVOICE:" |
175 | +msgstr "FATTURA PROFORMA:" |
176 | + |
177 | +#. module: l10n_it_invoice_report_aeroo |
178 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
179 | +msgid "CANCELED INVOICE:" |
180 | +msgstr "FATTURA ANNULLATA:" |
181 | + |
182 | +#. module: l10n_it_invoice_report_aeroo |
183 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
184 | +msgid "REFUND:" |
185 | +msgstr "RESO:" |
186 | + |
187 | +#. module: l10n_it_invoice_report_aeroo |
188 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
189 | +msgid "SUPPLIER REFUND:" |
190 | +msgstr "RESO FORNITORE:" |
191 | + |
192 | +#. module: l10n_it_invoice_report_aeroo |
193 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
194 | +msgid "SUPPLIER INVOICE:" |
195 | +msgstr "FATTURA FORNITORE:" |
196 | + |
197 | +#. module: l10n_it_invoice_report_aeroo |
198 | +#: model:ir.actions.report.xml,name:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
199 | +msgid "Invoice report" |
200 | +msgstr "Report fattura" |
201 | + |
202 | +#. module: l10n_it_invoice_report_aeroo |
203 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
204 | +msgid "Ref." |
205 | +msgstr "Ref." |
206 | + |
207 | +#. module: l10n_it_invoice_report_aeroo |
208 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
209 | +msgid "Subtotal" |
210 | +msgstr "Subtotale" |
211 | + |
212 | +#. module: l10n_it_invoice_report_aeroo |
213 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
214 | +msgid "email" |
215 | +msgstr "email" |
216 | + |
217 | +#. module: l10n_it_invoice_report_aeroo |
218 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
219 | +msgid "Payment terms" |
220 | +msgstr "Termini di pagamento" |
221 | + |
222 | +#. module: l10n_it_invoice_report_aeroo |
223 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
224 | +msgid "Total amount" |
225 | +msgstr "Importo totale" |
226 | + |
227 | +#. module: l10n_it_invoice_report_aeroo |
228 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
229 | +msgid "Invoice date" |
230 | +msgstr "Data fattura" |
231 | + |
232 | +#. module: l10n_it_invoice_report_aeroo |
233 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
234 | +msgid "Product" |
235 | +msgstr "Prodotto" |
236 | + |
237 | +#. module: l10n_it_invoice_report_aeroo |
238 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
239 | +msgid "Bank BIC" |
240 | +msgstr "BIC" |
241 | + |
242 | +#. module: l10n_it_invoice_report_aeroo |
243 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
244 | +msgid "VAT" |
245 | +msgstr "P.IVA" |
246 | + |
247 | +#. module: l10n_it_invoice_report_aeroo |
248 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
249 | +msgid "Quantity" |
250 | +msgstr "Quantità" |
251 | + |
252 | +#. module: l10n_it_invoice_report_aeroo |
253 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
254 | +msgid "Comment" |
255 | +msgstr "Commento" |
256 | + |
257 | +#. module: l10n_it_invoice_report_aeroo |
258 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
259 | +msgid "Due date" |
260 | +msgstr "Data scadenza" |
261 | + |
262 | +#. module: l10n_it_invoice_report_aeroo |
263 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
264 | +msgid "Tax amount" |
265 | +msgstr "IVA" |
266 | + |
267 | +#. module: l10n_it_invoice_report_aeroo |
268 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
269 | +msgid "Tax" |
270 | +msgstr "IVA" |
271 | + |
272 | +#. module: l10n_it_invoice_report_aeroo |
273 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
274 | +msgid "Unit price" |
275 | +msgstr "Prezzo unitario" |
276 | + |
277 | +#. module: l10n_it_invoice_report_aeroo |
278 | +#: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id |
279 | +msgid "Bank" |
280 | +msgstr "Banca" |
281 | + |
282 | +#. module: l10n_it_invoice_report_aeroo |
283 | +#: model:ir.model,name:l10n_it_invoice_report_aeroo.model_account_invoice |
284 | +msgid "Invoice" |
285 | +msgstr "Fattura" |
286 | + |
287 | |
288 | === added file 'l10n_it_invoice_report_aeroo/invoice.py' |
289 | --- l10n_it_invoice_report_aeroo/invoice.py 1970-01-01 00:00:00 +0000 |
290 | +++ l10n_it_invoice_report_aeroo/invoice.py 2013-11-08 10:02:45 +0000 |
291 | @@ -0,0 +1,44 @@ |
292 | +#!/usr/bin/python |
293 | +# -*- coding: utf-8 -*- |
294 | +############################################################################## |
295 | +# |
296 | +# Copyright (C) 2010-2012 Associazione OpenERP Italia |
297 | +# (<http://www.openerp-italia.org>). |
298 | +# Copyright(c)2008-2010 SIA "KN dati". |
299 | +# (http://kndati.lv) All Rights Reserved. General contacts <info@kndati.lv> |
300 | +# |
301 | +# This program is free software: you can redistribute it and/or modify |
302 | +# it under the terms of the GNU Affero General Public License as published by |
303 | +# the Free Software Foundation, either version 3 of the License, or |
304 | +# (at your option) any later version. |
305 | +# |
306 | +# This program is distributed in the hope that it will be useful, |
307 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
308 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
309 | +# GNU General Public License for more details. |
310 | +# |
311 | +# You should have received a copy of the GNU Affero General Public License |
312 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
313 | +# |
314 | +############################################################################## |
315 | + |
316 | +from osv import osv, fields |
317 | + |
318 | + |
319 | +class account_invoice(osv.osv): |
320 | + ''' Override send invoice function |
321 | + ''' |
322 | + _name = 'account.invoice' |
323 | + _inherit = 'account.invoice' |
324 | + |
325 | + def invoice_print(self, cr, uid, ids, context=None): |
326 | + ''' Override invoice_print function |
327 | + ''' |
328 | + res = super(account_invoice, |
329 | + self).invoice_print(cr, uid, ids, context=context) |
330 | + |
331 | + # replace report name: |
332 | + res['report_name'] = 'custom_account_invoice_report' |
333 | + return res |
334 | + |
335 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
336 | |
337 | === added directory 'l10n_it_invoice_report_aeroo/report' |
338 | === added file 'l10n_it_invoice_report_aeroo/report/__init__.py' |
339 | --- l10n_it_invoice_report_aeroo/report/__init__.py 1970-01-01 00:00:00 +0000 |
340 | +++ l10n_it_invoice_report_aeroo/report/__init__.py 2013-11-08 10:02:45 +0000 |
341 | @@ -0,0 +1,27 @@ |
342 | +#!/usr/bin/python |
343 | +# -*- coding: utf-8 -*- |
344 | +############################################################################## |
345 | +# |
346 | +# Copyright (C) 2010-2012 Associazione OpenERP Italia |
347 | +# (<http://www.openerp-italia.org>). |
348 | +# Copyright(c)2008-2010 SIA "KN dati". |
349 | +# (http://kndati.lv) All Rights Reserved. General contacts <info@kndati.lv> |
350 | +# |
351 | +# This program is free software: you can redistribute it and/or modify |
352 | +# it under the terms of the GNU Affero General Public License as published by |
353 | +# the Free Software Foundation, either version 3 of the License, or |
354 | +# (at your option) any later version. |
355 | +# |
356 | +# This program is distributed in the hope that it will be useful, |
357 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
358 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
359 | +# GNU General Public License for more details. |
360 | +# |
361 | +# You should have received a copy of the GNU Affero General Public License |
362 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
363 | +# |
364 | +############################################################################## |
365 | + |
366 | +import invoice_parser |
367 | + |
368 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
369 | |
370 | === added file 'l10n_it_invoice_report_aeroo/report/invoice.odt' |
371 | Binary files l10n_it_invoice_report_aeroo/report/invoice.odt 1970-01-01 00:00:00 +0000 and l10n_it_invoice_report_aeroo/report/invoice.odt 2013-11-08 10:02:45 +0000 differ |
372 | === added file 'l10n_it_invoice_report_aeroo/report/invoice_parser.py' |
373 | --- l10n_it_invoice_report_aeroo/report/invoice_parser.py 1970-01-01 00:00:00 +0000 |
374 | +++ l10n_it_invoice_report_aeroo/report/invoice_parser.py 2013-11-08 10:02:45 +0000 |
375 | @@ -0,0 +1,34 @@ |
376 | +#!/usr/bin/python |
377 | +# -*- coding: utf-8 -*- |
378 | +############################################################################## |
379 | +# |
380 | +# Copyright (C) 2010-2012 Associazione OpenERP Italia |
381 | +# (<http://www.openerp-italia.org>). |
382 | +# Copyright(c)2008-2010 SIA "KN dati". |
383 | +# (http://kndati.lv) All Rights Reserved. General contacts <info@kndati.lv> |
384 | +# |
385 | +# This program is free software: you can redistribute it and/or modify |
386 | +# it under the terms of the GNU Affero General Public License as published by |
387 | +# the Free Software Foundation, either version 3 of the License, or |
388 | +# (at your option) any later version. |
389 | +# |
390 | +# This program is distributed in the hope that it will be useful, |
391 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
392 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
393 | +# GNU General Public License for more details. |
394 | +# |
395 | +# You should have received a copy of the GNU Affero General Public License |
396 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
397 | +# |
398 | +############################################################################## |
399 | + |
400 | +from report import report_sxw |
401 | +from report.report_sxw import rml_parse |
402 | + |
403 | + |
404 | +class Parser(report_sxw.rml_parse): |
405 | + def __init__(self, cr, uid, name, context): |
406 | + super(Parser, self).__init__(cr, uid, name, context) |
407 | + self.localcontext.update({}) |
408 | + |
409 | +# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: |
410 | |
411 | === added file 'l10n_it_invoice_report_aeroo/report/invoice_report.xml' |
412 | --- l10n_it_invoice_report_aeroo/report/invoice_report.xml 1970-01-01 00:00:00 +0000 |
413 | +++ l10n_it_invoice_report_aeroo/report/invoice_report.xml 2013-11-08 10:02:45 +0000 |
414 | @@ -0,0 +1,29 @@ |
415 | +<?xml version="1.0"?> |
416 | +<openerp> |
417 | + <data noupdate="1"> |
418 | + <record id="aeroo_account_invoice_report_id" model="ir.actions.report.xml"> |
419 | + <field name="name">Invoice report</field> |
420 | + <field name="type">ir.actions.report.xml</field> |
421 | + <field name="model">account.invoice</field> |
422 | + <field name="report_name">custom_account_invoice_report</field> |
423 | + <field name="report_type">aeroo</field> |
424 | + <field name="in_format">oo-odt</field> |
425 | + <field name="out_format" eval="ref('report_aeroo_ooo.report_mimetypes_pdf_odt')" /> |
426 | + <field name="parser_loc">l10n_it_invoice_report_aeroo/report/invoice_parser.py</field> |
427 | + <field name="report_rml">l10n_it_invoice_report_aeroo/report/invoice.odt</field> |
428 | + <field name="parser_state">loc</field> |
429 | + <field name="tml_source">file</field> |
430 | + </record> |
431 | + |
432 | + <ir_set> |
433 | + <field eval="'action'" name="key"/> |
434 | + <field eval="'client_print_multi'" name="key2"/> |
435 | + <field eval="['account.invoice']" name="models"/> |
436 | + <field name="name">custom_account_invoice</field> |
437 | + <field eval="'ir.actions.report.xml,'+str(aeroo_account_invoice_report_id)" name="value"/> |
438 | + <field eval="True" name="isobject"/> |
439 | + <field eval="True" name="replace"/> |
440 | + </ir_set> |
441 | + </data> |
442 | +</openerp> |
443 | + |
Grazie Nico.
Alcune domande.
Come mai nel template di fattura non viene usato il codice fiscale? Per i clienti che non hanno P IVA dovrebbe essere stampato il codice fiscale.
Inoltre, nel template vedo alcuni termini in italiano e alcuni in inglese: "fattura", "bozza fattura", "refund"...
Bisognerebbe metterli tutti i inglese e poi tradurli nel it.po
Infine, come mai usi 'get_label' invece di stringhe traducibili ( con _() ) ?