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 | 1 | Nicola Riolini <riolini@micronaet.it> | ||
7 | 0 | 2 | ||
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 | 1 | #!/usr/bin/python | ||
13 | 2 | # -*- coding: utf-8 -*- | ||
14 | 3 | ############################################################################## | ||
15 | 4 | # | ||
16 | 5 | # Copyright (C) 2010-2012 Associazione OpenERP Italia | ||
17 | 6 | # (<http://www.openerp-italia.org>). | ||
18 | 7 | # Copyright(c)2008-2010 SIA "KN dati". | ||
19 | 8 | # (http://kndati.lv) All Rights Reserved. General contacts <info@kndati.lv> | ||
20 | 9 | # | ||
21 | 10 | # This program is free software: you can redistribute it and/or modify | ||
22 | 11 | # it under the terms of the GNU Affero General Public License as published by | ||
23 | 12 | # the Free Software Foundation, either version 3 of the License, or | ||
24 | 13 | # (at your option) any later version. | ||
25 | 14 | # | ||
26 | 15 | # This program is distributed in the hope that it will be useful, | ||
27 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
28 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
29 | 18 | # GNU General Public License for more details. | ||
30 | 19 | # | ||
31 | 20 | # You should have received a copy of the GNU Affero General Public License | ||
32 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
33 | 22 | # | ||
34 | 23 | ############################################################################## | ||
35 | 24 | |||
36 | 25 | import invoice | ||
37 | 26 | import report | ||
38 | 27 | |||
39 | 28 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
40 | 0 | 29 | ||
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 | 1 | #!/usr/bin/python | ||
46 | 2 | # -*- coding: utf-8 -*- | ||
47 | 3 | ############################################################################## | ||
48 | 4 | # | ||
49 | 5 | # Copyright (C) 2010-2012 Associazione OpenERP Italia | ||
50 | 6 | # (<http://www.openerp-italia.org>). | ||
51 | 7 | # Copyright(c)2008-2010 SIA "KN dati". | ||
52 | 8 | # (http://kndati.lv) All Rights Reserved. General contacts <info@kndati.lv> | ||
53 | 9 | # | ||
54 | 10 | # This program is free software: you can redistribute it and/or modify | ||
55 | 11 | # it under the terms of the GNU Affero General Public License as published by | ||
56 | 12 | # the Free Software Foundation, either version 3 of the License, or | ||
57 | 13 | # (at your option) any later version. | ||
58 | 14 | # | ||
59 | 15 | # This program is distributed in the hope that it will be useful, | ||
60 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
61 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
62 | 18 | # GNU General Public License for more details. | ||
63 | 19 | # | ||
64 | 20 | # You should have received a copy of the GNU Affero General Public License | ||
65 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
66 | 22 | # | ||
67 | 23 | ############################################################################## | ||
68 | 24 | |||
69 | 25 | { | ||
70 | 26 | 'name': 'Italian localization - Invoice report aeroo', | ||
71 | 27 | 'version': '0.1', | ||
72 | 28 | 'category': 'Localization/Italy/Reporting', | ||
73 | 29 | 'description': """Base invoice in Aeroo: | ||
74 | 30 | |||
75 | 31 | This invoice report is a model for start your invoice | ||
76 | 32 | The module also replace action for print the report | ||
77 | 33 | in the workflow button | ||
78 | 34 | |||
79 | 35 | Remember to manually change report in template used for | ||
80 | 36 | send e-mail | ||
81 | 37 | """, | ||
82 | 38 | 'author': 'OpenERP Italian Community', | ||
83 | 39 | 'website': 'http://www.openerp-italia.org', | ||
84 | 40 | 'license': 'AGPL-3', | ||
85 | 41 | 'depends': ['base', | ||
86 | 42 | 'account', | ||
87 | 43 | 'l10n_it_fiscalcode', | ||
88 | 44 | 'report_aeroo', | ||
89 | 45 | 'report_aeroo_ooo', ], | ||
90 | 46 | 'init_xml': [], | ||
91 | 47 | 'update_xml': ['report/invoice_report.xml', ], | ||
92 | 48 | 'demo_xml': [], | ||
93 | 49 | 'test': [], | ||
94 | 50 | 'active': False, | ||
95 | 51 | 'installable': True, | ||
96 | 52 | } | ||
97 | 53 | |||
98 | 54 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
99 | 0 | 55 | ||
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 | 1 | # Translation of OpenERP Server. | ||
106 | 2 | # This file contains the translation of the following modules: | ||
107 | 3 | # * l10n_it_invoice_report_aeroo | ||
108 | 4 | # | ||
109 | 5 | msgid "" | ||
110 | 6 | msgstr "" | ||
111 | 7 | "Project-Id-Version: OpenERP Server 7.0\n" | ||
112 | 8 | "Report-Msgid-Bugs-To: \n" | ||
113 | 9 | "POT-Creation-Date: 2013-11-07 09:42+0000\n" | ||
114 | 10 | "PO-Revision-Date: 2013-11-07 09:42+0000\n" | ||
115 | 11 | "Last-Translator: <nicola.riolini@gmail.com>\n" | ||
116 | 12 | "Language-Team: OpenERP - Italian Comunity Translators\n" | ||
117 | 13 | "MIME-Version: 1.0\n" | ||
118 | 14 | "Content-Type: text/plain; charset=UTF-8\n" | ||
119 | 15 | "Content-Transfer-Encoding: \n" | ||
120 | 16 | "Plural-Forms: \n" | ||
121 | 17 | |||
122 | 18 | #. module: l10n_it_invoice_report_aeroo | ||
123 | 19 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
124 | 20 | msgid "Net amount" | ||
125 | 21 | msgstr "Imponibile" | ||
126 | 22 | |||
127 | 23 | #. module: l10n_it_invoice_report_aeroo | ||
128 | 24 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
129 | 25 | msgid "E-mail" | ||
130 | 26 | msgstr "E-mail" | ||
131 | 27 | |||
132 | 28 | #. module: l10n_it_invoice_report_aeroo | ||
133 | 29 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
134 | 30 | msgid "Website" | ||
135 | 31 | msgstr "Sito web" | ||
136 | 32 | |||
137 | 33 | #. module: l10n_it_invoice_report_aeroo | ||
138 | 34 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
139 | 35 | msgid "Fax" | ||
140 | 36 | msgstr "Fax" | ||
141 | 37 | |||
142 | 38 | #. module: l10n_it_invoice_report_aeroo | ||
143 | 39 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
144 | 40 | msgid "Address" | ||
145 | 41 | msgstr "Indirizzo" | ||
146 | 42 | |||
147 | 43 | #. module: l10n_it_invoice_report_aeroo | ||
148 | 44 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
149 | 45 | msgid "Discount" | ||
150 | 46 | msgstr "Discount" | ||
151 | 47 | |||
152 | 48 | #. module: l10n_it_invoice_report_aeroo | ||
153 | 49 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
154 | 50 | msgid "Phone" | ||
155 | 51 | msgstr "Telefono" | ||
156 | 52 | |||
157 | 53 | #. module: l10n_it_invoice_report_aeroo | ||
158 | 54 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
159 | 55 | msgid "INVOICE" | ||
160 | 56 | msgstr "FATTURA" | ||
161 | 57 | |||
162 | 58 | #. module: l10n_it_invoice_report_aeroo | ||
163 | 59 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
164 | 60 | msgid "INVOICE:" | ||
165 | 61 | msgstr "FATTURA:" | ||
166 | 62 | |||
167 | 63 | #. module: l10n_it_invoice_report_aeroo | ||
168 | 64 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
169 | 65 | msgid "DRAFT INVOICE:" | ||
170 | 66 | msgstr "BOZZA FATTURA:" | ||
171 | 67 | |||
172 | 68 | #. module: l10n_it_invoice_report_aeroo | ||
173 | 69 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
174 | 70 | msgid "PROFORMA INVOICE:" | ||
175 | 71 | msgstr "FATTURA PROFORMA:" | ||
176 | 72 | |||
177 | 73 | #. module: l10n_it_invoice_report_aeroo | ||
178 | 74 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
179 | 75 | msgid "CANCELED INVOICE:" | ||
180 | 76 | msgstr "FATTURA ANNULLATA:" | ||
181 | 77 | |||
182 | 78 | #. module: l10n_it_invoice_report_aeroo | ||
183 | 79 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
184 | 80 | msgid "REFUND:" | ||
185 | 81 | msgstr "RESO:" | ||
186 | 82 | |||
187 | 83 | #. module: l10n_it_invoice_report_aeroo | ||
188 | 84 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
189 | 85 | msgid "SUPPLIER REFUND:" | ||
190 | 86 | msgstr "RESO FORNITORE:" | ||
191 | 87 | |||
192 | 88 | #. module: l10n_it_invoice_report_aeroo | ||
193 | 89 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
194 | 90 | msgid "SUPPLIER INVOICE:" | ||
195 | 91 | msgstr "FATTURA FORNITORE:" | ||
196 | 92 | |||
197 | 93 | #. module: l10n_it_invoice_report_aeroo | ||
198 | 94 | #: model:ir.actions.report.xml,name:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
199 | 95 | msgid "Invoice report" | ||
200 | 96 | msgstr "Report fattura" | ||
201 | 97 | |||
202 | 98 | #. module: l10n_it_invoice_report_aeroo | ||
203 | 99 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
204 | 100 | msgid "Ref." | ||
205 | 101 | msgstr "Ref." | ||
206 | 102 | |||
207 | 103 | #. module: l10n_it_invoice_report_aeroo | ||
208 | 104 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
209 | 105 | msgid "Subtotal" | ||
210 | 106 | msgstr "Subtotale" | ||
211 | 107 | |||
212 | 108 | #. module: l10n_it_invoice_report_aeroo | ||
213 | 109 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
214 | 110 | msgid "email" | ||
215 | 111 | msgstr "email" | ||
216 | 112 | |||
217 | 113 | #. module: l10n_it_invoice_report_aeroo | ||
218 | 114 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
219 | 115 | msgid "Payment terms" | ||
220 | 116 | msgstr "Termini di pagamento" | ||
221 | 117 | |||
222 | 118 | #. module: l10n_it_invoice_report_aeroo | ||
223 | 119 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
224 | 120 | msgid "Total amount" | ||
225 | 121 | msgstr "Importo totale" | ||
226 | 122 | |||
227 | 123 | #. module: l10n_it_invoice_report_aeroo | ||
228 | 124 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
229 | 125 | msgid "Invoice date" | ||
230 | 126 | msgstr "Data fattura" | ||
231 | 127 | |||
232 | 128 | #. module: l10n_it_invoice_report_aeroo | ||
233 | 129 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
234 | 130 | msgid "Product" | ||
235 | 131 | msgstr "Prodotto" | ||
236 | 132 | |||
237 | 133 | #. module: l10n_it_invoice_report_aeroo | ||
238 | 134 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
239 | 135 | msgid "Bank BIC" | ||
240 | 136 | msgstr "BIC" | ||
241 | 137 | |||
242 | 138 | #. module: l10n_it_invoice_report_aeroo | ||
243 | 139 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
244 | 140 | msgid "VAT" | ||
245 | 141 | msgstr "P.IVA" | ||
246 | 142 | |||
247 | 143 | #. module: l10n_it_invoice_report_aeroo | ||
248 | 144 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
249 | 145 | msgid "Quantity" | ||
250 | 146 | msgstr "Quantità" | ||
251 | 147 | |||
252 | 148 | #. module: l10n_it_invoice_report_aeroo | ||
253 | 149 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
254 | 150 | msgid "Comment" | ||
255 | 151 | msgstr "Commento" | ||
256 | 152 | |||
257 | 153 | #. module: l10n_it_invoice_report_aeroo | ||
258 | 154 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
259 | 155 | msgid "Due date" | ||
260 | 156 | msgstr "Data scadenza" | ||
261 | 157 | |||
262 | 158 | #. module: l10n_it_invoice_report_aeroo | ||
263 | 159 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
264 | 160 | msgid "Tax amount" | ||
265 | 161 | msgstr "IVA" | ||
266 | 162 | |||
267 | 163 | #. module: l10n_it_invoice_report_aeroo | ||
268 | 164 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
269 | 165 | msgid "Tax" | ||
270 | 166 | msgstr "IVA" | ||
271 | 167 | |||
272 | 168 | #. module: l10n_it_invoice_report_aeroo | ||
273 | 169 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
274 | 170 | msgid "Unit price" | ||
275 | 171 | msgstr "Prezzo unitario" | ||
276 | 172 | |||
277 | 173 | #. module: l10n_it_invoice_report_aeroo | ||
278 | 174 | #: report:ir.actions.report.xml:l10n_it_invoice_report_aeroo.aeroo_account_invoice_report_id | ||
279 | 175 | msgid "Bank" | ||
280 | 176 | msgstr "Banca" | ||
281 | 177 | |||
282 | 178 | #. module: l10n_it_invoice_report_aeroo | ||
283 | 179 | #: model:ir.model,name:l10n_it_invoice_report_aeroo.model_account_invoice | ||
284 | 180 | msgid "Invoice" | ||
285 | 181 | msgstr "Fattura" | ||
286 | 182 | |||
287 | 0 | 183 | ||
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 | 1 | #!/usr/bin/python | ||
293 | 2 | # -*- coding: utf-8 -*- | ||
294 | 3 | ############################################################################## | ||
295 | 4 | # | ||
296 | 5 | # Copyright (C) 2010-2012 Associazione OpenERP Italia | ||
297 | 6 | # (<http://www.openerp-italia.org>). | ||
298 | 7 | # Copyright(c)2008-2010 SIA "KN dati". | ||
299 | 8 | # (http://kndati.lv) All Rights Reserved. General contacts <info@kndati.lv> | ||
300 | 9 | # | ||
301 | 10 | # This program is free software: you can redistribute it and/or modify | ||
302 | 11 | # it under the terms of the GNU Affero General Public License as published by | ||
303 | 12 | # the Free Software Foundation, either version 3 of the License, or | ||
304 | 13 | # (at your option) any later version. | ||
305 | 14 | # | ||
306 | 15 | # This program is distributed in the hope that it will be useful, | ||
307 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
308 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
309 | 18 | # GNU General Public License for more details. | ||
310 | 19 | # | ||
311 | 20 | # You should have received a copy of the GNU Affero General Public License | ||
312 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
313 | 22 | # | ||
314 | 23 | ############################################################################## | ||
315 | 24 | |||
316 | 25 | from osv import osv, fields | ||
317 | 26 | |||
318 | 27 | |||
319 | 28 | class account_invoice(osv.osv): | ||
320 | 29 | ''' Override send invoice function | ||
321 | 30 | ''' | ||
322 | 31 | _name = 'account.invoice' | ||
323 | 32 | _inherit = 'account.invoice' | ||
324 | 33 | |||
325 | 34 | def invoice_print(self, cr, uid, ids, context=None): | ||
326 | 35 | ''' Override invoice_print function | ||
327 | 36 | ''' | ||
328 | 37 | res = super(account_invoice, | ||
329 | 38 | self).invoice_print(cr, uid, ids, context=context) | ||
330 | 39 | |||
331 | 40 | # replace report name: | ||
332 | 41 | res['report_name'] = 'custom_account_invoice_report' | ||
333 | 42 | return res | ||
334 | 43 | |||
335 | 44 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
336 | 0 | 45 | ||
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 | 1 | #!/usr/bin/python | ||
343 | 2 | # -*- coding: utf-8 -*- | ||
344 | 3 | ############################################################################## | ||
345 | 4 | # | ||
346 | 5 | # Copyright (C) 2010-2012 Associazione OpenERP Italia | ||
347 | 6 | # (<http://www.openerp-italia.org>). | ||
348 | 7 | # Copyright(c)2008-2010 SIA "KN dati". | ||
349 | 8 | # (http://kndati.lv) All Rights Reserved. General contacts <info@kndati.lv> | ||
350 | 9 | # | ||
351 | 10 | # This program is free software: you can redistribute it and/or modify | ||
352 | 11 | # it under the terms of the GNU Affero General Public License as published by | ||
353 | 12 | # the Free Software Foundation, either version 3 of the License, or | ||
354 | 13 | # (at your option) any later version. | ||
355 | 14 | # | ||
356 | 15 | # This program is distributed in the hope that it will be useful, | ||
357 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
358 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
359 | 18 | # GNU General Public License for more details. | ||
360 | 19 | # | ||
361 | 20 | # You should have received a copy of the GNU Affero General Public License | ||
362 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
363 | 22 | # | ||
364 | 23 | ############################################################################## | ||
365 | 24 | |||
366 | 25 | import invoice_parser | ||
367 | 26 | |||
368 | 27 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
369 | 0 | 28 | ||
370 | === added file 'l10n_it_invoice_report_aeroo/report/invoice.odt' | |||
371 | 1 | 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 | 29 | 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 | 1 | #!/usr/bin/python | ||
377 | 2 | # -*- coding: utf-8 -*- | ||
378 | 3 | ############################################################################## | ||
379 | 4 | # | ||
380 | 5 | # Copyright (C) 2010-2012 Associazione OpenERP Italia | ||
381 | 6 | # (<http://www.openerp-italia.org>). | ||
382 | 7 | # Copyright(c)2008-2010 SIA "KN dati". | ||
383 | 8 | # (http://kndati.lv) All Rights Reserved. General contacts <info@kndati.lv> | ||
384 | 9 | # | ||
385 | 10 | # This program is free software: you can redistribute it and/or modify | ||
386 | 11 | # it under the terms of the GNU Affero General Public License as published by | ||
387 | 12 | # the Free Software Foundation, either version 3 of the License, or | ||
388 | 13 | # (at your option) any later version. | ||
389 | 14 | # | ||
390 | 15 | # This program is distributed in the hope that it will be useful, | ||
391 | 16 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
392 | 17 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
393 | 18 | # GNU General Public License for more details. | ||
394 | 19 | # | ||
395 | 20 | # You should have received a copy of the GNU Affero General Public License | ||
396 | 21 | # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
397 | 22 | # | ||
398 | 23 | ############################################################################## | ||
399 | 24 | |||
400 | 25 | from report import report_sxw | ||
401 | 26 | from report.report_sxw import rml_parse | ||
402 | 27 | |||
403 | 28 | |||
404 | 29 | class Parser(report_sxw.rml_parse): | ||
405 | 30 | def __init__(self, cr, uid, name, context): | ||
406 | 31 | super(Parser, self).__init__(cr, uid, name, context) | ||
407 | 32 | self.localcontext.update({}) | ||
408 | 33 | |||
409 | 34 | # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: | ||
410 | 0 | 35 | ||
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 | 1 | <?xml version="1.0"?> | ||
416 | 2 | <openerp> | ||
417 | 3 | <data noupdate="1"> | ||
418 | 4 | <record id="aeroo_account_invoice_report_id" model="ir.actions.report.xml"> | ||
419 | 5 | <field name="name">Invoice report</field> | ||
420 | 6 | <field name="type">ir.actions.report.xml</field> | ||
421 | 7 | <field name="model">account.invoice</field> | ||
422 | 8 | <field name="report_name">custom_account_invoice_report</field> | ||
423 | 9 | <field name="report_type">aeroo</field> | ||
424 | 10 | <field name="in_format">oo-odt</field> | ||
425 | 11 | <field name="out_format" eval="ref('report_aeroo_ooo.report_mimetypes_pdf_odt')" /> | ||
426 | 12 | <field name="parser_loc">l10n_it_invoice_report_aeroo/report/invoice_parser.py</field> | ||
427 | 13 | <field name="report_rml">l10n_it_invoice_report_aeroo/report/invoice.odt</field> | ||
428 | 14 | <field name="parser_state">loc</field> | ||
429 | 15 | <field name="tml_source">file</field> | ||
430 | 16 | </record> | ||
431 | 17 | |||
432 | 18 | <ir_set> | ||
433 | 19 | <field eval="'action'" name="key"/> | ||
434 | 20 | <field eval="'client_print_multi'" name="key2"/> | ||
435 | 21 | <field eval="['account.invoice']" name="models"/> | ||
436 | 22 | <field name="name">custom_account_invoice</field> | ||
437 | 23 | <field eval="'ir.actions.report.xml,'+str(aeroo_account_invoice_report_id)" name="value"/> | ||
438 | 24 | <field eval="True" name="isobject"/> | ||
439 | 25 | <field eval="True" name="replace"/> | ||
440 | 26 | </ir_set> | ||
441 | 27 | </data> | ||
442 | 28 | </openerp> | ||
443 | 29 |
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 _() ) ?