Skip to content

Migration of base_suspend_security to 10.0#586

Merged
pedrobaeza merged 4 commits into
OCA:10.0from
acsone:10-mig-base_suspend_security-ape
Oct 28, 2016
Merged

Migration of base_suspend_security to 10.0#586
pedrobaeza merged 4 commits into
OCA:10.0from
acsone:10-mig-base_suspend_security-ape

Conversation

@adrienpeiffer

Copy link
Copy Markdown

No description provided.

…ty method is available in tests without calling the _register_hook

Indeed tests are run after the call to _setup_complete and before the call to _register_hook
@pedrobaeza pedrobaeza mentioned this pull request Oct 24, 2016
63 tasks
@hbrunn hbrunn added this to the 10.0 milestone Oct 24, 2016

@hbrunn hbrunn left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adrienpeiffer
adrienpeiffer force-pushed the 10-mig-base_suspend_security-ape branch from 444bfb5 to 43e5d0c Compare October 24, 2016 16:25
@adrienpeiffer

Copy link
Copy Markdown
Author

Thanks @hbrunn 😄

@lasley lasley left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @adrienpeiffer - minor comment but otherwise 👍

Comment thread base_suspend_security/__manifest__.py Outdated
"name": "Suspend security",
"version": "9.0.1.0.0",
"version": "10.0.1.0.0",
"author": "Therp BV",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing , Odoo Community Association (OCA)

@adrienpeiffer

Copy link
Copy Markdown
Author

Thanks Dave !

@pedrobaeza

Copy link
Copy Markdown
Member

Runbot error is due to odoo/odoo#14036, so I merge this as @lasley's comment is attended.

@pedrobaeza
pedrobaeza merged commit 3c29d07 into OCA:10.0 Oct 28, 2016
@tools.ormcache_context('uid', 'model', 'mode', 'raise_exception',
@api.model
@tools.ormcache_context('self._uid', 'model', 'mode', 'raise_exception',
keys=('lang',))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hbrunn Why is the 'lang' value into the context a discriminant value to use as cache key?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lmignon AFAIK, this is the same as the standard method definition

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adrienpeiffer it's a curiosity 😏

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adrienpeiffer that's a good reason, but not a good explanation ;-) - I believe https://github.com/OCA/OCB/blob/10.0/odoo/addons/base/ir/ir_model.py#L828-L831 phrases it sufficiently. Given it's still only the returns decorator which is propagated in inheritance (https://github.com/OCA/OCB/blob/10.0/odoo/api.py#L99, https://github.com/OCA/OCB/blob/10.0/odoo/api.py#L127, https://github.com/OCA/OCB/blob/10.0/odoo/api.py#L77), I think it's the right thing to do to copy the original, even though it doesn't have an effect currently save for being slightly less efficient in cases of switching language

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@hbrunn Thank you for the explanation!

jeanpaulrobineau pushed a commit to apertoso/server-tools that referenced this pull request Mar 12, 2018
tglukhov pushed a commit to invitu/server-tools that referenced this pull request Mar 27, 2020
KKamaa pushed a commit to KKamaa/server-tools that referenced this pull request Aug 11, 2021
SiesslPhillip pushed a commit to grueneerde/OCA-server-tools that referenced this pull request Nov 20, 2024
Syncing from upstream OCA/server-tools (11.0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants