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

[FIX] stock: remove move 'without package' properly #36241

Closed
wants to merge 1 commit into from

Conversation

Whenrow
Copy link
Contributor

@Whenrow Whenrow commented Aug 29, 2019

on a picking, move_ids_without_package is a subset of move_lines.
The inverse function on move_ids_without_package only work well when we
add a move.

This commit improves the inverse function to take deletion into account

Description of the issue/feature this PR addresses:

Current behavior before PR:

Desired behavior after PR is merged:

--
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr

@C3POdoo C3POdoo added the RD research & development, internal work label Aug 29, 2019
@robodoo robodoo added the CI 🤖 Robodoo has seen passing statuses label Aug 29, 2019

def _set_move_without_package(self):
self.move_lines |= self.move_ids_without_package
new_mwp = self[0].move_ids_without_package
Copy link
Contributor

@fmdl fmdl Sep 1, 2019

Choose a reason for hiding this comment

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

this is strange : self[0] then for picking in self

def _set_move_without_package(self):
     self.move_lines = self.move_lines | self._get_move_ids_without_package()

on a picking, move_ids_without_package is a subset of move_lines.
The inverse function on move_ids_without_package only work well when we
add a move.

This commit improves the inverse function to take deletion into account
@robodoo robodoo removed the CI 🤖 Robodoo has seen passing statuses label Sep 9, 2019
@Whenrow
Copy link
Contributor Author

Whenrow commented Sep 9, 2019

see #36558

@Whenrow Whenrow closed this Sep 9, 2019
@Whenrow Whenrow deleted the saas-12.5-delete-move-whe branch October 9, 2019 06:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RD research & development, internal work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants