-
-
Notifications
You must be signed in to change notification settings - Fork 204
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
[16.0][FIX] rma: _get_sequence_values signature #366
Conversation
Hi @pedrobaeza, |
rma/models/stock_warehouse.py
Outdated
def _get_sequence_values(self): | ||
values = super()._get_sequence_values() | ||
def _get_sequence_values(self, name=False, code=False): | ||
values = super()._get_sequence_values(name, code) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always pass the keyword arguments as keyword:
values = super()._get_sequence_values(name, code) | |
values = super()._get_sequence_values(name=name, code=code) |
I have noted that uninstalling the module, the sequences remain. Is there any cleanup code for that in standard? |
770cbf4
to
5f9ec31
Compare
Not that I'm aware of. I guess you don't even need to uninstall, but just remove a warehouse and that sequences dirt will stay there forever |
hahaha: odoo/odoo#134032 |
Oh :) |
/ocabot merge patch |
This PR looks fantastic, let's merge it! |
Congratulations, your PR was merged at 86e847b. Thanks a lot for contributing to OCA. ❤️ |
Respect the orignal method signature
https://github.com/odoo/odoo/blame/6bb68d9f3263c2154eb87ec22559d142e880c084/addons/stock/models/stock_warehouse.py#L1017
please review @pedrobaeza @victoralmau
cc @Tecnativa