incorrect xml for Annual Listing Of VAT-Subjected Customers

Bug #731671 reported by Robin Panis on 2011-03-08
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenERP R&D Addons Team 3

Bug Description

the xml of generated by Annual Listing Of VAT-Subjected Customers is incorrect.

- all VAT numbers should be without BE except for main company
- no closing tag </DeclarantList> @ the end
- wrong turnover amount for customers ( even <0 in my case so not showing up in the list)
- suppliers shouldn't be included in the list ( check on customer tag )

Related branches

to reproduce:

- install l10n_be
- create a po-sale cycle
- run the create xml wizard (accounting-reporting-legalreports-belgiam statements)
on the selection screen of partners you already see the wrong turnover amount.
others errors in the xml are easily fixed

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Low
status: New → Confirmed
Changed in openobject-addons:
status: Confirmed → In Progress
Changed in openobject-addons:
status: In Progress → Fix Committed
Changed in openobject-addons:
milestone: none → 6.1

Proper merge proposal made on trunk addons with some fixes from 5.0 too and it will be merge soon with trunk addons.

Thank you,

With revisions,

revision-id: mra@mra-laptop-20110407100925-j87raijb0hf5dd62
revno: 4628
branch-nick: trunk-bug-l10n_be-mra

qdp (OpenERP) (qdp) on 2011-04-07
Changed in openobject-addons:
status: Fix Committed → Fix Released

wizard now produces a traceback

Traceback (most recent call last):
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/", line 489, in dispatch
    result = ExportService.getService(service_name).dispatch(method, auth, params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/service/", line 599, in dispatch
    res = fn(db, uid, *params)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/", line 122, in wrapper
    return f(self, dbname, *args, **kwargs)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/", line 176, in execute
    res = self.execute_cr(cr, uid, obj, method, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/osv/", line 167, in execute_cr
    return getattr(object, method)(cr, uid, *args, **kw)
  File "/usr/local/lib/python2.6/dist-packages/openerp-server/addons/l10n_be/wizard/", line 74, in create_xml
    ctx['period_id'] = data['period_id'][0] #added context here
TypeError: 'int' object is unsubscriptable

Changed in openobject-addons:
status: Fix Released → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers