OCA / server-env

Tools to manage environment-dependent configuration
GNU Affero General Public License v3.0
56 stars 149 forks source link

[15.0] server_env: fix inverse method (closes #153) #155

Closed rven closed 1 year ago

rven commented 1 year ago

odoo.fields.determine requires inverse methods to have __name__ attribute. Unfortunately with partialmethod this attribute is not propagated even by using functools.update_wrapper. In any case, update_wrapper would propagate the wrapped func name which is not the same here.

Introduced by https://github.com/odoo/odoo/commit/36544651f2049bcf18777091dbf02c9631b33243

FWD port of #153

simahawk commented 1 year ago

/ocabot merge patch

OCA-git-bot commented 1 year ago

On my way to merge this fine PR! Prepared branch 15.0-ocabot-merge-pr-155-by-simahawk-bump-patch, awaiting test results.

OCA-git-bot commented 1 year ago

Congratulations, your PR was merged at 411d12d26c4c3c6915925d58af12977089881370. Thanks a lot for contributing to OCA. ❤️