Merge lp:~javieredm/openerp-venezuela-localization/javy-bug905320 into lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk

Proposed by Javier Duran
Status: Merged
Merged at revision: 488
Proposed branch: lp:~javieredm/openerp-venezuela-localization/javy-bug905320
Merge into: lp:~openerp-venezuela/openerp-venezuela-localization/6.0-trunk
Diff against target: 64 lines (+19/-3)
2 files modified
l10n_ve_split_invoice/i18n/es_VE.po (+17/-3)
l10n_ve_split_invoice/invoice.py (+2/-0)
To merge this branch: bzr merge lp:~javieredm/openerp-venezuela-localization/javy-bug905320
Reviewer Review Type Date Requested Status
Javier Duran (community) Approve
Review via email: mp+86414@code.launchpad.net

Description of the change

Correccion bug905320

To post a comment you must log in.
Revision history for this message
Javier Duran (javieredm) wrote :

merged en el trunk:

revno: 488 [merge]
revision-id: javier@squezee-vir-20111220151204-2mndi3ngt5h0imlo

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'l10n_ve_split_invoice/i18n/es_VE.po'
2--- l10n_ve_split_invoice/i18n/es_VE.po 2011-10-25 20:33:16 +0000
3+++ l10n_ve_split_invoice/i18n/es_VE.po 2011-12-20 15:07:29 +0000
4@@ -6,8 +6,8 @@
5 msgstr ""
6 "Project-Id-Version: OpenERP Server 6.0.3\n"
7 "Report-Msgid-Bugs-To: support@openerp.com\n"
8-"POT-Creation-Date: 2011-10-05 14:10+0000\n"
9-"PO-Revision-Date: 2011-10-05 14:10+0000\n"
10+"POT-Creation-Date: 2011-12-16 15:04+0000\n"
11+"PO-Revision-Date: 2011-12-16 15:04+0000\n"
12 "Last-Translator: <>\n"
13 "Language-Team: \n"
14 "MIME-Version: 1.0\n"
15@@ -21,6 +21,12 @@
16 msgstr "Configuración de líneas de factura"
17
18 #. module: l10n_ve_split_invoice
19+#: code:addons/l10n_ve_split_invoice/invoice.py:40
20+#, python-format
21+msgid "Error !"
22+msgstr "Error !"
23+
24+#. module: l10n_ve_split_invoice
25 #: model:ir.module.module,description:l10n_ve_split_invoice.module_meta_information
26 msgid "\n"
27 "For legal reasons in Venezuela we need just ONE invoice per page, with this module depending on your company configuration you will stablish the number of lines per invoice, with this you will be able of:\n"
28@@ -68,7 +74,7 @@
29 #. module: l10n_ve_split_invoice
30 #: model:ir.model,name:l10n_ve_split_invoice.model_res_company
31 msgid "Companies"
32-msgstr "Empresas"
33+msgstr "Compañías"
34
35 #. module: l10n_ve_split_invoice
36 #: constraint:res.company:0
37@@ -81,6 +87,14 @@
38 msgstr "Número de líneas por factura"
39
40 #. module: l10n_ve_split_invoice
41+#: code:addons/l10n_ve_split_invoice/invoice.py:40
42+#, python-format
43+msgid "Please set an invoice lines value in:\n"
44+"Administration->Company->Configuration->Invoice lines"
45+msgstr "Por favor establezca un valor para las líneas de facturas en:\n"
46+"Administración->Compañía->Configuración->Líneas de la factura"
47+
48+#. module: l10n_ve_split_invoice
49 #: model:ir.model,name:l10n_ve_split_invoice.model_account_invoice
50 msgid "Invoice"
51 msgstr "Factura"
52
53=== modified file 'l10n_ve_split_invoice/invoice.py'
54--- l10n_ve_split_invoice/invoice.py 2011-11-11 21:12:37 +0000
55+++ l10n_ve_split_invoice/invoice.py 2011-12-20 15:07:29 +0000
56@@ -36,6 +36,8 @@
57 '''
58 for inv in self.browse(cr, uid, ids):
59 inv_id =False
60+ if inv.company_id.lines_invoice < 1:
61+ raise osv.except_osv(_('Error !'), _('Please set an invoice lines value in:\nAdministration->Company->Configuration->Invoice lines'))
62 if inv.type in ["out_invoice","out_refund"]:
63 if len(inv.invoice_line)> inv.company_id.lines_invoice:
64 lst = []