Merge lp:~vauxoo/addons-vauxoo/truiz-parameters_fiscal_printer into lp:addons-vauxoo
- truiz-parameters_fiscal_printer
- Merge into 6.0-trunk
Proposed by
Tulio Ruiz (Vauxoo)
Status: | Needs review |
---|---|
Proposed branch: | lp:~vauxoo/addons-vauxoo/truiz-parameters_fiscal_printer |
Merge into: | lp:addons-vauxoo |
Diff against target: |
602 lines (+515/-0) 15 files modified
l10n_ve_imex/__init__.py (+1/-0) l10n_ve_imex/__openerp__.py (+58/-0) l10n_ve_imex/i18n/es_VE.po (+92/-0) l10n_ve_imex/model/__init__.py (+2/-0) l10n_ve_imex/model/invoice.py (+49/-0) l10n_ve_imex/model/res_company.py (+48/-0) l10n_ve_imex/view/invoice_view.xml (+47/-0) l10n_ve_imex/view/res_company_view.xml (+21/-0) parameters_fiscal_printer/__init__.py (+31/-0) parameters_fiscal_printer/__openerp__.py (+53/-0) parameters_fiscal_printer/i18n/es_VE.po (+39/-0) parameters_fiscal_printer/invoice.py (+34/-0) parameters_fiscal_printer/security/ir.model.access.csv (+4/-0) parameters_fiscal_printer/security/parameters_fiscal_printer_security.xml (+13/-0) parameters_fiscal_printer/view/invoice_view.xml (+23/-0) |
To merge this branch: | bzr merge lp:~vauxoo/addons-vauxoo/truiz-parameters_fiscal_printer |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Jose Antonio Morales Ponce(vauxoo) - - http://www.vauxoo.com | Pending | ||
Gabriela Quilarque | Pending | ||
Review via email: mp+121501@code.launchpad.net |
Commit message
Description of the change
Module for adding two additional fields in account.invoice model.
Field 1: Num. de Factura Impresora Fiscal.
Field 2: Num. de Máquina Fiscal.
These fields are required for venezuelan laws in the sale book
To post a comment you must log in.
- 426. By Tulio Ruiz (Vauxoo)
-
[ADD] Added l10n_ve_imex module
Unmerged revisions
- 426. By Tulio Ruiz (Vauxoo)
-
[ADD] Added l10n_ve_imex module
- 425. By Tulio Ruiz (Vauxoo)
-
[FIX] Added security and permissions
- 424. By Tulio Ruiz (Vauxoo)
-
[IMP] Created module for adding 2 new fields to accoint.invoice model
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === added directory 'l10n_ve_imex' |
2 | === added file 'l10n_ve_imex/__init__.py' |
3 | --- l10n_ve_imex/__init__.py 1970-01-01 00:00:00 +0000 |
4 | +++ l10n_ve_imex/__init__.py 2012-09-25 01:18:21 +0000 |
5 | @@ -0,0 +1,1 @@ |
6 | +import model |
7 | |
8 | === added file 'l10n_ve_imex/__openerp__.py' |
9 | --- l10n_ve_imex/__openerp__.py 1970-01-01 00:00:00 +0000 |
10 | +++ l10n_ve_imex/__openerp__.py 2012-09-25 01:18:21 +0000 |
11 | @@ -0,0 +1,58 @@ |
12 | +#!/usr/bin/python |
13 | +# -*- encoding: utf-8 -*- |
14 | +########################################################################### |
15 | +# Module Writen to OpenERP, Open Source Management Solution |
16 | +# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>). |
17 | +# All Rights Reserved |
18 | +###############Credits###################################################### |
19 | +# Coded by: Israel Fermín Montilla <israel@openerp.com.ve> |
20 | +# Planified by: Nhomar Hernandez |
21 | +# Audited by: Vauxoo C.A. |
22 | +############################################################################# |
23 | +# This program is free software: you can redistribute it and/or modify |
24 | +# it under the terms of the GNU Affero General Public License as published by |
25 | +# the Free Software Foundation, either version 3 of the License, or |
26 | +# (at your option) any later version. |
27 | +# |
28 | +# This program is distributed in the hope that it will be useful, |
29 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
30 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
31 | +# GNU Affero General Public License for more details. |
32 | +# |
33 | +# You should have received a copy of the GNU Affero General Public License |
34 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
35 | +################################################################################ |
36 | +{ |
37 | + 'name' : 'Registration and Import Management', |
38 | + 'version' : '0.1', |
39 | + 'author' : 'Vauxoo', |
40 | + 'description' : ''' |
41 | + |
42 | + This module adds functionality to the billing module allows to register documendos import and manage them. |
43 | + |
44 | + No new menus will be created with the installation of this module, you will find three new fields at the hearing |
45 | + in the form of bills. These fields are: |
46 | + |
47 | + Boolean Determines if the invoice is import a spreadsheet that is called Import Spreadsheet and in turn displays |
48 | + a new tab to complete the import log |
49 | + |
50 | + Relational field to the invoice that is directly related to the import document and is called Invoice Affected |
51 | + |
52 | + And a char field where it will be placed the number of the import document, this field has the name Number |
53 | + |
54 | + Also added to the company in view of the configuration pestañana relationship to products, to determine which |
55 | + products will be calculated by company when generating the book buying and selling |
56 | + |
57 | + ''', |
58 | + |
59 | + 'category' : '', |
60 | + 'website' : 'http://openerp.com', |
61 | + 'depends' : ['account'], |
62 | + 'update_xml' : [ |
63 | + 'view/invoice_view.xml', |
64 | + 'view/res_company_view.xml', |
65 | + ], |
66 | + 'demo' : [], |
67 | + 'active' : False, |
68 | + 'installable': True, |
69 | +} |
70 | |
71 | === added directory 'l10n_ve_imex/data' |
72 | === added directory 'l10n_ve_imex/demo' |
73 | === added directory 'l10n_ve_imex/i18n' |
74 | === added file 'l10n_ve_imex/i18n/es_VE.po' |
75 | --- l10n_ve_imex/i18n/es_VE.po 1970-01-01 00:00:00 +0000 |
76 | +++ l10n_ve_imex/i18n/es_VE.po 2012-09-25 01:18:21 +0000 |
77 | @@ -0,0 +1,92 @@ |
78 | +# Translation of OpenERP Server. |
79 | +# This file contains the translation of the following modules: |
80 | +# * l10n_ve_imex |
81 | +# |
82 | +msgid "" |
83 | +msgstr "" |
84 | +"Project-Id-Version: OpenERP Server 6.0.4\n" |
85 | +"Report-Msgid-Bugs-To: support@openerp.com\n" |
86 | +"POT-Creation-Date: 2012-08-22 21:02+0000\n" |
87 | +"PO-Revision-Date: 2012-08-22 21:02+0000\n" |
88 | +"Last-Translator: <>\n" |
89 | +"Language-Team: \n" |
90 | +"MIME-Version: 1.0\n" |
91 | +"Content-Type: text/plain; charset=UTF-8\n" |
92 | +"Content-Transfer-Encoding: \n" |
93 | +"Plural-Forms: \n" |
94 | + |
95 | +#. module: l10n_ve_imex |
96 | +#: field:res.company,product_ids:0 |
97 | +msgid "unknown" |
98 | +msgstr "unknown" |
99 | + |
100 | +#. module: l10n_ve_imex |
101 | +#: field:account.invoice,import_spreadsheet:0 |
102 | +msgid "Import Spreadsheet" |
103 | +msgstr "Documento de importación" |
104 | + |
105 | +#. module: l10n_ve_imex |
106 | +#: constraint:account.invoice:0 |
107 | +msgid "The Document you have been entering for this Partner has already been recorded" |
108 | +msgstr "El documento que esta intentando ingresar ya ha sido grabado en el sistema " |
109 | + |
110 | +#. module: l10n_ve_imex |
111 | +#: view:res.company:0 |
112 | +msgid "Products to Importation" |
113 | +msgstr "Productos importados" |
114 | + |
115 | +#. module: l10n_ve_imex |
116 | +#: model:ir.model,name:l10n_ve_imex.model_res_company |
117 | +msgid "Companies" |
118 | +msgstr "Compañías" |
119 | + |
120 | +#. module: l10n_ve_imex |
121 | +#: constraint:res.company:0 |
122 | +msgid "Error! You can not create recursive companies." |
123 | +msgstr "¡Error! No puede crear compañías recursivas." |
124 | + |
125 | +#. module: l10n_ve_imex |
126 | +#: field:account.invoice,affected_invoice:0 |
127 | +msgid "Affected Invoice" |
128 | +msgstr "Factura relacionada" |
129 | + |
130 | +#. module: l10n_ve_imex |
131 | +#: field:account.invoice,import_spreadsheet_name:0 |
132 | +msgid "Number" |
133 | +msgstr "Número" |
134 | + |
135 | +#. module: l10n_ve_imex |
136 | +#: help:res.company,product_ids:0 |
137 | +msgid "Product list to use in the importation compute" |
138 | +msgstr "Lista de productos que sera usado para el calculo de importación y la generacion del libro de compra y venta" |
139 | + |
140 | +#. module: l10n_ve_imex |
141 | +#: model:ir.model,name:l10n_ve_imex.model_account_invoice |
142 | +msgid "Invoice" |
143 | +msgstr "Factura" |
144 | + |
145 | +#. module: l10n_ve_imex |
146 | +#: help:account.invoice,import_spreadsheet:0 |
147 | +msgid "Indicates if this invoice is a document import" |
148 | +msgstr "Indica si esta factura es un documento de importación" |
149 | + |
150 | +#. module: l10n_ve_imex |
151 | +#: help:account.invoice,affected_invoice:0 |
152 | +msgid "Select the invoice affectd by this document" |
153 | +msgstr "Seleccione la factura involucrada en este documento" |
154 | + |
155 | +#. module: l10n_ve_imex |
156 | +#: view:account.invoice:0 |
157 | +msgid "Importation" |
158 | +msgstr "Importación" |
159 | + |
160 | +#. module: l10n_ve_imex |
161 | +#: view:res.company:0 |
162 | +msgid "Configuration" |
163 | +msgstr "Configuración" |
164 | + |
165 | +#. module: l10n_ve_imex |
166 | +#: help:account.invoice,import_spreadsheet_name:0 |
167 | +msgid "Import Spreadsheet Number" |
168 | +msgstr "Numero del documento de importación" |
169 | + |
170 | |
171 | === added directory 'l10n_ve_imex/model' |
172 | === added file 'l10n_ve_imex/model/__init__.py' |
173 | --- l10n_ve_imex/model/__init__.py 1970-01-01 00:00:00 +0000 |
174 | +++ l10n_ve_imex/model/__init__.py 2012-09-25 01:18:21 +0000 |
175 | @@ -0,0 +1,2 @@ |
176 | +import invoice |
177 | +import res_company |
178 | |
179 | === added file 'l10n_ve_imex/model/invoice.py' |
180 | --- l10n_ve_imex/model/invoice.py 1970-01-01 00:00:00 +0000 |
181 | +++ l10n_ve_imex/model/invoice.py 2012-09-25 01:18:21 +0000 |
182 | @@ -0,0 +1,49 @@ |
183 | +#!/usr/bin/python |
184 | +# -*- encoding: utf-8 -*- |
185 | +########################################################################### |
186 | +# Module Writen to OpenERP, Open Source Management Solution |
187 | +# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>). |
188 | +# All Rights Reserved |
189 | +###############Credits###################################################### |
190 | +# Coded by: Humberto Arocha <humberto@openerp.com.ve> |
191 | +# María Gabriela Quilarque <gabrielaquilarque97@gmail.com> |
192 | +# Javier Duran <javier@vauxoo.com> |
193 | +# Planified by: Nhomar Hernandez |
194 | +# Finance by: Helados Gilda, C.A. http://heladosgilda.com.ve |
195 | +# Audited by: Humberto Arocha humberto@openerp.com.ve |
196 | +############################################################################# |
197 | +# This program is free software: you can redistribute it and/or modify |
198 | +# it under the terms of the GNU General Public License as published by |
199 | +# the Free Software Foundation, either version 3 of the License, or |
200 | +# (at your option) any later version. |
201 | +# |
202 | +# This program is distributed in the hope that it will be useful, |
203 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
204 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
205 | +# GNU General Public License for more details. |
206 | +# |
207 | +# You should have received a copy of the GNU General Public License |
208 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
209 | +############################################################################## |
210 | +from osv import osv |
211 | +from osv import fields |
212 | +from tools.translate import _ |
213 | +from tools import config |
214 | +import time |
215 | +import datetime |
216 | +import decimal_precision as dp |
217 | + |
218 | +class invoice_inherit(osv.osv): |
219 | + """ """ |
220 | + |
221 | + _inherit='account.invoice' |
222 | + |
223 | + _columns={ |
224 | + 'import_spreadsheet':fields.boolean('Import Spreadsheet',help='Indicates if this invoice is a document import'), |
225 | + 'affected_invoice':fields.many2one('account.invoice','Affected Invoice',help='Select the invoice affectd by this document'), |
226 | + 'import_spreadsheet_name':fields.char('Number',25,help='Import Spreadsheet Number'), |
227 | + } |
228 | + |
229 | + |
230 | + |
231 | +invoice_inherit() |
232 | |
233 | === added file 'l10n_ve_imex/model/res_company.py' |
234 | --- l10n_ve_imex/model/res_company.py 1970-01-01 00:00:00 +0000 |
235 | +++ l10n_ve_imex/model/res_company.py 2012-09-25 01:18:21 +0000 |
236 | @@ -0,0 +1,48 @@ |
237 | +#!/usr/bin/python |
238 | +# -*- encoding: utf-8 -*- |
239 | +########################################################################### |
240 | +# Module Writen to OpenERP, Open Source Management Solution |
241 | +# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>). |
242 | +# All Rights Reserved |
243 | +###############Credits###################################################### |
244 | +# Coded by: Humberto Arocha <humberto@openerp.com.ve> |
245 | +# María Gabriela Quilarque <gabrielaquilarque97@gmail.com> |
246 | +# Javier Duran <javier@vauxoo.com> |
247 | +# Planified by: Nhomar Hernandez |
248 | +# Finance by: Helados Gilda, C.A. http://heladosgilda.com.ve |
249 | +# Audited by: Humberto Arocha humberto@openerp.com.ve |
250 | +############################################################################# |
251 | +# This program is free software: you can redistribute it and/or modify |
252 | +# it under the terms of the GNU General Public License as published by |
253 | +# the Free Software Foundation, either version 3 of the License, or |
254 | +# (at your option) any later version. |
255 | +# |
256 | +# This program is distributed in the hope that it will be useful, |
257 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
258 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
259 | +# GNU General Public License for more details. |
260 | +# |
261 | +# You should have received a copy of the GNU General Public License |
262 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
263 | +############################################################################## |
264 | +from osv import osv |
265 | +from osv import fields |
266 | +from tools.translate import _ |
267 | +from tools import config |
268 | +import time |
269 | +import datetime |
270 | +import decimal_precision as dp |
271 | + |
272 | +class res_company_inherit(osv.osv): |
273 | + """ """ |
274 | + |
275 | + _inherit='res.company' |
276 | + |
277 | + _columns={ |
278 | + 'product_ids':fields.many2many('product.product','product_import_rel','company_id','product_id',help='Product list to use in the importation compute'), |
279 | + |
280 | + } |
281 | + |
282 | + |
283 | + |
284 | +res_company_inherit() |
285 | |
286 | === added directory 'l10n_ve_imex/report' |
287 | === added directory 'l10n_ve_imex/security' |
288 | === added directory 'l10n_ve_imex/view' |
289 | === added file 'l10n_ve_imex/view/invoice_view.xml' |
290 | --- l10n_ve_imex/view/invoice_view.xml 1970-01-01 00:00:00 +0000 |
291 | +++ l10n_ve_imex/view/invoice_view.xml 2012-09-25 01:18:21 +0000 |
292 | @@ -0,0 +1,47 @@ |
293 | +<?xml version="1.0" encoding="utf-8"?> |
294 | +<openerp> |
295 | + <data> |
296 | + |
297 | + <record model="ir.ui.view" id="inherited_account_invoice_form_expedient"> |
298 | + <field name="name">account.invoice.inherit.expedient</field> |
299 | + <field name="model">account.invoice</field> |
300 | + <field name="inherit_id" ref="account.invoice_form"/> |
301 | + <field name="arch" type="xml"> |
302 | + <xpath expr="//field[@name='date_invoice']" position="after"> |
303 | + <field name="import_spreadsheet"/> |
304 | + |
305 | + </xpath> |
306 | + |
307 | + <xpath expr="/form/notebook/page[@string='Other Info']" position="after"> |
308 | + |
309 | + <page string="Importation" attrs="{'invisible':[('import_spreadsheet','=',False)]}"> |
310 | + <field name="affected_invoice" attrs="{'readonly':[('type','in',['out_invoice','out_refund'])]}"/> |
311 | + <field name="import_spreadsheet_name" attrs="{'readonly':[('import_spreadsheet','=',False)],'required':[('import_spreadsheet','=',True)]}" /> |
312 | + </page> |
313 | + </xpath> |
314 | + </field> |
315 | + </record> |
316 | + |
317 | + <record model="ir.ui.view" id="inherited_account_invoice_supplier_form_expedient"> |
318 | + <field name="name">account.invoice.inherit.expedient2</field> |
319 | + <field name="model">account.invoice</field> |
320 | + <field name="inherit_id" ref="account.invoice_supplier_form"/> |
321 | + <field name="arch" type="xml"> |
322 | + <xpath expr="//field[@name='date_invoice']" position="after"> |
323 | + <field name="import_spreadsheet"/> |
324 | + |
325 | + </xpath> |
326 | + |
327 | + <xpath expr="/form/notebook/page[@string='Other Info']" position="after"> |
328 | + |
329 | + <page string="Importation" attrs="{'invisible':[('import_spreadsheet','=',False)],}"> |
330 | + <field name="affected_invoice" attrs="{'readonly':[('type','in',['out_invoice','out_refund'])],'required':[('import_spreadsheet','=',True)]}"/> |
331 | + <field name="import_spreadsheet_name" attrs="{'readonly':[('import_spreadsheet','=',False)],'required':[('import_spreadsheet','=',True)]}" /> |
332 | + </page> |
333 | + </xpath> |
334 | + </field> |
335 | + </record> |
336 | + |
337 | + |
338 | + </data> |
339 | +</openerp> |
340 | |
341 | === added file 'l10n_ve_imex/view/res_company_view.xml' |
342 | --- l10n_ve_imex/view/res_company_view.xml 1970-01-01 00:00:00 +0000 |
343 | +++ l10n_ve_imex/view/res_company_view.xml 2012-09-25 01:18:21 +0000 |
344 | @@ -0,0 +1,21 @@ |
345 | +<?xml version="1.0" encoding="utf-8"?> |
346 | +<openerp> |
347 | + <data> |
348 | + |
349 | + <record id="expdient_view_company" model="ir.ui.view"> |
350 | + <field name="name">expdient_view_by_company</field> |
351 | + <field name="model">res.company</field> |
352 | + <field name="type">form</field> |
353 | + <field name="inherit_id" ref="base.view_company_form"/> |
354 | + <field name="arch" type="xml"> |
355 | + <page string="Configuration" position="inside"> |
356 | + <newline/> |
357 | + <separator string="Products to Importation" colspan="9"/> |
358 | + <field name="product_ids" nolabel="1" colspan="9"/> |
359 | + <newline/> |
360 | + </page> |
361 | + </field> |
362 | + </record> |
363 | + |
364 | + </data> |
365 | +</openerp> |
366 | |
367 | === added directory 'l10n_ve_imex/wizard' |
368 | === added directory 'parameters_fiscal_printer' |
369 | === added file 'parameters_fiscal_printer/__init__.py' |
370 | --- parameters_fiscal_printer/__init__.py 1970-01-01 00:00:00 +0000 |
371 | +++ parameters_fiscal_printer/__init__.py 2012-09-25 01:18:21 +0000 |
372 | @@ -0,0 +1,31 @@ |
373 | +# -*- encoding: utf-8 -*- |
374 | +############################################################################## |
375 | +# |
376 | +# Copyright (c) 2010 Vauxoo C.A. (http://openerp.com.ve/) All Rights Reserved. |
377 | +# Tulio Ruiz <tulio@vauxoo.com> |
378 | +# |
379 | +# |
380 | +# WARNING: This program as such is intended to be used by professional |
381 | +# programmers who take the whole responsability of assessing all potential |
382 | +# consequences resulting from its eventual inadequacies and bugs |
383 | +# End users who are looking for a ready-to-use solution with commercial |
384 | +# garantees and support are strongly adviced to contract a Free Software |
385 | +# Service Company |
386 | +# |
387 | +# This program is Free Software; you can redistribute it and/or |
388 | +# modify it under the terms of the GNU General Public License |
389 | +# as published by the Free Software Foundation; either version 2 |
390 | +# of the License, or (at your option) any later version. |
391 | +# |
392 | +# This program is distributed in the hope that it will be useful, |
393 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
394 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
395 | +# GNU General Public License for more details. |
396 | +# |
397 | +# You should have received a copy of the GNU General Public License |
398 | +# along with this program; if not, write to the Free Software |
399 | +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
400 | +# |
401 | +############################################################################## |
402 | + |
403 | +import invoice |
404 | |
405 | === added file 'parameters_fiscal_printer/__openerp__.py' |
406 | --- parameters_fiscal_printer/__openerp__.py 1970-01-01 00:00:00 +0000 |
407 | +++ parameters_fiscal_printer/__openerp__.py 2012-09-25 01:18:21 +0000 |
408 | @@ -0,0 +1,53 @@ |
409 | +# -*- encoding: utf-8 -*- |
410 | +############################################################################## |
411 | +# |
412 | +# Copyright (c) 2011 Vauxoo C.A. (http://openerp.com.ve/) All Rights Reserved. |
413 | +# Tulio Ruiz <tulio@vauxoo.com> |
414 | +# |
415 | +# |
416 | +# WARNING: This program as such is intended to be used by professional |
417 | +# programmers who take the whole responsability of assessing all potential |
418 | +# consequences resulting from its eventual inadequacies and bugs |
419 | +# End users who are looking for a ready-to-use solution with commercial |
420 | +# garantees and support are strongly adviced to contract a Free Software |
421 | +# Service Company |
422 | +# |
423 | +# This program is Free Software; you can redistribute it and/or |
424 | +# modify it under the terms of the GNU General Public License |
425 | +# as published by the Free Software Foundation; either version 2 |
426 | +# of the License, or (at your option) any later version. |
427 | +# |
428 | +# This program is distributed in the hope that it will be useful, |
429 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
430 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
431 | +# GNU General Public License for more details. |
432 | +# |
433 | +# You should have received a copy of the GNU General Public License |
434 | +# along with this program; if not, write to the Free Software |
435 | +# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
436 | +# |
437 | +############################################################################## |
438 | + |
439 | +{ |
440 | + "name" : "Parameters Fical Printer", |
441 | + "version" : "0.1", |
442 | + "depends" : ["account","l10n_ve_fiscal_requirements",], |
443 | + "author" : "Vauxoo", |
444 | + "description" : """ |
445 | + What this module does: |
446 | + Adds two fields required by venezuelan laws to the invoice thar must be printed in sales/purchase book |
447 | + """, |
448 | + "website" : "http://openerp.com.ve", |
449 | + "category" : "Generic Modules/Accounting", |
450 | + "init_xml" : [ |
451 | + ], |
452 | + "demo_xml" : [ |
453 | + ], |
454 | + "update_xml" : [ |
455 | + "security/parameters_fiscal_printer_security.xml", |
456 | + "security/ir.model.access.csv", |
457 | + "view/invoice_view.xml", |
458 | + ], |
459 | + "active": False, |
460 | + "installable": True, |
461 | +} |
462 | |
463 | === added directory 'parameters_fiscal_printer/i18n' |
464 | === added file 'parameters_fiscal_printer/i18n/es_VE.po' |
465 | --- parameters_fiscal_printer/i18n/es_VE.po 1970-01-01 00:00:00 +0000 |
466 | +++ parameters_fiscal_printer/i18n/es_VE.po 2012-09-25 01:18:21 +0000 |
467 | @@ -0,0 +1,39 @@ |
468 | +# Translation of OpenERP Server. |
469 | +# This file contains the translation of the following modules: |
470 | +# * parameters_fiscal_printer |
471 | +# |
472 | +msgid "" |
473 | +msgstr "" |
474 | +"Project-Id-Version: OpenERP Server 6.0.4\n" |
475 | +"Report-Msgid-Bugs-To: support@openerp.com\n" |
476 | +"POT-Creation-Date: 2012-08-27 20:03+0000\n" |
477 | +"PO-Revision-Date: 2012-08-27 20:03+0000\n" |
478 | +"Last-Translator: <>\n" |
479 | +"Language-Team: \n" |
480 | +"MIME-Version: 1.0\n" |
481 | +"Content-Type: text/plain; charset=UTF-8\n" |
482 | +"Content-Transfer-Encoding: \n" |
483 | +"Plural-Forms: \n" |
484 | + |
485 | +#. module: parameters_fiscal_printer |
486 | +#: field:account.invoice,fiscal_printer:0 |
487 | +#: help:account.invoice,fiscal_printer:0 |
488 | +msgid "Fiscal printer number" |
489 | +msgstr "Num. Maquina Fiscal" |
490 | + |
491 | +#. module: parameters_fiscal_printer |
492 | +#: constraint:account.invoice:0 |
493 | +msgid "The Document you have been entering for this Partner has already been recorded" |
494 | +msgstr "El documento que esta intentando ingresar ya ha sido grabado en el sistema " |
495 | + |
496 | +#. module: parameters_fiscal_printer |
497 | +#: model:ir.model,name:parameters_fiscal_printer.model_account_invoice |
498 | +msgid "Invoice" |
499 | +msgstr "Factura" |
500 | + |
501 | +#. module: parameters_fiscal_printer |
502 | +#: field:account.invoice,invoice_printer:0 |
503 | +#: help:account.invoice,invoice_printer:0 |
504 | +msgid "Fiscal printer invoice number" |
505 | +msgstr "Num. de Factura Impresora Fiscal" |
506 | + |
507 | |
508 | === added file 'parameters_fiscal_printer/invoice.py' |
509 | --- parameters_fiscal_printer/invoice.py 1970-01-01 00:00:00 +0000 |
510 | +++ parameters_fiscal_printer/invoice.py 2012-09-25 01:18:21 +0000 |
511 | @@ -0,0 +1,34 @@ |
512 | +# -*- encoding: utf-8 -*- |
513 | +########################################################################### |
514 | +# Module Writen to OpenERP, Open Source Management Solution |
515 | +# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>). |
516 | +# All Rights Reserved |
517 | +###############Credits###################################################### |
518 | +# Copyright (c) 2011 Vauxoo C.A. (http://openerp.com.ve/) All Rights Reserved. |
519 | +# Tulio Ruiz <tulio@vauxoo.com> |
520 | +############################################################################# |
521 | +# This program is free software: you can redistribute it and/or modify |
522 | +# it under the terms of the GNU Affero General Public License as published by |
523 | +# the Free Software Foundation, either version 3 of the License, or |
524 | +# (at your option) any later version. |
525 | +# |
526 | +# This program is distributed in the hope that it will be useful, |
527 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
528 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
529 | +# GNU Affero General Public License for more details. |
530 | +# |
531 | +# You should have received a copy of the GNU Affero General Public License |
532 | +# along with this program. If not, see <http://www.gnu.org/licenses/>. |
533 | +############################################################################## |
534 | +from osv import osv |
535 | +from osv import fields |
536 | + |
537 | +class account_invoice(osv.osv): |
538 | + _inherit = 'account.invoice' |
539 | + |
540 | + _columns = { |
541 | + 'invoice_printer' : fields.char('Fiscal printer invoice number', size=64, required=False,help="Fiscal printer invoice number"), |
542 | + 'fiscal_printer' : fields.char('Fiscal printer number', size=64, required=False,help="Fiscal printer number"), |
543 | + } |
544 | + |
545 | +account_invoice() |
546 | |
547 | === added directory 'parameters_fiscal_printer/security' |
548 | === added file 'parameters_fiscal_printer/security/ir.model.access.csv' |
549 | --- parameters_fiscal_printer/security/ir.model.access.csv 1970-01-01 00:00:00 +0000 |
550 | +++ parameters_fiscal_printer/security/ir.model.access.csv 2012-09-25 01:18:21 +0000 |
551 | @@ -0,0 +1,4 @@ |
552 | +"id","name","model_id:id","group_id:id","perm_read","perm_write","perm_create","perm_unlink" |
553 | +"access_parameter_fiscal_printer_user","parameter.fiscal.printer.user","model_account_invoice","parameters_fiscal_printer.group_parameters_fiscal_printer_user",1,0,0,0 |
554 | +"access_parameter_fiscal_printer_manager","parameter.fiscal.printer.manager","model_account_invoice","parameters_fiscal_printer.group_parameters_fiscal_printer_manager",1,1,1,1 |
555 | + |
556 | |
557 | === added file 'parameters_fiscal_printer/security/parameters_fiscal_printer_security.xml' |
558 | --- parameters_fiscal_printer/security/parameters_fiscal_printer_security.xml 1970-01-01 00:00:00 +0000 |
559 | +++ parameters_fiscal_printer/security/parameters_fiscal_printer_security.xml 2012-09-25 01:18:21 +0000 |
560 | @@ -0,0 +1,13 @@ |
561 | +<?xml version="1.0" encoding="utf-8"?> |
562 | +<openerp> |
563 | +<data noupdate="1"> |
564 | + <record id="group_parameters_fiscal_printer_user" model="res.groups"> |
565 | + <field name="name">Parameters Fiscal Printer / User</field> |
566 | + </record> |
567 | + |
568 | + <record id="group_parameters_fiscal_printer_manager" model="res.groups"> |
569 | + <field name="name">Parameters Fiscal Printer / Manager</field> |
570 | + </record> |
571 | + |
572 | +</data> |
573 | +</openerp> |
574 | |
575 | === added directory 'parameters_fiscal_printer/view' |
576 | === added file 'parameters_fiscal_printer/view/invoice_view.xml' |
577 | --- parameters_fiscal_printer/view/invoice_view.xml 1970-01-01 00:00:00 +0000 |
578 | +++ parameters_fiscal_printer/view/invoice_view.xml 2012-09-25 01:18:21 +0000 |
579 | @@ -0,0 +1,23 @@ |
580 | +<?xml version="1.0" encoding="utf-8"?> |
581 | +<openerp> |
582 | + <data> |
583 | + <!-- |
584 | + ===================================================== |
585 | + Invoices Extension |
586 | + ===================================================== |
587 | + --> |
588 | + <record id="account_invoice_ext_view__loc_ve_parameter_fiscal_printer" model="ir.ui.view"> |
589 | + <field name="name">invoice_extended.account.invoice.parameter.fiscal.printer</field> |
590 | + <field name="model">account.invoice</field> |
591 | + <field name="type">form</field> |
592 | + <field name="inherit_id" ref="l10n_ve_fiscal_requirements.account_invoice_nro_control_customer_form"/> |
593 | + <field name="arch" type="xml"> |
594 | + <xpath expr="/form/notebook/page[@string='Invoice']/field[@name='invoice_line']" position="before"> |
595 | + <field name="invoice_printer" groups="parameters_fiscal_printer.group_parameters_fiscal_printer_user"/> |
596 | + <field name="fiscal_printer" groups="parameters_fiscal_printer.group_parameters_fiscal_printer_user"/> |
597 | + </xpath> |
598 | + </field> |
599 | + </record> |
600 | + </data> |
601 | +</openerp> |
602 | + |