Merge lp:~vauxoo/openerp-venezuela-localization/israel_invoice-nro-control-fiscal-integration into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Proposed by Israel Fermin Montilla
Status: Merged
Merged at revision: 391
Proposed branch: lp:~vauxoo/openerp-venezuela-localization/israel_invoice-nro-control-fiscal-integration
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 672 lines (+271/-246)
10 files modified
l10n_ve_fiscal_requirements/__init__.py (+2/-2)
l10n_ve_fiscal_requirements/__openerp__.py (+22/-4)
l10n_ve_fiscal_requirements/i18n/es_VE.po (+229/-121)
l10n_ve_fiscal_requirements/invoice.py (+2/-5)
l10n_ve_fiscal_requirements/partner.py (+5/-5)
l10n_ve_fiscal_requirements/res_company.py (+2/-2)
l10n_ve_fiscal_requirements/wizard/wizard_invoice_nro_ctrl.py (+9/-6)
l10n_ve_invoice_nro_ctrl/__init__.py (+0/-28)
l10n_ve_invoice_nro_ctrl/__openerp__.py (+0/-45)
l10n_ve_invoice_nro_ctrl/model/__init__.py (+0/-28)
To merge this branch: bzr merge lp:~vauxoo/openerp-venezuela-localization/israel_invoice-nro-control-fiscal-integration
Reviewer Review Type Date Requested Status
Nhomar - Vauxoo Pending
Review via email: mp+77752@code.launchpad.net

Description of the change

Integrated the damaged paper wizard with the fiscal requirements module, improved the documentation on the __openerp__.py, reviewed and corrected some English texts and re-translated the module

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
=== modified file 'l10n_ve_fiscal_requirements/__init__.py'
--- l10n_ve_fiscal_requirements/__init__.py 2011-09-27 00:55:47 +0000
+++ l10n_ve_fiscal_requirements/__init__.py 2011-09-30 19:05:29 +0000
@@ -18,10 +18,10 @@
18# along with this program. If not, see <http://www.gnu.org/licenses/>.18# along with this program. If not, see <http://www.gnu.org/licenses/>.
19#19#
20##############################################################################20##############################################################################
21
22import purchase21import purchase
23import stock22import stock
24import invoice23import invoice
25import partner24import partner
2625import res_company
26import wizard
27# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:27# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
2828
=== modified file 'l10n_ve_fiscal_requirements/__openerp__.py'
--- l10n_ve_fiscal_requirements/__openerp__.py 2011-09-27 01:19:42 +0000
+++ l10n_ve_fiscal_requirements/__openerp__.py 2011-09-30 19:05:29 +0000
@@ -26,18 +26,36 @@
26 "author" : "Vauxoo",26 "author" : "Vauxoo",
27 "website" : "http://vauxoo.com",27 "website" : "http://vauxoo.com",
28 "category": 'Generic Modules/Accounting',28 "category": 'Generic Modules/Accounting',
29 "description": """Requirements Venezuelan tax laws:29 "description": """Venezuelan Tax Laws Requirements:
30 - Invoice reference30 - Invoice Control Number
31 - Tax-except31 - Tax-except
32 - Required address invoice32 - Required address invoice
33 - Unique address invoice.33 - Unique address invoice.
34 - VAT verification for Venezuela rules.34 - VAT verification for Venezuela rules.
35 - Damaged invoices justification.
36 ---------------------------------------------------------------------------
37 For damaged invoices, you must go to the company and, under the configuration section,
38 create the corresponding journal and account.
39
40 ------------------------TECH INFO-------------------------------------------
41 CHANGELOG:
42 - For the migration to the l10n_ve on OpenERP:
43 - Changed the Invoice Ref label to Control Number
44 - Integrated the l10n_ve_nro_ctrl module functionality on this one
45 - Since the concept_id field is added by the l10n_ve_islr_withholding, an
46 error es rised if it's not installed and it is necesary to withhold
47 - If you need to withhold ISLR, you must install the module mentioned abofe
48
49 FURTHER DEVELOPMENT:
50 - Find a way to decouple this module and l10n_ve_islr_withholding
35 """,51 """,
36 'init_xml': [],52 'init_xml': [],
37 "depends" : ["base", "base_vat", "purchase", "stock", "account"],53 "depends" : ["base", "base_vat", "purchase", "stock", "account"],
38 'update_xml': [54 'update_xml': [
39 'stock_view.xml',55 'view/stock_view.xml',
40 'account_invoice_view.xml'56 'view/account_invoice_view.xml',
57 'view/res_company_view.xml',
58 'wizard/wizard_invoice_nro_ctrl_view.xml'
41 ],59 ],
42 'demo_xml': [],60 'demo_xml': [],
43 'test': [],61 'test': [],
4462
=== modified file 'l10n_ve_fiscal_requirements/i18n/es_VE.po'
--- l10n_ve_fiscal_requirements/i18n/es_VE.po 2011-06-02 16:04:35 +0000
+++ l10n_ve_fiscal_requirements/i18n/es_VE.po 2011-09-30 19:05:29 +0000
@@ -4,10 +4,10 @@
4#4#
5msgid ""5msgid ""
6msgstr ""6msgstr ""
7"Project-Id-Version: OpenERP Server 6.0.1\n"7"Project-Id-Version: OpenERP Server 6.0.3\n"
8"Report-Msgid-Bugs-To: support@openerp.com\n"8"Report-Msgid-Bugs-To: support@openerp.com\n"
9"POT-Creation-Date: 2011-04-04 20:01+0000\n"9"POT-Creation-Date: 2011-09-30 18:40+0000\n"
10"PO-Revision-Date: 2011-04-04 20:01+0000\n"10"PO-Revision-Date: 2011-09-30 18:40+0000\n"
11"Last-Translator: <>\n"11"Last-Translator: <>\n"
12"Language-Team: \n"12"Language-Team: \n"
13"MIME-Version: 1.0\n"13"MIME-Version: 1.0\n"
@@ -16,142 +16,250 @@
16"Plural-Forms: \n"16"Plural-Forms: \n"
1717
18#. module: l10n_ve_fiscal_requirements18#. module: l10n_ve_fiscal_requirements
19#: sql_constraint:purchase.order:019#: help:res.company,account_id:0
20msgid "Order Reference must be unique !"20msgid "Default account used for invoices and lines from damaged invoices"
21msgstr "¡La referencia del pedido debe ser única!"21msgstr "Cuenta por defecto para líneas y facturas dañadas"
22
23#. module: l10n_ve_fiscal_requirements
24#: code:addons/l10n_ve_fiscal_requirements/wizard/wizard_invoice_nro_ctrl.py:88
25#, python-format
26msgid "You have to install the ISLR Withholding"
27msgstr "Debe instalar el módulo para realizar retención de ISLR"
2228
23#. module: l10n_ve_fiscal_requirements29#. module: l10n_ve_fiscal_requirements
24#: field:account.invoice,sin_cred:030#: field:account.invoice,sin_cred:0
25msgid "Tax-exempt?"31msgid "Tax-exempt?"
26msgstr "Sin derecho a credito fiscal?"32msgstr "Libre de impuesto?"
2733
28#. module: l10n_ve_fiscal_requirements34#. module: l10n_ve_fiscal_requirements
29#: model:ir.module.module,description:l10n_ve_fiscal_requirements.module_meta_information35#: view:wizard.invoice.nro.ctrl:0
30msgid "Requirements Venezuelan tax laws:\n"36msgid "Create an invoice to justify the damaged one"
31" - Invoice reference\n"37msgstr "Crear una factura para justificar otra dañada"
32" - Tax-exempt\n"38
33" - Required address invoice\n"39#. module: l10n_ve_fiscal_requirements
34" - Unique address invoice.\n"40#: view:res.company:0
35" "41msgid "Data used by default for invoices damaged"
36msgstr "Requisitos fiscales de las leyes venezolanas:\n"42msgstr "Datos por defecto para facturas dañadas"
37" - Nro. de control\n"43
38" - excepto de credito fiscal\n"44#. module: l10n_ve_fiscal_requirements
39" - Obligatoriedad de la dirección fiscal\n"45#: code:addons/l10n_ve_fiscal_requirements/wizard/wizard_invoice_nro_ctrl.py:113
40" - Singularidad de la dirección fiscal.\n"46#, python-format
41" "47msgid "Please confirm that you know what you're doing by checking the option bellow!"
4248msgstr "Por favor, confirme que está seguro de que desea hacer esto!"
43#. module: l10n_ve_fiscal_requirements49
44#: model:ir.model,name:l10n_ve_fiscal_requirements.model_purchase_order50#. module: l10n_ve_fiscal_requirements
45msgid "Purchase Order"51#: constraint:res.company:0
46msgstr "Pedido de compra"52msgid "Error! You can not create recursive companies."
4753msgstr "Error! no puede crear compañías recursivas."
48#. module: l10n_ve_fiscal_requirements54
49#: help:account.invoice,nro_ctrl:055#. module: l10n_ve_fiscal_requirements
50#: help:stock.picking,nro_ctrl:056#: view:wizard.invoice.nro.ctrl:0
51msgid "Invoice reference"57msgid "Create Invoice"
52msgstr "Número de control"58msgstr "Crear Factura"
5359
54#. module: l10n_ve_fiscal_requirements60#. module: l10n_ve_fiscal_requirements
55#: model:ir.module.module,shortdesc:l10n_ve_fiscal_requirements.module_meta_information61#: model:ir.module.module,shortdesc:l10n_ve_fiscal_requirements.module_meta_information
56msgid "Fiscal requirements Venezuelan laws"62msgid "Fiscal requirements Venezuelan laws"
57msgstr "Requerimientos fiscales de las leyes venezolanas"63msgstr "Requerimientos fiscales de las Leyes Venezolanas"
58
59#. module: l10n_ve_fiscal_requirements
60#: model:ir.model,name:l10n_ve_fiscal_requirements.model_account_invoice
61msgid "Invoice"
62msgstr "Factura"
6364
64#. module: l10n_ve_fiscal_requirements65#. module: l10n_ve_fiscal_requirements
65#: model:ir.model,name:l10n_ve_fiscal_requirements.model_stock_picking66#: model:ir.model,name:l10n_ve_fiscal_requirements.model_stock_picking
66msgid "Picking List"67msgid "Picking List"
67msgstr "Albarán"68msgstr "Lista de picking"
69
70#. module: l10n_ve_fiscal_requirements
71#: constraint:res.partner.address:0
72msgid "Error ! The partner already has an invoice address. "
73msgstr "Error ! Este cliente ya tiene una dirección fiscal. "
74
75#. module: l10n_ve_fiscal_requirements
76#: model:ir.actions.act_window,name:l10n_ve_fiscal_requirements.menu_create_invoice_duplicate
77msgid "Generate null paper"
78msgstr "Generar papel dañado"
79
80#. module: l10n_ve_fiscal_requirements
81#: help:res.company,journal_id:0
82msgid "Default journal for damaged invoices"
83msgstr "Diario por defecto para Facturas Dañadas"
84
85#. module: l10n_ve_fiscal_requirements
86#: sql_constraint:purchase.order:0
87msgid "Order Reference must be unique !"
88msgstr "La referencia debe ser única !"
89
90#. module: l10n_ve_fiscal_requirements
91#: code:addons/l10n_ve_fiscal_requirements/wizard/wizard_invoice_nro_ctrl.py:50
92#: code:addons/l10n_ve_fiscal_requirements/wizard/wizard_invoice_nro_ctrl.py:88
93#, python-format
94msgid "ERROR !"
95msgstr "ERROR !"
96
97#. module: l10n_ve_fiscal_requirements
98#: field:res.company,journal_id:0
99msgid "Journal"
100msgstr "Diario"
101
102#. module: l10n_ve_fiscal_requirements
103#: help:account.invoice,nro_ctrl:0
104msgid "Code used for intern invoice control"
105msgstr "Código para control interno de facturas"
68106
69#. module: l10n_ve_fiscal_requirements107#. module: l10n_ve_fiscal_requirements
70#: field:account.invoice,nro_ctrl:0108#: field:account.invoice,nro_ctrl:0
109#: field:wizard.invoice.nro.ctrl,nro_ctrl:0
110msgid "Control Number"
111msgstr "Número de control"
112
113#. module: l10n_ve_fiscal_requirements
114#: view:res.company:0
115msgid "Configuration"
116msgstr "Configuración"
117
118#. module: l10n_ve_fiscal_requirements
71#: field:stock.picking,nro_ctrl:0119#: field:stock.picking,nro_ctrl:0
72msgid "Invoice ref."120msgid "Invoice ref."
73msgstr "Nro. Control"121msgstr "Número de Control"
122
123#. module: l10n_ve_fiscal_requirements
124#: field:res.company,account_id:0
125msgid "Account"
126msgstr "Cuenta"
127
128#. module: l10n_ve_fiscal_requirements
129#: constraint:res.partner:0
130msgid "Error ! The partner does not have an invoice address. "
131msgstr "Error ! Este cliente no posée una dirección fiscal. "
132
133#. module: l10n_ve_fiscal_requirements
134#: model:ir.actions.act_window,name:l10n_ve_fiscal_requirements.wizard_invoice_nro_control
135msgid "Create null paper"
136msgstr "Crear papel dañado"
137
138#. module: l10n_ve_fiscal_requirements
139#: model:ir.model,name:l10n_ve_fiscal_requirements.model_res_company
140msgid "Companies"
141msgstr "Compañías"
142
143#. module: l10n_ve_fiscal_requirements
144#: code:addons/l10n_ve_fiscal_requirements/wizard/wizard_invoice_nro_ctrl.py:50
145#, python-format
146msgid "This partner does not have an invoice address"
147msgstr "Este cliente no tiene una dirección fiscal"
148
149#. module: l10n_ve_fiscal_requirements
150#: model:ir.model,name:l10n_ve_fiscal_requirements.model_purchase_order
151msgid "Purchase Order"
152msgstr "Orden de compra"
153
154#. module: l10n_ve_fiscal_requirements
155#: code:addons/l10n_ve_fiscal_requirements/wizard/wizard_invoice_nro_ctrl.py:113
156#: code:addons/l10n_ve_fiscal_requirements/wizard/wizard_invoice_nro_ctrl.py:117
157#, python-format
158msgid "Error!"
159msgstr "Error!"
160
161#. module: l10n_ve_fiscal_requirements
162#: model:ir.model,name:l10n_ve_fiscal_requirements.model_wizard_invoice_nro_ctrl
163msgid "wizard.invoice.nro.ctrl"
164msgstr "wizard.invoice.nro.ctrl"
165
166#. module: l10n_ve_fiscal_requirements
167#: view:wizard.invoice.nro.ctrl:0
168msgid "Are you sure you want to do this?"
169msgstr "¿Está seguro de que desea hacer esto?"
74170
75#. module: l10n_ve_fiscal_requirements171#. module: l10n_ve_fiscal_requirements
76#: help:account.invoice,sin_cred:0172#: help:account.invoice,sin_cred:0
77msgid "setting to true if the invoice is exempt from V.A.T"173msgid "Set it true if the invoice is V.A.T. exempt"
78msgstr "Seleccione esta casilla si la factura no tiene derecho a credito fiscal "174msgstr "Marcar si la factura es libre de impuesto"
79175
80#. module: l10n_ve_fiscal_requirements176#. module: l10n_ve_fiscal_requirements
81#: constraint:res.partner.address:0177#: field:wizard.invoice.nro.ctrl,sure:0
82msgid "Error ! The partner already have an invoice address. "178msgid "Are You Sure?"
83msgstr "Error ! El cliente/proveedor ya posee una dirección fiscal. "179msgstr "¿Está seguro?"
84180
85#. module: l10n_ve_fiscal_requirements181#. module: l10n_ve_fiscal_requirements
86#: constraint:res.partner:0182#: help:stock.picking,nro_ctrl:0
87msgid "Error ! The partner does not have an invoice address. "183msgid "Invoice reference"
88msgstr "Error ! No ha definido una direccion fiscal. "184msgstr "Referencia"
89185
90186#. module: l10n_ve_fiscal_requirements
91#. module: base_vat187#: help:wizard.invoice.nro.ctrl,nro_ctrl:0
92#: code:addons/base_vat/base_vat.py:87188msgid "New control number of the invoice damaged."
93#, python-format189msgstr "Nuevo número de control para la factura dañada."
94msgid ""190
95"The Vat does not seems to be correct. You should have entered something like "191#. module: l10n_ve_fiscal_requirements
96"this %s"192#: code:addons/l10n_ve_fiscal_requirements/wizard/wizard_invoice_nro_ctrl.py:117
97msgstr ""193#, python-format
98"El RIF parece que no es correcto. Debería haber introducido algo como "194msgid "You must go to the company form and configure a journal and an account for damaged invoices"
99"esto %s"195msgstr "Debe ir a la compañía y configurar un diario y una cuenta para facturas dañadas"
100196
101#. module: base_vat197#. module: l10n_ve_fiscal_requirements
102#: model:ir.module.module,description:base_vat.module_meta_information198#: model:ir.model,name:l10n_ve_fiscal_requirements.model_account_invoice
103msgid ""199msgid "Invoice"
104"\n"200msgstr "Factura"
105" Enable the VAT Number for the partner. Check the validity of that VAT "201
106"Number.\n"202#. module: l10n_ve_fiscal_requirements
107"\n"203#: model:ir.module.module,description:l10n_ve_fiscal_requirements.module_meta_information
108" This module follows the methods stated at http://sima-pc.com/nif.php "204msgid "Venezuelan Tax Laws Requirements:\n"
109"for\n"205" - Invoice Control Number\n"
110" checking the validity of VAT Number assigned to partners in European "206" - Tax-except\n"
111"countries.\n"207" - Required address invoice\n"
112" "208" - Unique address invoice.\n"
113msgstr ""209" - VAT verification for Venezuela rules.\n"
114"\n"210" - Damaged invoices justification.\n"
115" Permite la validación del RIF/NIT de las empresas. Comprueba si el "211" ---------------------------------------------------------------------------\n"
116"RIF es un número válido.\n"212" For damaged invoices, you must go to the company and, under the configuration section,\n"
117"\n"213" create the corresponding journal and account.\n"
118" Este módulo usa los métodos especificados en http://sima-pc.com/nif.php "214"\n"
119"para\n"215" ------------------------TECH INFO-------------------------------------------\n"
120" la validación del RIF/NIT asignado a las empresas de los países "216" CHANGELOG:\n"
121"europeos.\n"217" - For the migration to the l10n_ve on OpenERP:\n"
122" "218" - Changed the Invoice Ref label to Control Number\n"
123219" - Integrated the l10n_ve_nro_ctrl module functionality on this one\n"
124#. module: base_vat220" - Since the concept_id field is added by the l10n_ve_islr_withholding, an\n"
125#: model:ir.module.module,shortdesc:base_vat.module_meta_information221" error es rised if it's not installed and it is necesary to withhold\n"
126msgid "Base VAT - To check VAT number validity"222" - If you need to withhold ISLR, you must install the module mentioned abofe\n"
127msgstr "Base RIF/NIT - Para comprobar la validez de los RIT/NIT"223"\n"
128224" FURTHER DEVELOPMENT:\n"
129#. module: base_vat225" - Find a way to decouple this module and l10n_ve_islr_withholding\n"
130#: constraint:res.partner:0226" "
131msgid "Error ! You can not create recursive associated members."227msgstr "Requerimientos fiscales de las Leyes Venezolanas:\n"
132msgstr "¡Error! No puede crear miembros asociados recursivos."228" - Número de control para facturas\n"
133229" - Excento de impuesto\n"
134#. module: base_vat230" - Se requiere de una dirección fiscal\n"
135#: code:addons/base_vat/base_vat.py:88231" - Dirección de facturación única.\n"
136#, python-format232" - Verificación de RIF.\n"
137msgid "The VAT is invalid, It should begin with the country code"233" - Justificación de facturas dañadas.\n"
138msgstr "El RIF no es válido, debería empezar con el código del país"234" ---------------------------------------------------------------------------\n"
139235" Para justificar facturas dañadas, debe ir a la compañía y, en la pestaña de Configuración,\n"
140#. module: base_vat236" crear el diario y la cuenta cosrrespondiente.\n"
141#: help:res.partner,vat_subjected:0237"\n"
142msgid ""238" ------------------------Info Técnica-------------------------------------------\n"
143"Check this box if the partner is subjected to the VAT. It will be used for "239" CHANGELOG:\n"
144"the VAT legal statement."240" - Para la migración de la localización a la versión 6:\n"
145msgstr ""241" - Se cambió la etiqueta de referencia de factura a Número de Control\n"
146"Marque esta opción si la empresa está sujeta al IVA. Será utilizado para la "242" - Se integró la funcionalidad del módulo l10n_invoice_nro_ctrl\n"
147"declaración legal del IVA."243" - Debido a que el campo concept_id es agregado por el módulo l10n_ve_islr_withholding, se genera un\n"
148244" error si dicho módulo no está instalado, es decir, si el campo no existe\n"
149#. module: base_vat245" - Si necesita retener ISLR, debe instalar el módulo mencionado anteriormente\n"
150#: model:ir.model,name:base_vat.model_res_partner246"\n"
247" Desarrollos futuros:\n"
248" - Desacoplar este módulo y el de retención de ISLR\n"
249" "
250
251#. module: l10n_ve_fiscal_requirements
252#: view:wizard.invoice.nro.ctrl:0
253msgid "Cancel"
254msgstr "Cancelar"
255
256#. module: l10n_ve_fiscal_requirements
257#: model:ir.model,name:l10n_ve_fiscal_requirements.model_res_partner
151msgid "Partner"258msgid "Partner"
152msgstr "Empresa"259msgstr "Cliente"
153260
154#. module: base_vat261#. module: l10n_ve_fiscal_requirements
155#: field:res.partner,vat_subjected:0262#: model:ir.model,name:l10n_ve_fiscal_requirements.model_res_partner_address
156msgid "VAT Legal Statement"263msgid "Partner Addresses"
157msgstr "Sujeto a IVA"264msgstr "Direcciones de Clientes"
265
158266
=== modified file 'l10n_ve_fiscal_requirements/invoice.py'
--- l10n_ve_fiscal_requirements/invoice.py 2011-09-30 15:40:19 +0000
+++ l10n_ve_fiscal_requirements/invoice.py 2011-09-30 19:05:29 +0000
@@ -25,12 +25,9 @@
25class account_invoice(osv.osv):25class account_invoice(osv.osv):
26 _inherit = 'account.invoice' 26 _inherit = 'account.invoice'
27 _columns = {27 _columns = {
28 'nro_ctrl': fields.char('Control Number', size=32, readonly=True, states={'draft':[('readonly',False)]}, help="Invoice reference"),28 'nro_ctrl': fields.char('Control Number', size=32, readonly=True, states={'draft':[('readonly',False)]}, help="Code used for intern invoice control"),
29 'sin_cred': fields.boolean('Tax-exempt?', readonly=False, help="setting to true if the invoice is exempt from V.A.T"),29 'sin_cred': fields.boolean('Tax-exempt?', readonly=False, help="Set it true if the invoice is V.A.T. exempt"),
30 }30 }
31
32
33
34account_invoice()31account_invoice()
3532
3633
3734
=== modified file 'l10n_ve_fiscal_requirements/partner.py'
--- l10n_ve_fiscal_requirements/partner.py 2011-09-29 20:04:51 +0000
+++ l10n_ve_fiscal_requirements/partner.py 2011-09-30 19:05:29 +0000
@@ -26,7 +26,7 @@
26 _inherit='res.partner.address'26 _inherit='res.partner.address'
2727
28 '''28 '''
29 Unique address invoice29 Invoice Address uniqueness check
30 '''30 '''
31 def _check_addr_invoice(self,cr,uid,ids,context={}):31 def _check_addr_invoice(self,cr,uid,ids,context={}):
32 obj_addr = self.browse(cr,uid,ids[0])32 obj_addr = self.browse(cr,uid,ids[0])
@@ -42,7 +42,7 @@
4242
4343
44 _constraints = [44 _constraints = [
45 (_check_addr_invoice, 'Error ! The partner already have an invoice address. ', [])45 (_check_addr_invoice, 'Error ! The partner already has an invoice address. ', [])
46 ]46 ]
4747
48res_partner_address()48res_partner_address()
@@ -52,7 +52,7 @@
52 _inherit = 'res.partner'52 _inherit = 'res.partner'
5353
54 '''54 '''
55 Required address invoice55 Required Invoice Address
56 '''56 '''
57 def _check_partner_invoice_addr(self,cr,uid,ids,context={}):57 def _check_partner_invoice_addr(self,cr,uid,ids,context={}):
58 partner_obj = self.browse(cr,uid,ids[0])58 partner_obj = self.browse(cr,uid,ids[0])
@@ -79,8 +79,8 @@
7979
80 def check_vat_ve(self, vat):80 def check_vat_ve(self, vat):
81 '''81 '''
82 Check Venezuela VAT number.82 Check Venezuelan VAT number, locally caled RIF.
83 Registro de Identificacion Fiscal Venezolana RIF: JXXXXXXXXX RIF CEDULA VENEZOLANO: VXXXXXXXXX CEDULA EXTRANJERO: EXXXXXXXXX83 RIF: JXXXXXXXXX RIF CEDULA VENEZOLANO: VXXXXXXXXX CEDULA EXTRANJERO: EXXXXXXXXX
84 '''84 '''
85 if len(vat) != 10:85 if len(vat) != 10:
86 return False86 return False
8787
=== renamed file 'l10n_ve_invoice_nro_ctrl/model/res_company.py' => 'l10n_ve_fiscal_requirements/res_company.py'
--- l10n_ve_invoice_nro_ctrl/model/res_company.py 2011-09-29 22:58:21 +0000
+++ l10n_ve_fiscal_requirements/res_company.py 2011-09-30 19:05:29 +0000
@@ -34,8 +34,8 @@
34class res_company(osv.osv):34class res_company(osv.osv):
35 _inherit = 'res.company'35 _inherit = 'res.company'
36 _columns = {36 _columns = {
37 'journal_id': fields.many2one('account.journal', 'Journal',required=True,help="Journal used by default for invoices damaged"),37 'journal_id': fields.many2one('account.journal', 'Journal',required=True,help="Default journal for damaged invoices"),
38 'account_id': fields.many2one('account.account', 'Account',required=True,help="Account used by default for invoices and lines of invoices damaged"),38 'account_id': fields.many2one('account.account', 'Account',required=True,help="Default account used for invoices and lines from damaged invoices"),
39 }39 }
40res_company()40res_company()
4141
4242
=== renamed directory 'l10n_ve_invoice_nro_ctrl/view' => 'l10n_ve_fiscal_requirements/view'
=== renamed file 'l10n_ve_fiscal_requirements/account_invoice_view.xml' => 'l10n_ve_fiscal_requirements/view/account_invoice_view.xml'
=== renamed file 'l10n_ve_fiscal_requirements/stock_view.xml' => 'l10n_ve_fiscal_requirements/view/stock_view.xml'
=== renamed directory 'l10n_ve_invoice_nro_ctrl/wizard' => 'l10n_ve_fiscal_requirements/wizard'
=== modified file 'l10n_ve_fiscal_requirements/wizard/wizard_invoice_nro_ctrl.py'
--- l10n_ve_invoice_nro_ctrl/wizard/wizard_invoice_nro_ctrl.py 2011-09-30 15:03:28 +0000
+++ l10n_ve_fiscal_requirements/wizard/wizard_invoice_nro_ctrl.py 2011-09-30 19:05:29 +0000
@@ -77,12 +77,15 @@
77 'quantity': 0,77 'quantity': 0,
78 'invoice_id': inv_id,78 'invoice_id': inv_id,
79 })79 })
80 for inv_line in inv_brw.invoice_line:80 try:
81 if inv_line.concept_id or False:81 for inv_line in inv_brw.invoice_line:
82 invoice_line.update({82 if inv_line.concept_id or False:
83 'concept_id':inv_line.concept_id.id,83 invoice_line.update({
84 })84 'concept_id': inv_line.concept_id.id or 1,
85 break85 })
86 break
87 except:
88 raise osv.except_osv(_("ERROR !"), _("You have to install the ISLR Withholding"))
86 invoice_line_id = invoice_line_obj.create(cr, uid, invoice_line, {})89 invoice_line_id = invoice_line_obj.create(cr, uid, invoice_line, {})
87 return inv_id90 return inv_id
8891
8992
=== removed directory 'l10n_ve_invoice_nro_ctrl'
=== removed file 'l10n_ve_invoice_nro_ctrl/__init__.py'
--- l10n_ve_invoice_nro_ctrl/__init__.py 2011-09-29 23:01:25 +0000
+++ l10n_ve_invoice_nro_ctrl/__init__.py 1970-01-01 00:00:00 +0000
@@ -1,28 +0,0 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###########################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>).
6# All Rights Reserved
7###############Credits######################################################
8# Coded by: Maria Gabriela Quilarque <gabrielaquilarque97@gmail.com>
9# Planified by: Nhomar Hernandez
10# Finance by: Helados Gilda, C.A. http://heladosgilda.com.ve
11# Audited by: Humberto Arocha humberto@openerp.com.ve
12#############################################################################
13# This program is free software: you can redistribute it and/or modify
14# it under the terms of the GNU General Public License as published by
15# the Free Software Foundation, either version 3 of the License, or
16# (at your option) any later version.
17#
18# This program is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21# GNU General Public License for more details.
22#
23# You should have received a copy of the GNU General Public License
24# along with this program. If not, see <http://www.gnu.org/licenses/>.
25##############################################################################
26
27import wizard
28import model
290
=== removed file 'l10n_ve_invoice_nro_ctrl/__openerp__.py'
--- l10n_ve_invoice_nro_ctrl/__openerp__.py 2011-09-30 13:56:49 +0000
+++ l10n_ve_invoice_nro_ctrl/__openerp__.py 1970-01-01 00:00:00 +0000
@@ -1,45 +0,0 @@
1#!/usr/bin/python
2# -*- encoding: utf-8 -*-
3###########################################################################
4# Module Writen to OpenERP, Open Source Management Solution
5# Copyright (C) OpenERP Venezuela (<http://openerp.com.ve>).
6# All Rights Reserved
7###############Credits######################################################
8# Coded by: Maria Gabriela Quilarque <gabrielaquilarque97@gmail.com>
9# Planified by: Nhomar Hernandez
10# Finance by: Helados Gilda, C.A. http://heladosgilda.com.ve
11# Audited by: Humberto Arocha humberto@openerp.com.ve
12#############################################################################
13# This program is free software: you can redistribute it and/or modify
14# it under the terms of the GNU General Public License as published by
15# the Free Software Foundation, either version 3 of the License, or
16# (at your option) any later version.
17#
18# This program is distributed in the hope that it will be useful,
19# but WITHOUT ANY WARRANTY; without even the implied warranty of
20# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21# GNU General Public License for more details.
22#
23# You should have received a copy of the GNU General Public License
24# along with this program. If not, see <http://www.gnu.org/licenses/>.
25##############################################################################
26
27{
28 "name" : "Generate Invoice Damaged",
29 "version" : "0.1",
30 "author" : "Openerp Venezuela",
31 "category" : "Generic Modules/Others",
32 "website": "http://wiki.openerp.org.ve/",
33 "description": '''
34 Generate Invoice from customer invoice form,
35 for justify invoice(paper) damaged.
36 ''',
37 "depends" : ["account", "l10n_ve_islr_withholding"],
38 "init_xml" : [],
39 "update_xml" : [
40 "wizard/wizard_invoice_nro_ctrl_view.xml",
41 "view/res_company_view.xml",
42 ],
43 "active": False,
44 "installable": True
45}
460
=== removed directory 'l10n_ve_invoice_nro_ctrl/model'
=== removed file 'l10n_ve_invoice_nro_ctrl/model/__init__.py'
--- l10n_ve_invoice_nro_ctrl/model/__init__.py 2011-09-29 22:58:21 +0000
+++ l10n_ve_invoice_nro_ctrl/model/__init__.py 1970-01-01 00:00:00 +0000
@@ -1,28 +0,0 @@
1# -*- encoding: utf-8 -*-
2##############################################################################
3# Copyright (c) 2011 OpenERP Venezuela (http://openerp.com.ve)
4# All Rights Reserved.
5# Programmed by: Israel Fermín Montilla <israel@openerp.com.ve>
6#
7# WARNING: This program as such is intended to be used by professional
8# programmers who take the whole responsability of assessing all potential
9# consequences resulting from its eventual inadequacies and bugs
10# End users who are looking for a ready-to-use solution with commercial
11# garantees and support are strongly adviced to contract a Free Software
12# Service Company
13#
14# This program is Free Software; you can redistribute it and/or
15# modify it under the terms of the GNU General Public License
16# as published by the Free Software Foundation; either version 2
17# of the License, or (at your option) any later version.
18#
19# This program is distributed in the hope that it will be useful,
20# but WITHOUT ANY WARRANTY; without even the implied warranty of
21# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22# GNU General Public License for more details.
23#
24# You should have received a copy of the GNU General Public License
25# along with this program; if not, write to the Free Software
26# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27###############################################################################
28import res_company