[REF] l10n_*:Correct warning from buildbot
bzr revid: ara@tinyerp.com-20101111061102-022fskf3gtew1846
This commit is contained in:
parent
b6f2173069
commit
67ea374f16
|
@ -1,20 +1,21 @@
|
|||
# -*- encoding: utf-8 -*-
|
||||
#################################################################################
|
||||
# #
|
||||
# Copyright (C) 2009 Renato Lima - Akretion #
|
||||
# #
|
||||
#This program is free software: you can redistribute it and/or modify #
|
||||
#it under the terms of the GNU General Public License as published by #
|
||||
#the Free Software Foundation, either version 3 of the License, or #
|
||||
#(at your option) any later version. #
|
||||
# #
|
||||
#This program is distributed in the hope that it will be useful, #
|
||||
#but WITHOUT ANY WARRANTY; without even the implied warranty of #
|
||||
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
|
||||
#GNU General Public License for more details. #
|
||||
# #
|
||||
#You should have received a copy of the GNU General Public License #
|
||||
#along with this program. If not, see <http://www.gnu.org/licenses/>. #
|
||||
#
|
||||
# Copyright (C) 2009 Renato Lima - Akretion
|
||||
#
|
||||
# This program is free software: you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation, either version 3 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
#################################################################################
|
||||
|
||||
{
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
-
|
||||
In order to test the PDF reports defined on a l10n_ch, we will create a Invoice Record
|
||||
-
|
||||
!record {model: account.invoice, id: test_invoice_1}:
|
||||
currency_id: base.EUR
|
||||
company_id: base.main_company
|
||||
address_invoice_id: base.res_partner_address_tang
|
||||
partner_id: base.res_partner_asus
|
||||
state: draft
|
||||
type: out_invoice
|
||||
account_id: account.a_recv
|
||||
name: Test invoice 1
|
||||
address_contact_id: base.res_partner_address_tang
|
||||
|
||||
-
|
||||
In order to test the PDF reports defined on a l10n_ch, we will print BVR Report
|
||||
-
|
||||
|
@ -5,7 +19,7 @@
|
|||
import netsvc, tools, os
|
||||
run_str = 'cp ' + tools.config['addons_path'] + '/l10n_ch/report/ocrbb.ttf' + ' ' + '/tmp/ocrbb.ttf'
|
||||
os.system(run_str)
|
||||
(data, format) = netsvc.LocalService('report.l10n_ch.bvr').create(cr, uid, [ref('account.test_invoice_1')], {}, {})
|
||||
(data, format) = netsvc.LocalService('report.l10n_ch.bvr').create(cr, uid, [ref('test_invoice_1')], {}, {})
|
||||
if tools.config['test_report_directory']:
|
||||
file(os.path.join(tools.config['test_report_directory'], 'l10ch-bvr_report.'+format), 'wb+').write(data)
|
||||
|
||||
|
@ -14,6 +28,6 @@
|
|||
-
|
||||
!python {model: account.invoice}: |
|
||||
import netsvc, tools, os
|
||||
(data, format) = netsvc.LocalService('report.l10n_ch.invoice.bvr').create(cr, uid, [ref('account.test_invoice_1')], {}, {})
|
||||
(data, format) = netsvc.LocalService('report.l10n_ch.invoice.bvr').create(cr, uid, [ref('test_invoice_1')], {}, {})
|
||||
if tools.config['test_report_directory']:
|
||||
file(os.path.join(tools.config['test_report_directory'], 'l10ch-bvr_invoice_report.'+format), 'wb+').write(data)
|
||||
|
|
|
@ -66,3 +66,5 @@
|
|||
'installable': True,
|
||||
'active': False,
|
||||
}
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -138,11 +138,13 @@
|
|||
<field name="code">301</field>
|
||||
<field name="parent_id" ref="sum_output_307"/>
|
||||
</record>
|
||||
|
||||
<record id="output_302" model="account.tax.code.template">
|
||||
<field name="name">Εκροές 4.5%</field>
|
||||
<field name="code">302</field>
|
||||
<field name="parent_id" ref="sum_output_307"/>
|
||||
</record>
|
||||
|
||||
<record id="output_303" model="account.tax.code.template">
|
||||
<field name="name">Εκροές 19%</field>
|
||||
<field name="code">303</field>
|
||||
|
@ -166,6 +168,7 @@
|
|||
<field name="code">351</field>
|
||||
<field name="parent_id" ref="sum_input_358"/>
|
||||
</record>
|
||||
|
||||
<record id="input_352" model="account.tax.code.template">
|
||||
<field name="name">Εισροές 4.5%</field>
|
||||
<field name="code">352</field>
|
||||
|
@ -221,7 +224,6 @@
|
|||
<field name="account_paid_id" ref="chartgr_54_00"/>
|
||||
<field name="base_code_id" ref="output_303"/>
|
||||
<field name="tax_code_id" ref="vat_code_output_19"/>
|
||||
|
||||
<!-- refunds: <field name="ref_base_code_id" ref="vat_code_purch_S"/>
|
||||
<field name="ref_tax_code_id" ref="vat_code_input_S"/> -->
|
||||
</record>
|
||||
|
|
|
@ -30,4 +30,3 @@ import report
|
|||
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -31,16 +31,17 @@
|
|||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
##############################################################################
|
||||
|
||||
{
|
||||
"name" : "Italy - Chart of Accounts By Servabit",
|
||||
"version" : "0.4",
|
||||
"author" : "Servabit srl",
|
||||
"name": "Italy - Chart of Accounts By Servabit",
|
||||
"version": "0.4",
|
||||
"author": "Servabit srl",
|
||||
"website": "http://www.servabit.it",
|
||||
"category" : "Localisation/Account Charts",
|
||||
"category": "Localisation/Account Charts",
|
||||
"description": "This is a module to manage the accounting chart for Italy (CC2424 Profile) for a service company.",
|
||||
"depends" : ["account", "base_iban", "base_vat", "account_chart"],
|
||||
"demo_xml" : [],
|
||||
"update_xml" : ['tipoconti_servabit.xml',
|
||||
"depends": ["account", "base_iban", "base_vat", "account_chart"],
|
||||
"demo_xml": [],
|
||||
"update_xml": ['tipoconti_servabit.xml',
|
||||
'pianoconti_servabit.xml',
|
||||
'account_tax_template.xml',
|
||||
'journals.xml',
|
||||
|
@ -56,4 +57,3 @@
|
|||
"installable": True,
|
||||
}
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
||||
|
|
|
@ -21,10 +21,10 @@
|
|||
##############################################################################
|
||||
|
||||
|
||||
# ##################################################################################
|
||||
###################################################################################
|
||||
# Questa vista SQL viene usata solo per far scegliere l'anno di pianificazione all'utente
|
||||
# Viene infatti costruita una vista XML di tipo tree che contiene solo i diversi anni per i quali stata fatta almeno una pianificazione
|
||||
# ##################################################################################
|
||||
###################################################################################
|
||||
|
||||
from osv import fields, osv
|
||||
|
||||
|
|
|
@ -1,2 +1,4 @@
|
|||
import libroIVA_credito
|
||||
import libroIVA_debito
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -1,7 +1,5 @@
|
|||
import datetime
|
||||
import time
|
||||
from report import report_sxw
|
||||
from osv import osv
|
||||
import pooler
|
||||
|
||||
|
||||
|
@ -72,8 +70,8 @@ class l10n_chart_it_servabit_report_libroIVA_credito(report_sxw.rml_parse):
|
|||
d={'periodo':'', 'protocollo':'', 'causale':'', 'numero':'', 'data_doc':'', }
|
||||
return res
|
||||
|
||||
|
||||
|
||||
report_sxw.report_sxw('report.l10n_it.report.libroIVA_credito','account.report_libroiva',
|
||||
'l10n_it/report/libroIVA_credito.rml',
|
||||
parser=l10n_chart_it_servabit_report_libroIVA_credito,header=False)
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -1,7 +1,5 @@
|
|||
import datetime
|
||||
import time
|
||||
from report import report_sxw
|
||||
from osv import osv
|
||||
import pooler
|
||||
|
||||
|
||||
|
@ -73,8 +71,8 @@ class l10n_chart_it_servabit_report_libroIVA_debito(report_sxw.rml_parse):
|
|||
d={'periodo':'', 'protocollo':'', 'causale':'', 'numero':'', 'data_doc':'', }
|
||||
return res
|
||||
|
||||
|
||||
|
||||
report_sxw.report_sxw('report.l10n_it.report.libroIVA_debito','account.report_libroiva',
|
||||
'l10n_it/report/libroIVA_debito.rml',
|
||||
parser=l10n_chart_it_servabit_report_libroIVA_debito,header=False)
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
|
@ -20,12 +20,7 @@
|
|||
#
|
||||
##############################################################################
|
||||
|
||||
from mx import DateTime
|
||||
import time
|
||||
|
||||
from osv import fields, osv
|
||||
import pooler
|
||||
|
||||
|
||||
class l10n_ma_report(osv.osv):
|
||||
_name = 'l10n.ma.report'
|
||||
|
|
Loading…
Reference in New Issue