-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
Conversation
9415b74
to
913952d
Compare
dabba72
to
8952fb6
Compare
mrp_weighing/models/stock_move.py
Outdated
@api.model | ||
def _has_weigh_domain(self): | ||
# All finished moves can be processed" | ||
# TODO: Check with David | ||
return [] |
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.
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
@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") |
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.
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") |
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.
weight_moves = self.move_finished_ids.filtered("has_weight") | |
weight_moves = self.move_finished_ids |
8952fb6
to
be1ad38
Compare
@chienandalu Changes done |
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.
/ocabot merge nobump
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 7e91497. Thanks a lot for contributing to OCA. ❤️ |
cc @Tecnativa TT49525
ping @carlosdauden @chienandalu