OCA / server-env

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

[16.0] server_env: fix inverse method (closes #153) #154

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

gurneyalex commented 1 year ago

/ocabot merge patch

OCA-git-bot commented 1 year ago

This PR looks fantastic, let's merge it! Prepared branch 16.0-ocabot-merge-pr-154-by-gurneyalex-bump-patch, awaiting test results.

OCA-git-bot commented 1 year ago

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