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

[15.0][ADD] mrp_weighing: Add module #12

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

sergio-teruel
Copy link
Contributor

@chienandalu chienandalu changed the title [15.0][ADD] stock-weighing: Add module [15.0][ADD] mrp_weighing: Add module Jun 26, 2024
@chienandalu chienandalu added this to the 15.0 milestone Jun 26, 2024
@sergio-teruel sergio-teruel force-pushed the 15.0-ADD-stock-weighing branch 2 times, most recently from dabba72 to 8952fb6 Compare September 16, 2024 18:39
Comment on lines 17 to 21
@api.model
def _has_weigh_domain(self):
# All finished moves can be processed"
# TODO: Check with David
return []
Copy link
Member

Choose a reason for hiding this comment

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

You're disabling the flag for any other workflow. If you don't want to filter by this criteria, don't do so in the mrp.production

Suggested change
@api.model
def _has_weigh_domain(self):
# All finished moves can be processed"
# TODO: Check with David
return []

def _compute_has_weighing_operations(self):
for mrp_production in self:
mrp_production.has_weighing_operations = (
mrp_production.move_finished_ids.filtered("has_weight")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
mrp_production.move_finished_ids.filtered("has_weight")
mrp_production.move_finished_ids

action = self.env["ir.actions.actions"]._for_xml_id(
"stock_weighing.weighing_operation_action"
)
weight_moves = self.move_finished_ids.filtered("has_weight")
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
weight_moves = self.move_finished_ids.filtered("has_weight")
weight_moves = self.move_finished_ids

@sergio-teruel
Copy link
Contributor Author

@chienandalu Changes done

Copy link
Member

@chienandalu chienandalu left a comment

Choose a reason for hiding this comment

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

/ocabot merge nobump

@OCA-git-bot
Copy link
Contributor

What a great day to merge this nice PR. Let's do it!
Prepared branch 15.0-ocabot-merge-pr-12-by-chienandalu-bump-nobump, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 9c034cb into OCA:15.0 Nov 7, 2024
5 of 7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 7e91497. Thanks a lot for contributing to OCA. ❤️

@pedrobaeza pedrobaeza deleted the 15.0-ADD-stock-weighing branch November 7, 2024 09:49
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.

4 participants