Skip to content

[14.0]Download report is not possible because of private _render method #65

Description

@flotho

In v14, Odoo turn the public render method as private : OCA/OCB@d9287ca#diff-7ce69a093ea1fb1cf2989e24d52cb8e717ab4f2b3c2006ba5cc67503a3df1aff
gives this new signature : https://github.com/OCA/OCB/blob/14.0/odoo/addons/base/models/ir_actions_report.py#L871

Trying to download a report throws this issue :

   report = odoo.report.download('stock.report_deliveryslip', [2, ])
  File "/home/florent.thomas/.local/lib/python3.8/site-packages/odoorpc/report.py", line 118, in download
    response = report.with_context(context)._render(
  File "/home/florent.thomas/.local/lib/python3.8/site-packages/odoorpc/models.py", line 389, in __getattr__
    return super(Model, self).__getattr__(method)
AttributeError: 'super' object has no attribute '__getattr__'

@MiquelRForgeFlow , how do you succeed to make this work : 187853a#diff-891d7fc45dba1b16d043072a3d345c82fdecfd4e466ee9d90c0288c32dfc2ccfR118
Is there any workaround from your point of view ?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions