Skip to content

Fix/domain get context fix#9

Open
PieterPaulussen wants to merge 2 commits into
1.1.47from
fix/domain_get_context_fix
Open

Fix/domain get context fix#9
PieterPaulussen wants to merge 2 commits into
1.1.47from
fix/domain_get_context_fix

Conversation

@PieterPaulussen
Copy link
Copy Markdown

This PR fixes 2 things:

  1. Pass the context to the _where_calc function when called from domain_get on ir.rule access validations
  2. Select the appropriate context value to pass to the browse method.

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.

@StefanRijnhart the context value is also missing here and here. Do you want me to fix these as well?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Sure

@PieterPaulussen PieterPaulussen force-pushed the fix/domain_get_context_fix branch from 370063c to 2f49102 Compare May 24, 2018 13:12
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Maybe better to just expand the signature to the standard signature for old API function fields: function(self, cr, uid, ids, field, arg, context=None)

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.

Great, thanks for the tip. That is indeed the cleanest way to do it.

@PieterPaulussen PieterPaulussen force-pushed the fix/domain_get_context_fix branch from 2f49102 to 38ac1bf Compare May 25, 2018 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants