Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.0] Old/New API compatibility Error Into Test #4698

Closed
JonathanNEMRY opened this issue Jan 14, 2015 · 1 comment
Closed

[8.0] Old/New API compatibility Error Into Test #4698

JonathanNEMRY opened this issue Jan 14, 2015 · 1 comment
Assignees

Comments

@JonathanNEMRY
Copy link
Contributor

Old/New API compatibility Error

Impacted versions:

  • 8.0

Steps to reproduce:

  1. Add a button into a form view of a model (no matter which). This button is type of object and the related method is "@api.multi" decorated
  2. Into this method call the method onchange_product_id from purchase.order.line into new API
  3. Click on this button: it will work and you'll receive as well the result.
  4. Create a test for this method and call it into api.v8 form the test. (self.env.button_method())

Current behavior:

  • the onchange_product_id crash during the call with a bad number of arguments (6 given/waiting 9)

Expected behavior:

  • calling this method should run with wrapper but it seems that it is not called

Note:
@api.cr_uid_ids_context on onchange_product_id seems to fix the problem

@JonathanNEMRY JonathanNEMRY changed the title [8.0] Old/New API compatibility Error [8.0] Old/New API compatibility Error Into Test Jan 14, 2015
@rco-odoo
Copy link
Member

@JonathanNEMRY is this issue still present?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants