Merge lp:~openobject-italia-core-devs/openobject-italia/adding_l10n_it_corrispettivi into lp:~openobject-italia-core-devs/openobject-italia/italian-addons
- adding_l10n_it_corrispettivi
- Merge into italian-addons
Proposed by
Lorenzo Battistini
Status: | Merged |
---|---|
Merged at revision: | 117 |
Proposed branch: | lp:~openobject-italia-core-devs/openobject-italia/adding_l10n_it_corrispettivi |
Merge into: | lp:~openobject-italia-core-devs/openobject-italia/italian-addons |
Diff against target: |
1214 lines (+1168/-0) 9 files modified
l10n_it_corrispettivi/AUTHORS.txt (+2/-0) l10n_it_corrispettivi/__init__.py (+23/-0) l10n_it_corrispettivi/__openerp__.py (+39/-0) l10n_it_corrispettivi/account.py (+122/-0) l10n_it_corrispettivi/account_view.xml (+243/-0) l10n_it_corrispettivi/i18n/it.po (+306/-0) l10n_it_corrispettivi/i18n/l10n_it_corrispettivi.pot (+306/-0) l10n_it_corrispettivi/installer.py (+68/-0) l10n_it_corrispettivi/installer_view.xml (+59/-0) |
To merge this branch: | bzr merge lp:~openobject-italia-core-devs/openobject-italia/adding_l10n_it_corrispettivi |
Related bugs: | |
Related blueprints: |
Corrispettivi
(Undefined)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
OpenERP Italia core devs | Pending | ||
Review via email: mp+71265@code.launchpad.net |
Commit message
Description of the change
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'l10n_it_corrispettivi' |
2 | === added file 'l10n_it_corrispettivi/AUTHORS.txt' |
3 | --- l10n_it_corrispettivi/AUTHORS.txt 1970-01-01 00:00:00 +0000 |
4 | +++ l10n_it_corrispettivi/AUTHORS.txt 2011-08-11 19:51:22 +0000 |
5 | @@ -0,0 +1,2 @@ |
6 | +Lorenzo Battistini <lorenzo.battistini@domsense.com> |
7 | + |
8 | |
9 | === added file 'l10n_it_corrispettivi/__init__.py' |
10 | --- l10n_it_corrispettivi/__init__.py 1970-01-01 00:00:00 +0000 |
11 | +++ l10n_it_corrispettivi/__init__.py 2011-08-11 19:51:22 +0000 |
12 | @@ -0,0 +1,23 @@ |
13 | +# -*- encoding: utf-8 -*- |
14 | +############################################################################## |
15 | +# |
16 | +# Copyright (C) 2011 Associazione OpenERP Italia |
17 | +# (<http://www.openerp-italia.org>). |
18 | +# All Rights Reserved |
19 | +# |
20 | +# This program is free software: you can redistribute it and/or modify |
21 | +# it under the terms of the GNU Affero General Public License as published |
22 | +# by the Free Software Foundation, either version 3 of the License, or |
23 | +# (at your option) any later version. |
24 | +# |
25 | +# This program is distributed in the hope that it will be useful, |
26 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
27 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
28 | +# GNU General Public License for more details. |
29 | +# |
30 | +# You should have received a copy of the GNU Affero General Public License |
31 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
32 | +# |
33 | +############################################################################## |
34 | +import account |
35 | +import installer |
36 | |
37 | === added file 'l10n_it_corrispettivi/__openerp__.py' |
38 | --- l10n_it_corrispettivi/__openerp__.py 1970-01-01 00:00:00 +0000 |
39 | +++ l10n_it_corrispettivi/__openerp__.py 2011-08-11 19:51:22 +0000 |
40 | @@ -0,0 +1,39 @@ |
41 | +# -*- encoding: utf-8 -*- |
42 | +############################################################################## |
43 | +# |
44 | +# Copyright (C) 2011 Associazione OpenERP Italia |
45 | +# (<http://www.openerp-italia.org>). |
46 | +# All Rights Reserved |
47 | +# |
48 | +# This program is free software: you can redistribute it and/or modify |
49 | +# it under the terms of the GNU Affero General Public License as published |
50 | +# by the Free Software Foundation, either version 3 of the License, or |
51 | +# (at your option) any later version. |
52 | +# |
53 | +# This program is distributed in the hope that it will be useful, |
54 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
55 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
56 | +# GNU General Public License for more details. |
57 | +# |
58 | +# You should have received a copy of the GNU Affero General Public License |
59 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
60 | +# |
61 | +############################################################################## |
62 | +{ |
63 | + 'name': 'Italian Localisation - Corrispettivi', |
64 | + 'version': '0.1', |
65 | + 'category': 'Localisation/Italy', |
66 | + 'description': """This module helps to easily input Corrispettivi within OpenERP""", |
67 | + 'author': 'OpenERP Italian Community', |
68 | + 'website': 'http://www.openerp-italia.org', |
69 | + 'license': 'AGPL-3', |
70 | + "depends" : ['account_voucher'], |
71 | + "init_xml" : [], |
72 | + "update_xml" : [ |
73 | + 'account_view.xml', |
74 | + 'installer_view.xml', |
75 | + ], |
76 | + "demo_xml" : [], |
77 | + "active": False, |
78 | + "installable": True |
79 | +} |
80 | |
81 | === added file 'l10n_it_corrispettivi/account.py' |
82 | --- l10n_it_corrispettivi/account.py 1970-01-01 00:00:00 +0000 |
83 | +++ l10n_it_corrispettivi/account.py 2011-08-11 19:51:22 +0000 |
84 | @@ -0,0 +1,122 @@ |
85 | +# -*- encoding: utf-8 -*- |
86 | +############################################################################## |
87 | +# |
88 | +# Copyright (C) 2011 Associazione OpenERP Italia |
89 | +# (<http://www.openerp-italia.org>). |
90 | +# All Rights Reserved |
91 | +# |
92 | +# This program is free software: you can redistribute it and/or modify |
93 | +# it under the terms of the GNU Affero General Public License as published |
94 | +# by the Free Software Foundation, either version 3 of the License, or |
95 | +# (at your option) any later version. |
96 | +# |
97 | +# This program is distributed in the hope that it will be useful, |
98 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
99 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
100 | +# GNU General Public License for more details. |
101 | +# |
102 | +# You should have received a copy of the GNU Affero General Public License |
103 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
104 | +# |
105 | +############################################################################## |
106 | + |
107 | +from osv import fields, osv |
108 | +from tools.translate import _ |
109 | + |
110 | +class account_invoice(osv.osv): |
111 | + _inherit = 'account.invoice' |
112 | + _columns = { |
113 | + 'corrispettivo': fields.boolean('Corrispettivo'), |
114 | + } |
115 | + |
116 | + def onchange_company_id(self, cr, uid, ids, company_id, part_id, type, invoice_line, currency_id, context=None): |
117 | + if not context: |
118 | + context={} |
119 | + journal_obj = self.pool.get('account.journal') |
120 | + res = super(account_invoice, self).onchange_company_id(cr, uid, ids, company_id, part_id, type, invoice_line, currency_id) |
121 | + is_corrispettivo = context.get('corrispettivo', False) |
122 | + corr_journal_ids = journal_obj.search(cr, uid, [('corrispettivi','=', True), ('company_id','=', company_id)]) |
123 | + |
124 | + # Se è un corrispettivo e la company ha almeno un sezionale corrispettivi |
125 | + if is_corrispettivo and corr_journal_ids: |
126 | + res['value']['journal_id'] = corr_journal_ids[0] |
127 | + |
128 | + # Se la company ha almeno un sezionale corrispettivi ma l'invoice non è un corrispettivo |
129 | + elif corr_journal_ids and corr_journal_ids[0] in res['domain']['journal_id'][0][2]: |
130 | + # Se l'on_change di invoice ha impostato il journal corrispettivi |
131 | + if corr_journal_ids[0] == res['value']['journal_id'] and len(res['domain']['journal_id'][0][2]) > 1: |
132 | + for j_id in res['domain']['journal_id'][0][2]: |
133 | + if corr_journal_ids[0] != j_id: |
134 | + res['value']['journal_id'] = j_id |
135 | + break |
136 | + return res |
137 | + |
138 | + |
139 | + def _get_account(self, cr, uid, context=None): |
140 | + if context is None: |
141 | + context = {} |
142 | + is_corrispettivo = context.get('corrispettivo', False) |
143 | + res = False |
144 | + if is_corrispettivo: |
145 | + partner_obj = partner_ids = self.pool.get('res.partner') |
146 | + partner_ids=partner_obj.search(cr, uid, [('corrispettivi', '=', True)]) |
147 | + if not partner_ids: |
148 | + raise osv.except_osv(_('Error!'), |
149 | + _('No partner "corrispettivi" found')) |
150 | + partner = partner_obj.browse(cr, uid, partner_ids[0]) |
151 | + res = partner.property_account_receivable.id |
152 | + return res |
153 | + |
154 | + def _get_partner_id(self, cr, uid, context=None): |
155 | + if context is None: |
156 | + context = {} |
157 | + is_corrispettivo = context.get('corrispettivo', False) |
158 | + res = False |
159 | + if is_corrispettivo: |
160 | + partner_obj = partner_ids = self.pool.get('res.partner') |
161 | + partner_ids=partner_obj.search(cr, uid, [('corrispettivi', '=', True)]) |
162 | + if not partner_ids: |
163 | + raise osv.except_osv(_('Error!'), |
164 | + _('No partner "corrispettivi" found')) |
165 | + res = partner_ids[0] |
166 | + return res |
167 | + |
168 | + def _get_address_invoice_id(self, cr, uid, context=None): |
169 | + if context is None: |
170 | + context = {} |
171 | + is_corrispettivo = context.get('corrispettivo', False) |
172 | + res = False |
173 | + if is_corrispettivo: |
174 | + partner_obj = partner_ids = self.pool.get('res.partner') |
175 | + partner_ids=partner_obj.search(cr, uid, [('corrispettivi', '=', True)]) |
176 | + if not partner_ids: |
177 | + raise osv.except_osv(_('Error!'), |
178 | + _('No partner "corrispettivi" found')) |
179 | + partner = partner_obj.browse(cr, uid, partner_ids[0]) |
180 | + if not partner.address: |
181 | + raise osv.except_osv(_('Error!'), |
182 | + _('No address specified for partner %s') % partner.name) |
183 | + res = partner.address[0].id |
184 | + return res |
185 | + |
186 | + _defaults = { |
187 | + 'partner_id': _get_partner_id, |
188 | + 'address_invoice_id': _get_address_invoice_id, |
189 | + 'account_id': _get_account, |
190 | + } |
191 | + |
192 | +account_invoice() |
193 | + |
194 | +class account_journal(osv.osv): |
195 | + _inherit = 'account.journal' |
196 | + _columns = { |
197 | + 'corrispettivi': fields.boolean('Corrispettivi'), |
198 | + } |
199 | +account_journal() |
200 | + |
201 | +class res_partner(osv.osv): |
202 | + _inherit = 'res.partner' |
203 | + _columns = { |
204 | + 'corrispettivi': fields.boolean('Corrispettivi'), |
205 | + } |
206 | +res_partner() |
207 | |
208 | === added file 'l10n_it_corrispettivi/account_view.xml' |
209 | --- l10n_it_corrispettivi/account_view.xml 1970-01-01 00:00:00 +0000 |
210 | +++ l10n_it_corrispettivi/account_view.xml 2011-08-11 19:51:22 +0000 |
211 | @@ -0,0 +1,243 @@ |
212 | +<?xml version="1.0" encoding="utf-8"?> |
213 | +<openerp> |
214 | + <data> |
215 | + |
216 | +<!-- invoice --> |
217 | + |
218 | + <record id="corrispettivi_tree" model="ir.ui.view"> |
219 | + <field name="name">account.corrispettivi.tree</field> |
220 | + <field name="model">account.invoice</field> |
221 | + <field name="priority" eval="17"/> |
222 | + <field name="type">tree</field> |
223 | + <field name="arch" type="xml"> |
224 | + <tree colors="blue:state in ('draft');black:state in ('proforma','proforma2','open');gray:state in ('cancel')" string="Corrispettivi"> |
225 | + <field name="date_invoice" string="Date"/> |
226 | + <field name="number"/> |
227 | + <field name="partner_id" groups="base.group_erp_manager"/> |
228 | + <field name="name"/> |
229 | + <field name="journal_id" invisible="1"/> |
230 | + <field name="period_id" invisible="1" groups="account.group_account_user"/> |
231 | + <field name="company_id" groups="base.group_multi_company" widget="selection"/> |
232 | + <field name="user_id"/> |
233 | + <field name="date_due" groups="base.group_erp_manager"/> |
234 | + <field name="origin" groups="base.group_erp_manager"/> |
235 | + <field name="currency_id"/> |
236 | + <field name="residual" sum="Residual Amount"/> |
237 | + <field name="amount_untaxed" sum="Untaxed Amount"/> |
238 | + <field name="amount_total" sum="Total Amount"/> |
239 | + <field name="state"/> |
240 | + |
241 | + <button name="invoice_open" states="draft,proforma2" string="Approve" icon="terp-camera_test"/> |
242 | + </tree> |
243 | + </field> |
244 | + </record> |
245 | + <record id="corrispettivi_form" model="ir.ui.view"> |
246 | + <field name="name">account.corrispettivi.form</field> |
247 | + <field name="model">account.invoice</field> |
248 | + <field name="priority" eval="17"/> |
249 | + <field name="type">form</field> |
250 | + <field name="arch" type="xml"> |
251 | + <form string="Corrispettivi"> |
252 | + <group colspan="4" col="8"> |
253 | + <field name="journal_id" groups="base.group_user" on_change="onchange_journal_id(journal_id)" widget="selection"/> |
254 | + <field name="number"/> |
255 | + <field name="type" invisible="1"/> |
256 | + <field name="currency_id" width="50"/> |
257 | + <button name="%(account.action_account_change_currency)d" type="action" icon="terp-stock_effects-object-colorize" string="Change" attrs="{'invisible':[('state','!=','draft')]}" groups="account.group_account_user"/> |
258 | + <newline/> |
259 | + <field string="Customer" name="partner_id" groups="base.group_erp_manager"/> |
260 | + <field domain="[('partner_id','=',partner_id)]" name="address_invoice_id" groups="base.group_erp_manager"/> |
261 | + <field name="fiscal_position" groups="base.group_erp_manager" widget="selection"/> |
262 | + <newline/> |
263 | + <field name="date_invoice" string="Date"/> |
264 | + <field name="corrispettivo" groups="base.group_erp_manager"/> |
265 | + <field name="period_id" domain="[('state', '=', 'draft')]" groups="account.group_account_user" widget="selection"/> |
266 | + <group colspan="2" col="1" groups="account.group_account_user"> |
267 | + <label align="0.0" string="(keep empty to use the current period)"/> |
268 | + </group> |
269 | + </group> |
270 | + <notebook colspan="4"> |
271 | + <page string="Invoice"> |
272 | + <field domain="[('company_id', '=', company_id),('type','=', 'receivable')]" name="account_id" groups="account.group_account_user"/> |
273 | + <field name="name"/> |
274 | + <field name="payment_term" widget="selection" groups="base.group_erp_manager"/> |
275 | + <field colspan="4" name="invoice_line" nolabel="1" widget="one2many_list"/> |
276 | + <group col="1" colspan="2"> |
277 | + <field name="tax_line" nolabel="1"> |
278 | + <tree editable="bottom" string="Taxes"> |
279 | + <field name="name"/> |
280 | + <field name="account_id" groups="account.group_account_invoice"/> |
281 | + <field name="base" on_change="base_change(base,parent.currency_id,parent.company_id,parent.date_invoice)" readonly="1"/> |
282 | + <field name="amount" on_change="amount_change(amount,parent.currency_id,parent.company_id,parent.date_invoice)"/> |
283 | + <field invisible="True" name="base_amount"/> |
284 | + <field invisible="True" name="tax_amount"/> |
285 | + <field name="factor_base" invisible="True"/> |
286 | + <field name="factor_tax" invisible="True"/> |
287 | + </tree> |
288 | + </field> |
289 | + </group> |
290 | + <group col="4" colspan="2"> |
291 | + <button colspan="2" name="button_reset_taxes" states="draft" string="Compute Taxes" type="object" groups="base.group_user" icon="terp-stock_format-scientific"/> |
292 | + <field name="amount_untaxed"/> |
293 | + <label string="" colspan="2"/> |
294 | + <field name="amount_tax"/> |
295 | + <field name="reconciled"/> |
296 | + <field name="amount_total"/> |
297 | + <field name="state"/> |
298 | + <field name="residual"/> |
299 | + <group col="8" colspan="4" groups="base.group_user"> |
300 | + <button name="invoice_cancel" states="draft,proforma2,sale,open" string="Cancel" icon="gtk-cancel"/> |
301 | + <button name="action_cancel_draft" states="cancel" string="Reset to Draft" type="object" icon="terp-stock_effects-object-colorize"/> |
302 | + |
303 | + <button name="%(account.action_account_invoice_refund)d" type='action' string='Refund' states='open,paid' icon="gtk-execute"/> |
304 | + <button name='%(account.action_account_state_open)d' type='action' string='Re-Open' states='paid' icon="gtk-convert" groups="base.group_no_one"/> |
305 | + <button name="invoice_proforma2" states="draft" string="PRO-FORMA" icon="terp-gtk-media-pause" groups="base.group_erp_manager"/> |
306 | + <button name="invoice_open" states="draft,proforma2" string="Validate" icon="gtk-go-forward"/> |
307 | + <button name="invoice_pay_customer" type="object" string="Payment" states="open" icon="gtk-go-forward"/> |
308 | + </group> |
309 | + </group> |
310 | + </page> |
311 | + <page string="Other Info"> |
312 | + <field name="company_id" on_change="onchange_company_id(company_id,partner_id,type,invoice_line,currency_id,context)" widget="selection" groups="base.group_multi_company"/> |
313 | + <newline/> |
314 | + <field name="date_due" groups="base.group_erp_manager"/> |
315 | + <field name="user_id"/> |
316 | + <newline/> |
317 | + <field domain="[('partner_id.ref_companies', 'in', [company_id])]" name="partner_bank_id" |
318 | + groups="base.group_erp_manager"/> |
319 | + <field name="origin" groups="base.group_erp_manager"/> |
320 | + <field colspan="4" domain="[('partner_id','=',partner_id)]" name="address_contact_id" |
321 | + groups="base.group_erp_manager"/> |
322 | + <field name="move_id" groups="account.group_account_user"/> |
323 | + <separator colspan="4" string="Additional Information"/> |
324 | + <field colspan="4" name="comment" nolabel="1"/> |
325 | + </page> |
326 | + <page string="Payments"> |
327 | + <field name="payment_ids" colspan="4" nolabel="1"> |
328 | + <tree string="Payments"> |
329 | + <field name="date"/> |
330 | + <field name="ref"/> |
331 | + <field name="name"/> |
332 | + <field name="journal_id" groups="base.group_user"/> |
333 | + <field name="debit"/> |
334 | + <field name="credit"/> |
335 | + <field name="amount_currency"/> |
336 | + <field name="currency_id"/> |
337 | + </tree> |
338 | + </field> |
339 | + </page> |
340 | + </notebook> |
341 | + </form> |
342 | + </field> |
343 | + </record> |
344 | + |
345 | + <record id="invoice_form" model="ir.ui.view"> |
346 | + <field name="name">account.invoice.form</field> |
347 | + <field name="model">account.invoice</field> |
348 | + <field name="type">form</field> |
349 | + <field name="inherit_id" ref="account.invoice_form"></field> |
350 | + <field name="arch" type="xml"> |
351 | + <field name="company_id" position="replace"> |
352 | + <field name="company_id" on_change="onchange_company_id(company_id,partner_id,type,invoice_line,currency_id,context)" widget="selection" groups="base.group_multi_company"/> |
353 | + </field> |
354 | + </field> |
355 | + </record> |
356 | + |
357 | + <record id="view_account_corrispettivi_filter" model="ir.ui.view"> |
358 | + <field name="name">account.corrispettivi.select</field> |
359 | + <field name="model">account.invoice</field> |
360 | + <field name="type">search</field> |
361 | + <field name="arch" type="xml"> |
362 | + <search string="Search Corrispettivi"> |
363 | + <group col="10" colspan="4"> |
364 | + <filter name="draft" icon="terp-document-new" string="Draft" domain="[('state','=','draft')]" help="Draft Invoices"/> |
365 | + <filter name="invoices" icon="terp-dolar" string="Corrispettivi" domain="[('state','not in',['draft','cancel'])]" help="Open/Paid"/> |
366 | + <separator orientation="vertical"/> |
367 | + <filter name="unpaid" icon="terp-dolar_ok!" string="Unpaid" domain="[('state','=','open')]" help="Unpaid"/> |
368 | + <separator orientation="vertical"/> |
369 | + <field name="number"/> |
370 | + <field name="user_id" select="1" widget="selection" string="Salesman"> |
371 | + <filter domain="[('user_id','=',uid)]" help="My invoices" icon="terp-personal" separator="1"/> |
372 | + </field> |
373 | + <field name="amount_total"/> |
374 | + </group> |
375 | + <newline/> |
376 | + <group col="10" colspan="4"> |
377 | + <field name="journal_id" widget="selection" select='1'/> |
378 | + <field name="period_id" select='1' string="Period"/> |
379 | + </group> |
380 | + <newline/> |
381 | + <group expand="0" string="Group By..."> |
382 | + <filter string="Responsible" icon="terp-personal" domain="[]" context="{'group_by':'user_id'}"/> |
383 | + <separator orientation="vertical"/> |
384 | + <filter string="State" icon="terp-stock_effects-object-colorize" domain="[]" context="{'group_by':'state'}"/> |
385 | + <separator orientation="vertical"/> |
386 | + <filter string="Period" icon="terp-go-month" domain="[]" context="{'group_by':'period_id'}"/> |
387 | + <filter string="Date" icon="terp-go-month" domain="[]" context="{'group_by':'date_invoice'}"/> |
388 | + </group> |
389 | + </search> |
390 | + </field> |
391 | + </record> |
392 | + |
393 | + <record id="action_corrispettivi_tree" model="ir.actions.act_window"> |
394 | + <field name="name">Corrispettivi</field> |
395 | + <field name="res_model">account.invoice</field> |
396 | + <field name="view_type">form</field> |
397 | + <field name="view_mode">tree,form,calendar,graph</field> |
398 | + <field eval="False" name="view_id"/> |
399 | + <field name="domain">[('type','=','out_invoice'),('corrispettivo','=',True)]</field> |
400 | + <field name="context">{'type':'out_invoice', 'journal_type': 'sale', 'corrispettivo': True}</field> |
401 | + <field name="search_view_id" ref="view_account_corrispettivi_filter"/> |
402 | + </record> |
403 | + |
404 | + <record id="account.action_invoice_tree1" model="ir.actions.act_window"> |
405 | + <field name="domain">[('type','=','out_invoice'),('corrispettivo','=', False)]</field> |
406 | + </record> |
407 | + |
408 | + |
409 | + <record id="action_corrispettivi_tree_view1" model="ir.actions.act_window.view"> |
410 | + <field eval="1" name="sequence"/> |
411 | + <field name="view_mode">tree</field> |
412 | + <field name="view_id" ref="corrispettivi_tree"/> |
413 | + <field name="act_window_id" ref="action_corrispettivi_tree"/> |
414 | + </record> |
415 | + |
416 | + <record id="action_corrispettivi_tree_view2" model="ir.actions.act_window.view"> |
417 | + <field eval="2" name="sequence"/> |
418 | + <field name="view_mode">form</field> |
419 | + <field name="view_id" ref="corrispettivi_form"/> |
420 | + <field name="act_window_id" ref="action_corrispettivi_tree"/> |
421 | + </record> |
422 | + |
423 | + <menuitem action="action_corrispettivi_tree" id="menu_action_corrispettivi_tree" parent="account.menu_finance_receivables"/> |
424 | + |
425 | +<!-- partner --> |
426 | + |
427 | + <record id="view_partner_form" model="ir.ui.view"> |
428 | + <field name="name">res.partner.form</field> |
429 | + <field name="model">res.partner</field> |
430 | + <field name="type">form</field> |
431 | + <field name="inherit_id" ref="base.view_partner_form"/> |
432 | + <field name="arch" type="xml"> |
433 | + <field name="supplier" position="after"> |
434 | + <field name="corrispettivi" groups="account.group_account_manager"/> |
435 | + </field> |
436 | + </field> |
437 | + </record> |
438 | + |
439 | +<!-- journal --> |
440 | + |
441 | + <record id="view_account_journal_form" model="ir.ui.view"> |
442 | + <field name="name">account.journal.form</field> |
443 | + <field name="model">account.journal</field> |
444 | + <field name="type">form</field> |
445 | + <field name="inherit_id" ref="account.view_account_journal_form"/> |
446 | + <field name="arch" type="xml"> |
447 | + <field name="allow_date" position="after"> |
448 | + <field name="corrispettivi"/> |
449 | + </field> |
450 | + </field> |
451 | + </record> |
452 | + |
453 | + </data> |
454 | +</openerp> |
455 | |
456 | === added directory 'l10n_it_corrispettivi/i18n' |
457 | === added file 'l10n_it_corrispettivi/i18n/it.po' |
458 | --- l10n_it_corrispettivi/i18n/it.po 1970-01-01 00:00:00 +0000 |
459 | +++ l10n_it_corrispettivi/i18n/it.po 2011-08-11 19:51:22 +0000 |
460 | @@ -0,0 +1,306 @@ |
461 | +# Translation of OpenERP Server. |
462 | +# This file contains the translation of the following modules: |
463 | +# * l10n_it_corrispettivi |
464 | +# |
465 | +msgid "" |
466 | +msgstr "" |
467 | +"Project-Id-Version: OpenERP Server 6.0.2\n" |
468 | +"Report-Msgid-Bugs-To: support@openerp.com\n" |
469 | +"POT-Creation-Date: 2011-07-30 15:56+0000\n" |
470 | +"PO-Revision-Date: 2011-07-30 15:56+0000\n" |
471 | +"Last-Translator: <>\n" |
472 | +"Language-Team: \n" |
473 | +"MIME-Version: 1.0\n" |
474 | +"Content-Type: text/plain; charset=UTF-8\n" |
475 | +"Content-Transfer-Encoding: \n" |
476 | +"Plural-Forms: \n" |
477 | + |
478 | +#. module: l10n_it_corrispettivi |
479 | +#: view:account.invoice:0 |
480 | +msgid "(keep empty to use the current period)" |
481 | +msgstr "(lasciare il campo vuoto per usare il periodo corrente)" |
482 | + |
483 | +#. module: l10n_it_corrispettivi |
484 | +#: view:account.invoice:0 |
485 | +msgid "Other Info" |
486 | +msgstr "Altre informazioni" |
487 | + |
488 | +#. module: l10n_it_corrispettivi |
489 | +#: field:corrispettivi.config.data,default_credit_account_id:0 |
490 | +msgid "Default credit account" |
491 | +msgstr "Conto di credito di default" |
492 | + |
493 | +#. module: l10n_it_corrispettivi |
494 | +#: model:ir.module.module,shortdesc:l10n_it_corrispettivi.module_meta_information |
495 | +msgid "Italian Localisation - Corrispettivi" |
496 | +msgstr "Italian Localisation - Corrispettivi" |
497 | + |
498 | +#. module: l10n_it_corrispettivi |
499 | +#: view:account.invoice:0 |
500 | +msgid "Responsible" |
501 | +msgstr "Responsabile" |
502 | + |
503 | +#. module: l10n_it_corrispettivi |
504 | +#: view:account.invoice:0 |
505 | +msgid "Period" |
506 | +msgstr "Periodo" |
507 | + |
508 | +#. module: l10n_it_corrispettivi |
509 | +#: view:account.invoice:0 |
510 | +msgid "Group By..." |
511 | +msgstr "Raggruppa per..." |
512 | + |
513 | +#. module: l10n_it_corrispettivi |
514 | +#: view:account.invoice:0 |
515 | +msgid "State" |
516 | +msgstr "Stato" |
517 | + |
518 | +#. module: l10n_it_corrispettivi |
519 | +#: view:account.invoice:0 |
520 | +msgid "Draft" |
521 | +msgstr "Bozza" |
522 | + |
523 | +#. module: l10n_it_corrispettivi |
524 | +#: view:account.invoice:0 |
525 | +msgid "PRO-FORMA" |
526 | +msgstr "Pro-Forma" |
527 | + |
528 | +#. module: l10n_it_corrispettivi |
529 | +#: field:corrispettivi.config.data,paid_tax_account_id:0 |
530 | +msgid "Paid Tax Account" |
531 | +msgstr "Conto Imposte Pagate" |
532 | + |
533 | +#. module: l10n_it_corrispettivi |
534 | +#: field:corrispettivi.config.data,progress:0 |
535 | +msgid "Configuration Progress" |
536 | +msgstr "Avanzamento configurazione" |
537 | + |
538 | +#. module: l10n_it_corrispettivi |
539 | +#: view:corrispettivi.config.data:0 |
540 | +msgid "title" |
541 | +msgstr "Titolo" |
542 | + |
543 | +#. module: l10n_it_corrispettivi |
544 | +#: model:ir.model,name:l10n_it_corrispettivi.model_corrispettivi_config_data |
545 | +msgid "corrispettivi.config.data" |
546 | +msgstr "corrispettivi.config.data" |
547 | + |
548 | +#. module: l10n_it_corrispettivi |
549 | +#: model:ir.model,name:l10n_it_corrispettivi.model_account_journal |
550 | +msgid "Journal" |
551 | +msgstr "Giornale" |
552 | + |
553 | +#. module: l10n_it_corrispettivi |
554 | +#: view:account.invoice:0 |
555 | +msgid "Reset to Draft" |
556 | +msgstr "Reimposta a \"Bozza\"" |
557 | + |
558 | +#. module: l10n_it_corrispettivi |
559 | +#: view:account.invoice:0 |
560 | +msgid "Date" |
561 | +msgstr "Data" |
562 | + |
563 | +#. module: l10n_it_corrispettivi |
564 | +#: view:corrispettivi.config.data:0 |
565 | +msgid "Corrispettivi Configuration" |
566 | +msgstr "Configurazione Corrispettivi" |
567 | + |
568 | +#. module: l10n_it_corrispettivi |
569 | +#: view:account.invoice:0 |
570 | +msgid "Payment" |
571 | +msgstr "Pagamento" |
572 | + |
573 | +#. module: l10n_it_corrispettivi |
574 | +#: view:account.invoice:0 |
575 | +msgid "Change" |
576 | +msgstr "Modifica" |
577 | + |
578 | +#. module: l10n_it_corrispettivi |
579 | +#: view:account.invoice:0 |
580 | +msgid "Customer" |
581 | +msgstr "Cliente" |
582 | + |
583 | +#. module: l10n_it_corrispettivi |
584 | +#: view:account.invoice:0 |
585 | +msgid "Refund" |
586 | +msgstr "Rimborso" |
587 | + |
588 | +#. module: l10n_it_corrispettivi |
589 | +#: field:corrispettivi.config.data,collected_tax_account_id:0 |
590 | +msgid "Collected Tax Account" |
591 | +msgstr "Conto Imposte Accumulate" |
592 | + |
593 | +#. module: l10n_it_corrispettivi |
594 | +#: code:addons/l10n_it_corrispettivi/account.py:98 |
595 | +#, python-format |
596 | +msgid "No address specified for partner %s" |
597 | +msgstr "Nessun indirizzo specificato per il partner %s" |
598 | + |
599 | +#. module: l10n_it_corrispettivi |
600 | +#: field:account.invoice,corrispettivo:0 |
601 | +msgid "Corrispettivo" |
602 | +msgstr "Corrispettivo" |
603 | + |
604 | +#. module: l10n_it_corrispettivi |
605 | +#: view:account.invoice:0 |
606 | +msgid "Search Corrispettivi" |
607 | +msgstr "Cerca Corrispettivi" |
608 | + |
609 | +#. module: l10n_it_corrispettivi |
610 | +#: view:account.invoice:0 |
611 | +msgid "Taxes" |
612 | +msgstr "Imposte" |
613 | + |
614 | +#. module: l10n_it_corrispettivi |
615 | +#: view:account.invoice:0 |
616 | +msgid "Compute Taxes" |
617 | +msgstr "Calcola Imposte e Totali" |
618 | + |
619 | +#. module: l10n_it_corrispettivi |
620 | +#: view:account.invoice:0 |
621 | +#: field:account.journal,corrispettivi:0 |
622 | +#: model:ir.actions.act_window,name:l10n_it_corrispettivi.action_corrispettivi_tree |
623 | +#: model:ir.ui.menu,name:l10n_it_corrispettivi.menu_action_corrispettivi_tree |
624 | +#: field:res.partner,corrispettivi:0 |
625 | +msgid "Corrispettivi" |
626 | +msgstr "Corrispettivi" |
627 | + |
628 | +#. module: l10n_it_corrispettivi |
629 | +#: code:addons/l10n_it_corrispettivi/account.py:64 |
630 | +#: code:addons/l10n_it_corrispettivi/account.py:79 |
631 | +#: code:addons/l10n_it_corrispettivi/account.py:93 |
632 | +#: code:addons/l10n_it_corrispettivi/account.py:97 |
633 | +#, python-format |
634 | +msgid "Error!" |
635 | +msgstr "Errore!" |
636 | + |
637 | +#. module: l10n_it_corrispettivi |
638 | +#: field:corrispettivi.config.data,journal_view_id:0 |
639 | +msgid "Journal View" |
640 | +msgstr "Visualizzazione sezionale" |
641 | + |
642 | +#. module: l10n_it_corrispettivi |
643 | +#: view:account.invoice:0 |
644 | +msgid "Payments" |
645 | +msgstr "Pagamenti" |
646 | + |
647 | +#. module: l10n_it_corrispettivi |
648 | +#: view:corrispettivi.config.data:0 |
649 | +msgid "Select data to configure Corrispettivi module." |
650 | +msgstr "Selezionare i dati con cui configurare il modulo Corrispettivi" |
651 | + |
652 | +#. module: l10n_it_corrispettivi |
653 | +#: view:account.invoice:0 |
654 | +msgid "Approve" |
655 | +msgstr "Approva" |
656 | + |
657 | +#. module: l10n_it_corrispettivi |
658 | +#: view:account.invoice:0 |
659 | +msgid "Validate" |
660 | +msgstr "Valida" |
661 | + |
662 | +#. module: l10n_it_corrispettivi |
663 | +#: view:corrispettivi.config.data:0 |
664 | +msgid "Configure" |
665 | +msgstr "Configura" |
666 | + |
667 | +#. module: l10n_it_corrispettivi |
668 | +#: help:corrispettivi.config.data,default_credit_account_id:0 |
669 | +#: help:corrispettivi.config.data,default_debit_account_id:0 |
670 | +msgid "If doubtful, use income account" |
671 | +msgstr "Se inverti, utilizzare il conto vendite" |
672 | + |
673 | +#. module: l10n_it_corrispettivi |
674 | +#: view:account.invoice:0 |
675 | +msgid "Residual Amount" |
676 | +msgstr "Ammontare residuo" |
677 | + |
678 | +#. module: l10n_it_corrispettivi |
679 | +#: view:account.invoice:0 |
680 | +msgid "Unpaid" |
681 | +msgstr "Non pagato" |
682 | + |
683 | +#. module: l10n_it_corrispettivi |
684 | +#: field:corrispettivi.config.data,default_debit_account_id:0 |
685 | +msgid "Default debit account" |
686 | +msgstr "Conto di debito di default" |
687 | + |
688 | +#. module: l10n_it_corrispettivi |
689 | +#: field:corrispettivi.config.data,config_logo:0 |
690 | +msgid "Image" |
691 | +msgstr "Immagine" |
692 | + |
693 | +#. module: l10n_it_corrispettivi |
694 | +#: sql_constraint:account.journal:0 |
695 | +msgid "The name of the journal must be unique per company !" |
696 | +msgstr "Il nome del giornale deve essere unico per ogni azienda!" |
697 | + |
698 | +#. module: l10n_it_corrispettivi |
699 | +#: view:corrispettivi.config.data:0 |
700 | +msgid "Configure Corrispettivi Journal" |
701 | +msgstr "Configura sezionale corrispettivi" |
702 | + |
703 | +#. module: l10n_it_corrispettivi |
704 | +#: model:ir.actions.act_window,name:l10n_it_corrispettivi.action_corrispettivi_config_data |
705 | +msgid "Configure Corrispettivi" |
706 | +msgstr "Configura Corrispettivi" |
707 | + |
708 | +#. module: l10n_it_corrispettivi |
709 | +#: code:addons/l10n_it_corrispettivi/account.py:65 |
710 | +#: code:addons/l10n_it_corrispettivi/account.py:80 |
711 | +#: code:addons/l10n_it_corrispettivi/account.py:94 |
712 | +#, python-format |
713 | +msgid "No partner \"corrispettivi\" found" |
714 | +msgstr "Nessun partner di tipo \"corrispettivi\" trovato" |
715 | + |
716 | +#. module: l10n_it_corrispettivi |
717 | +#: view:account.invoice:0 |
718 | +msgid "Re-Open" |
719 | +msgstr "Riapri" |
720 | + |
721 | +#. module: l10n_it_corrispettivi |
722 | +#: model:ir.module.module,description:l10n_it_corrispettivi.module_meta_information |
723 | +msgid "This module helps to easily input Corrispettivi within OpenERP" |
724 | +msgstr "Questo modulo permette di inserire agevolmente i corrispettivi in OpenERP" |
725 | + |
726 | +#. module: l10n_it_corrispettivi |
727 | +#: view:account.invoice:0 |
728 | +#: model:ir.model,name:l10n_it_corrispettivi.model_account_invoice |
729 | +msgid "Invoice" |
730 | +msgstr "Fattura" |
731 | + |
732 | +#. module: l10n_it_corrispettivi |
733 | +#: sql_constraint:account.journal:0 |
734 | +msgid "The code of the journal must be unique per company !" |
735 | +msgstr "Il codice del giornale deve essere unico per una stessa azienda!" |
736 | + |
737 | +#. module: l10n_it_corrispettivi |
738 | +#: view:account.invoice:0 |
739 | +msgid "Cancel" |
740 | +msgstr "Annulla" |
741 | + |
742 | +#. module: l10n_it_corrispettivi |
743 | +#: model:ir.model,name:l10n_it_corrispettivi.model_res_partner |
744 | +msgid "Partner" |
745 | +msgstr "Partner" |
746 | + |
747 | +#. module: l10n_it_corrispettivi |
748 | +#: view:account.invoice:0 |
749 | +msgid "Untaxed Amount" |
750 | +msgstr "Importo non tassato" |
751 | + |
752 | +#. module: l10n_it_corrispettivi |
753 | +#: view:account.invoice:0 |
754 | +msgid "Salesman" |
755 | +msgstr "Commerciale" |
756 | + |
757 | +#. module: l10n_it_corrispettivi |
758 | +#: view:account.invoice:0 |
759 | +msgid "Total Amount" |
760 | +msgstr "Importo Totale" |
761 | + |
762 | +#. module: l10n_it_corrispettivi |
763 | +#: view:account.invoice:0 |
764 | +msgid "Additional Information" |
765 | +msgstr "Informazioni Aggiuntive" |
766 | + |
767 | |
768 | === added file 'l10n_it_corrispettivi/i18n/l10n_it_corrispettivi.pot' |
769 | --- l10n_it_corrispettivi/i18n/l10n_it_corrispettivi.pot 1970-01-01 00:00:00 +0000 |
770 | +++ l10n_it_corrispettivi/i18n/l10n_it_corrispettivi.pot 2011-08-11 19:51:22 +0000 |
771 | @@ -0,0 +1,306 @@ |
772 | +# Translation of OpenERP Server. |
773 | +# This file contains the translation of the following modules: |
774 | +# * l10n_it_corrispettivi |
775 | +# |
776 | +msgid "" |
777 | +msgstr "" |
778 | +"Project-Id-Version: OpenERP Server 6.0.2\n" |
779 | +"Report-Msgid-Bugs-To: support@openerp.com\n" |
780 | +"POT-Creation-Date: 2011-07-30 15:56+0000\n" |
781 | +"PO-Revision-Date: 2011-07-30 15:56+0000\n" |
782 | +"Last-Translator: <>\n" |
783 | +"Language-Team: \n" |
784 | +"MIME-Version: 1.0\n" |
785 | +"Content-Type: text/plain; charset=UTF-8\n" |
786 | +"Content-Transfer-Encoding: \n" |
787 | +"Plural-Forms: \n" |
788 | + |
789 | +#. module: l10n_it_corrispettivi |
790 | +#: view:account.invoice:0 |
791 | +msgid "(keep empty to use the current period)" |
792 | +msgstr "" |
793 | + |
794 | +#. module: l10n_it_corrispettivi |
795 | +#: view:account.invoice:0 |
796 | +msgid "Other Info" |
797 | +msgstr "" |
798 | + |
799 | +#. module: l10n_it_corrispettivi |
800 | +#: field:corrispettivi.config.data,default_credit_account_id:0 |
801 | +msgid "Default credit account" |
802 | +msgstr "" |
803 | + |
804 | +#. module: l10n_it_corrispettivi |
805 | +#: model:ir.module.module,shortdesc:l10n_it_corrispettivi.module_meta_information |
806 | +msgid "Italian Localisation - Corrispettivi" |
807 | +msgstr "" |
808 | + |
809 | +#. module: l10n_it_corrispettivi |
810 | +#: view:account.invoice:0 |
811 | +msgid "Responsible" |
812 | +msgstr "" |
813 | + |
814 | +#. module: l10n_it_corrispettivi |
815 | +#: view:account.invoice:0 |
816 | +msgid "Period" |
817 | +msgstr "" |
818 | + |
819 | +#. module: l10n_it_corrispettivi |
820 | +#: view:account.invoice:0 |
821 | +msgid "Group By..." |
822 | +msgstr "" |
823 | + |
824 | +#. module: l10n_it_corrispettivi |
825 | +#: view:account.invoice:0 |
826 | +msgid "State" |
827 | +msgstr "" |
828 | + |
829 | +#. module: l10n_it_corrispettivi |
830 | +#: view:account.invoice:0 |
831 | +msgid "Draft" |
832 | +msgstr "" |
833 | + |
834 | +#. module: l10n_it_corrispettivi |
835 | +#: view:account.invoice:0 |
836 | +msgid "PRO-FORMA" |
837 | +msgstr "" |
838 | + |
839 | +#. module: l10n_it_corrispettivi |
840 | +#: field:corrispettivi.config.data,paid_tax_account_id:0 |
841 | +msgid "Paid Tax Account" |
842 | +msgstr "" |
843 | + |
844 | +#. module: l10n_it_corrispettivi |
845 | +#: field:corrispettivi.config.data,progress:0 |
846 | +msgid "Configuration Progress" |
847 | +msgstr "" |
848 | + |
849 | +#. module: l10n_it_corrispettivi |
850 | +#: view:corrispettivi.config.data:0 |
851 | +msgid "title" |
852 | +msgstr "" |
853 | + |
854 | +#. module: l10n_it_corrispettivi |
855 | +#: model:ir.model,name:l10n_it_corrispettivi.model_corrispettivi_config_data |
856 | +msgid "corrispettivi.config.data" |
857 | +msgstr "" |
858 | + |
859 | +#. module: l10n_it_corrispettivi |
860 | +#: model:ir.model,name:l10n_it_corrispettivi.model_account_journal |
861 | +msgid "Journal" |
862 | +msgstr "" |
863 | + |
864 | +#. module: l10n_it_corrispettivi |
865 | +#: view:account.invoice:0 |
866 | +msgid "Reset to Draft" |
867 | +msgstr "" |
868 | + |
869 | +#. module: l10n_it_corrispettivi |
870 | +#: view:account.invoice:0 |
871 | +msgid "Date" |
872 | +msgstr "" |
873 | + |
874 | +#. module: l10n_it_corrispettivi |
875 | +#: view:corrispettivi.config.data:0 |
876 | +msgid "Corrispettivi Configuration" |
877 | +msgstr "" |
878 | + |
879 | +#. module: l10n_it_corrispettivi |
880 | +#: view:account.invoice:0 |
881 | +msgid "Payment" |
882 | +msgstr "" |
883 | + |
884 | +#. module: l10n_it_corrispettivi |
885 | +#: view:account.invoice:0 |
886 | +msgid "Change" |
887 | +msgstr "" |
888 | + |
889 | +#. module: l10n_it_corrispettivi |
890 | +#: view:account.invoice:0 |
891 | +msgid "Customer" |
892 | +msgstr "" |
893 | + |
894 | +#. module: l10n_it_corrispettivi |
895 | +#: view:account.invoice:0 |
896 | +msgid "Refund" |
897 | +msgstr "" |
898 | + |
899 | +#. module: l10n_it_corrispettivi |
900 | +#: field:corrispettivi.config.data,collected_tax_account_id:0 |
901 | +msgid "Collected Tax Account" |
902 | +msgstr "" |
903 | + |
904 | +#. module: l10n_it_corrispettivi |
905 | +#: code:addons/l10n_it_corrispettivi/account.py:98 |
906 | +#, python-format |
907 | +msgid "No address specified for partner %s" |
908 | +msgstr "" |
909 | + |
910 | +#. module: l10n_it_corrispettivi |
911 | +#: field:account.invoice,corrispettivo:0 |
912 | +msgid "Corrispettivo" |
913 | +msgstr "" |
914 | + |
915 | +#. module: l10n_it_corrispettivi |
916 | +#: view:account.invoice:0 |
917 | +msgid "Search Corrispettivi" |
918 | +msgstr "" |
919 | + |
920 | +#. module: l10n_it_corrispettivi |
921 | +#: view:account.invoice:0 |
922 | +msgid "Taxes" |
923 | +msgstr "" |
924 | + |
925 | +#. module: l10n_it_corrispettivi |
926 | +#: view:account.invoice:0 |
927 | +msgid "Compute Taxes" |
928 | +msgstr "" |
929 | + |
930 | +#. module: l10n_it_corrispettivi |
931 | +#: view:account.invoice:0 |
932 | +#: field:account.journal,corrispettivi:0 |
933 | +#: model:ir.actions.act_window,name:l10n_it_corrispettivi.action_corrispettivi_tree |
934 | +#: model:ir.ui.menu,name:l10n_it_corrispettivi.menu_action_corrispettivi_tree |
935 | +#: field:res.partner,corrispettivi:0 |
936 | +msgid "Corrispettivi" |
937 | +msgstr "" |
938 | + |
939 | +#. module: l10n_it_corrispettivi |
940 | +#: code:addons/l10n_it_corrispettivi/account.py:64 |
941 | +#: code:addons/l10n_it_corrispettivi/account.py:79 |
942 | +#: code:addons/l10n_it_corrispettivi/account.py:93 |
943 | +#: code:addons/l10n_it_corrispettivi/account.py:97 |
944 | +#, python-format |
945 | +msgid "Error!" |
946 | +msgstr "" |
947 | + |
948 | +#. module: l10n_it_corrispettivi |
949 | +#: field:corrispettivi.config.data,journal_view_id:0 |
950 | +msgid "Journal View" |
951 | +msgstr "" |
952 | + |
953 | +#. module: l10n_it_corrispettivi |
954 | +#: view:account.invoice:0 |
955 | +msgid "Payments" |
956 | +msgstr "" |
957 | + |
958 | +#. module: l10n_it_corrispettivi |
959 | +#: view:corrispettivi.config.data:0 |
960 | +msgid "Select data to configure Corrispettivi module." |
961 | +msgstr "" |
962 | + |
963 | +#. module: l10n_it_corrispettivi |
964 | +#: view:account.invoice:0 |
965 | +msgid "Approve" |
966 | +msgstr "" |
967 | + |
968 | +#. module: l10n_it_corrispettivi |
969 | +#: view:account.invoice:0 |
970 | +msgid "Validate" |
971 | +msgstr "" |
972 | + |
973 | +#. module: l10n_it_corrispettivi |
974 | +#: view:corrispettivi.config.data:0 |
975 | +msgid "Configure" |
976 | +msgstr "" |
977 | + |
978 | +#. module: l10n_it_corrispettivi |
979 | +#: help:corrispettivi.config.data,default_credit_account_id:0 |
980 | +#: help:corrispettivi.config.data,default_debit_account_id:0 |
981 | +msgid "If doubtful, use income account" |
982 | +msgstr "" |
983 | + |
984 | +#. module: l10n_it_corrispettivi |
985 | +#: view:account.invoice:0 |
986 | +msgid "Residual Amount" |
987 | +msgstr "" |
988 | + |
989 | +#. module: l10n_it_corrispettivi |
990 | +#: view:account.invoice:0 |
991 | +msgid "Unpaid" |
992 | +msgstr "" |
993 | + |
994 | +#. module: l10n_it_corrispettivi |
995 | +#: field:corrispettivi.config.data,default_debit_account_id:0 |
996 | +msgid "Default debit account" |
997 | +msgstr "" |
998 | + |
999 | +#. module: l10n_it_corrispettivi |
1000 | +#: field:corrispettivi.config.data,config_logo:0 |
1001 | +msgid "Image" |
1002 | +msgstr "" |
1003 | + |
1004 | +#. module: l10n_it_corrispettivi |
1005 | +#: sql_constraint:account.journal:0 |
1006 | +msgid "The name of the journal must be unique per company !" |
1007 | +msgstr "" |
1008 | + |
1009 | +#. module: l10n_it_corrispettivi |
1010 | +#: view:corrispettivi.config.data:0 |
1011 | +msgid "Configure Corrispettivi Journal" |
1012 | +msgstr "" |
1013 | + |
1014 | +#. module: l10n_it_corrispettivi |
1015 | +#: model:ir.actions.act_window,name:l10n_it_corrispettivi.action_corrispettivi_config_data |
1016 | +msgid "Configure Corrispettivi" |
1017 | +msgstr "" |
1018 | + |
1019 | +#. module: l10n_it_corrispettivi |
1020 | +#: code:addons/l10n_it_corrispettivi/account.py:65 |
1021 | +#: code:addons/l10n_it_corrispettivi/account.py:80 |
1022 | +#: code:addons/l10n_it_corrispettivi/account.py:94 |
1023 | +#, python-format |
1024 | +msgid "No partner \"corrispettivi\" found" |
1025 | +msgstr "" |
1026 | + |
1027 | +#. module: l10n_it_corrispettivi |
1028 | +#: view:account.invoice:0 |
1029 | +msgid "Re-Open" |
1030 | +msgstr "" |
1031 | + |
1032 | +#. module: l10n_it_corrispettivi |
1033 | +#: model:ir.module.module,description:l10n_it_corrispettivi.module_meta_information |
1034 | +msgid "This module helps to easily input Corrispettivi within OpenERP" |
1035 | +msgstr "" |
1036 | + |
1037 | +#. module: l10n_it_corrispettivi |
1038 | +#: view:account.invoice:0 |
1039 | +#: model:ir.model,name:l10n_it_corrispettivi.model_account_invoice |
1040 | +msgid "Invoice" |
1041 | +msgstr "" |
1042 | + |
1043 | +#. module: l10n_it_corrispettivi |
1044 | +#: sql_constraint:account.journal:0 |
1045 | +msgid "The code of the journal must be unique per company !" |
1046 | +msgstr "" |
1047 | + |
1048 | +#. module: l10n_it_corrispettivi |
1049 | +#: view:account.invoice:0 |
1050 | +msgid "Cancel" |
1051 | +msgstr "" |
1052 | + |
1053 | +#. module: l10n_it_corrispettivi |
1054 | +#: model:ir.model,name:l10n_it_corrispettivi.model_res_partner |
1055 | +msgid "Partner" |
1056 | +msgstr "" |
1057 | + |
1058 | +#. module: l10n_it_corrispettivi |
1059 | +#: view:account.invoice:0 |
1060 | +msgid "Untaxed Amount" |
1061 | +msgstr "" |
1062 | + |
1063 | +#. module: l10n_it_corrispettivi |
1064 | +#: view:account.invoice:0 |
1065 | +msgid "Salesman" |
1066 | +msgstr "" |
1067 | + |
1068 | +#. module: l10n_it_corrispettivi |
1069 | +#: view:account.invoice:0 |
1070 | +msgid "Total Amount" |
1071 | +msgstr "" |
1072 | + |
1073 | +#. module: l10n_it_corrispettivi |
1074 | +#: view:account.invoice:0 |
1075 | +msgid "Additional Information" |
1076 | +msgstr "" |
1077 | + |
1078 | |
1079 | === added file 'l10n_it_corrispettivi/installer.py' |
1080 | --- l10n_it_corrispettivi/installer.py 1970-01-01 00:00:00 +0000 |
1081 | +++ l10n_it_corrispettivi/installer.py 2011-08-11 19:51:22 +0000 |
1082 | @@ -0,0 +1,68 @@ |
1083 | +# -*- encoding: utf-8 -*- |
1084 | +############################################################################## |
1085 | +# |
1086 | +# Copyright (C) 2011 Associazione OpenERP Italia |
1087 | +# (<http://www.openerp-italia.org>). |
1088 | +# All Rights Reserved |
1089 | +# |
1090 | +# This program is free software: you can redistribute it and/or modify |
1091 | +# it under the terms of the GNU Affero General Public License as published |
1092 | +# by the Free Software Foundation, either version 3 of the License, or |
1093 | +# (at your option) any later version. |
1094 | +# |
1095 | +# This program is distributed in the hope that it will be useful, |
1096 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
1097 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1098 | +# GNU General Public License for more details. |
1099 | +# |
1100 | +# You should have received a copy of the GNU Affero General Public License |
1101 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
1102 | +# |
1103 | +############################################################################## |
1104 | + |
1105 | +from osv import fields, osv |
1106 | + |
1107 | +class corrispettivi_config_data(osv.osv_memory): |
1108 | + _name = 'corrispettivi.config.data' |
1109 | + _inherit = 'res.config' |
1110 | + |
1111 | + _columns = { |
1112 | + 'default_credit_account_id': fields.many2one('account.account', 'Default credit account', |
1113 | + domain=[('type','!=','view')], required=True, help='If doubtful, use income account'), |
1114 | + 'default_debit_account_id': fields.many2one('account.account', 'Default debit account', |
1115 | + domain=[('type','!=','view')], required=True, help='If doubtful, use income account'), |
1116 | + 'journal_view_id': fields.many2one('account.journal.view', 'Journal View', required=True), |
1117 | + } |
1118 | + |
1119 | + def execute(self, cr, uid, ids, context=None): |
1120 | + for o in self.browse(cr, uid, ids, context=context): |
1121 | + seq_id = self.pool.get('ir.sequence').create(cr, uid, { |
1122 | + 'name': 'Corrispettivi Journal', |
1123 | + 'code': 'account.journal', |
1124 | + 'padding': 3, |
1125 | + 'prefix': 'COJ/%(year)s/', |
1126 | + }) |
1127 | + journal_id = self.pool.get('account.journal').create(cr, uid, { |
1128 | + 'view_id': o.journal_view_id.id, |
1129 | + 'code': 'COJ', |
1130 | + 'name': 'Corrispettivi Journal', |
1131 | + 'type': 'sale', |
1132 | + 'corrispettivi': True, |
1133 | + 'sequence_id': seq_id, |
1134 | + 'default_credit_account_id': o.default_credit_account_id.id, |
1135 | + 'default_debit_account_id': o.default_debit_account_id.id, |
1136 | + }) |
1137 | + partner_id = self.pool.get('res.partner').create(cr, uid, { |
1138 | + 'name': 'Corrispettivi', |
1139 | + 'ref': 'COJ', |
1140 | + 'customer': False, |
1141 | + 'supplier': False, |
1142 | + 'corrispettivi': True, |
1143 | + }) |
1144 | + address_id = self.pool.get('res.partner.address').create(cr, uid, { |
1145 | + 'name': 'Corrispettivi', |
1146 | + 'partner_id': partner_id, |
1147 | + }) |
1148 | + |
1149 | +corrispettivi_config_data() |
1150 | + |
1151 | |
1152 | === added file 'l10n_it_corrispettivi/installer_view.xml' |
1153 | --- l10n_it_corrispettivi/installer_view.xml 1970-01-01 00:00:00 +0000 |
1154 | +++ l10n_it_corrispettivi/installer_view.xml 2011-08-11 19:51:22 +0000 |
1155 | @@ -0,0 +1,59 @@ |
1156 | +<?xml version="1.0" encoding="utf-8"?> |
1157 | +<openerp> |
1158 | + <data> |
1159 | + |
1160 | + <!-- configartion view --> |
1161 | + |
1162 | + <record id="view_corrispettivi_config_data" model="ir.ui.view"> |
1163 | + <field name="name">Configure Corrispettivi</field> |
1164 | + <field name="model">corrispettivi.config.data</field> |
1165 | + <field name="type">form</field> |
1166 | + <field name="inherit_id" ref="base.res_config_installer"/> |
1167 | + <field name="arch" type="xml"> |
1168 | + <data> |
1169 | + <form position="attributes"> |
1170 | + <attribute name="string">Corrispettivi Configuration</attribute> |
1171 | + </form> |
1172 | + <separator string="title" position="attributes"> |
1173 | + <attribute name="string">Configure Corrispettivi Journal</attribute> |
1174 | + </separator> |
1175 | + <xpath expr="//label[@string='description']" position="attributes"> |
1176 | + <attribute name="string">Select data to configure Corrispettivi module.</attribute> |
1177 | + </xpath> |
1178 | + <xpath expr="//button[@string='Install Modules']" position="attributes"> |
1179 | + <attribute name="string">Configure</attribute> |
1180 | + </xpath> |
1181 | + <xpath expr='//separator[@string="vsep"]' position='attributes'> |
1182 | + <attribute name='rowspan'>15</attribute> |
1183 | + <attribute name='string'></attribute> |
1184 | + </xpath> |
1185 | + <group colspan="8"> |
1186 | + <group colspan="4" > |
1187 | + <field name="default_credit_account_id"/> |
1188 | + <field name="default_debit_account_id"/> |
1189 | + <field name="journal_view_id"/> |
1190 | + </group> |
1191 | + </group> |
1192 | + </data> |
1193 | + </field> |
1194 | + </record> |
1195 | + |
1196 | + <record id="action_corrispettivi_config_data" model="ir.actions.act_window"> |
1197 | + <field name="name">Configure Corrispettivi</field> |
1198 | + <field name="type">ir.actions.act_window</field> |
1199 | + <field name="res_model">corrispettivi.config.data</field> |
1200 | + <field name="view_id" ref="view_corrispettivi_config_data"/> |
1201 | + <field name="view_type">form</field> |
1202 | + <field name="view_mode">form</field> |
1203 | + <field name="target">new</field> |
1204 | + </record> |
1205 | + |
1206 | + <!-- register configuration wizard --> |
1207 | + <record id="config_wizard_step_corrispettivi_config_data" model="ir.actions.todo"> |
1208 | + <field name="action_id" ref="action_corrispettivi_config_data"/> |
1209 | + <field name="restart">onskip</field> |
1210 | + <field name="groups_id" eval="[(6,0,[ref('base.group_extended')])]"/> |
1211 | + </record> |
1212 | + |
1213 | + </data> |
1214 | +</openerp> |