From 7dc6bbf3f514a14bd150ed7597b01ac9b79b5f01 Mon Sep 17 00:00:00 2001 From: "mra (Open ERP)" Date: Tue, 27 Oct 2009 17:54:45 +0530 Subject: [PATCH] [IMP] l10n_be: Annual Listing of VAT-Subjected Customers, modify wizard for user can see what gonna export in xml, before generating the xml file bzr revid: mra@tinyerp.com-20091027122445-zkurf8bwolujy66a --- addons/l10n_be/l10n_be_wizard.xml | 35 ++++ addons/l10n_be/wizard/partner_vat_listing.py | 195 ++++++++++++------- 2 files changed, 158 insertions(+), 72 deletions(-) diff --git a/addons/l10n_be/l10n_be_wizard.xml b/addons/l10n_be/l10n_be_wizard.xml index 7d91db74a6e..b170bc93f4d 100644 --- a/addons/l10n_be/l10n_be_wizard.xml +++ b/addons/l10n_be/l10n_be_wizard.xml @@ -55,5 +55,40 @@ This is the same wizard that runs from Financial Management/Configuration/Financ + + + step.vat.listing + vat.listing.clients + form + +
+ + + + + + + + + +
+ + + step.vat.listing + vat.listing.clients + tree + + + + + + + + + + + + + diff --git a/addons/l10n_be/wizard/partner_vat_listing.py b/addons/l10n_be/wizard/partner_vat_listing.py index c4b8758ae0e..4e9fed80300 100644 --- a/addons/l10n_be/wizard/partner_vat_listing.py +++ b/addons/l10n_be/wizard/partner_vat_listing.py @@ -1,6 +1,6 @@ # -*- coding: utf-8 -*- ############################################################################## -# +# # OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (). # @@ -15,16 +15,30 @@ # GNU Affero General Public License for more details. # # You should have received a copy of the GNU Affero General Public License -# along with this program. If not, see . +# along with this program. If not, see . # ############################################################################## -import wizard import time import datetime -import pooler import base64 + +import wizard +import pooler from tools.translate import _ import tools +from osv import fields, osv + +class vat_listing_clients(osv.osv_memory): + _name = 'vat.listing.clients' + _columns = { + 'name': fields.char('Cleint Name', size=64), + 'vat': fields.char('VAT', size=64), + 'country': fields.char('Country', size=64), + 'amount': fields.float('Amount'), + 'turnover': fields.float('Turnover'), + } + +vat_listing_clients() form = """
@@ -45,14 +59,29 @@ fields = { 'limit_amount':{'string':'Limit Amount','type':'integer','required': True, }, 'test_xml': {'string':'Test XML file', 'type':'boolean', }, } + +client_form = """ + +