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] odoo.addons.l10n_ro_dvi.models.l10n_ro_account_dvi is not overriding the create method in batch #838

Open
FreezeS opened this issue Feb 5, 2024 · 0 comments
Labels

Comments

@FreezeS
Copy link

FreezeS commented Feb 5, 2024

Salut,

Primesc warningul de mai sus cand pornesc serverul si problema e in l10n-romania/l10n_ro_dvi/models
/l10n_ro_account_dvi.py, 270:

    @api.model
    def create(self, vals):
        dvi = super().create(vals)
        if vals.get("invoice_ids"):

Din ce am inteles, trebuie schimbat asa:

    @api.model_create_multi
    def create(self, vals_list):
        for vals in vals_list:
            dvi = super().create(vals)
            if vals.get("invoice_ids"):

Momentan nu am destula experienta in Odoo incat sa fac eu un pull request.

@FreezeS FreezeS added the bug label Feb 5, 2024
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

1 participant