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

[16.0] [purchase_order_type] purchase_order is not overriding the create method in batch #1948

Open
auroraeosrose opened this issue Jul 20, 2023 · 1 comment
Labels

Comments

@auroraeosrose
Copy link
Contributor

Module

purchase_order_type

Describe the bug

Every time a worker starts the following is shown in the logs

2023-07-18 12:28:58,804 215083 WARNING xxxxxxx odoo.api.create: The model odoo.addons.purchase_order_type.models.purchase_order is not overriding the create method in batch

To Reproduce

Affected versions:

Steps to reproduce the behavior:

  1. install purchase_order_type
  2. start odoo
  3. view logs

Expected behavior
@api.model is apparently now angry and wants to be always @api.model_create_multi

Additional context
Relevant Odoo core commit with the change introduction odoo/odoo#80824
Core code throwing the warning https://github.com/odoo/odoo/blob/40596ed1eccdf0f37b4fa3a8a337e7a7cc3461ce/odoo/api.py#L393

@HviorForgeFlow
Copy link
Member

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

No branches or pull requests

2 participants