← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 707314] Re: [6.0 trunk] with Swiss localisation (l10n_ch) - BS and P&L reports empty

 

On 25. 01. 11 15:39, Nicolas Bessi - Camptocamp wrote:
> Hello,
>
> I have found the source of the bug, the bug does not come from l10n_ch
> but for the reports. The reports have harcoded type but does not uses
> internal types but user_type of the account that can be manually
> overridden.
>
>  types = [
>             'expense',
>             'income'
>                 ]
>
> for typ in types:
>             accounts_temp = []
>             for account in accounts:
>                 if (account.user_type.report_type) and (account.user_type.report_type == typ):
>
> The report should use internal types and not user type. This is clear we
> have defined and attributed account to swiss account user type.
>
> xrg and qdp should review this bug.
>
> Regards
>
> Nicolas
>
>
> ** Changed in: openobject-addons
>        Status: In Progress => Invalid
>
As far as I understand the doc, we should use 'Account Type' (user_type)
for reporting. The 'Internal Type' (type) field is used in some
mysterious ways:-)
and the report does work (not yet sure if correctly) once I updated the
user_type field with some asset/liability info, as some other COA.

Now if the Swiss COA was built with some other logic, it will be a bit
difficult to get the right numbers..

I hope this helps a bit...

regards,
Bogdan

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/707314

Title:
  [6.0 trunk] with Swiss localisation (l10n_ch) - BS and P&L reports
  empty

Status in OpenERP Modules (addons):
  Invalid

Bug description:
  Hi there!

  when using latest rev w/ Swiss localisation, the BS and P&L reports
  (FInance/Reporting/Legal Reports) print pdfs with no data. Of course,
  some test data exist in the system...

  Please investigate.

  Thank you
  Bogdan





References