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

[13.0] [FIX] stock: Added a method in stock.warehouse to allow override his … #63

Open
wants to merge 1 commit into
base: 13.0
Choose a base branch
from

Conversation

jo541
Copy link

@jo541 jo541 commented Jul 25, 2022

DO NOT MERGE

@jo541 jo541 changed the title [FIX] stock: Added a method in stock.warehouse to allow override his … [13.0] [FIX] stock: Added a method in stock.warehouse to allow override his … Jul 25, 2022
Comment on lines 102 to 103
loc_vals = {'name': _(vals.get('code')), 'usage': 'view',
'location_id': self.env.ref('stock.stock_location_locations').id}
Copy link
Member

Choose a reason for hiding this comment

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

Is it not better to have a prepare method for this ?

Copy link
Member

Choose a reason for hiding this comment

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

It would be even better. But we also need the _create method to place our sudo().

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.

3 participants