-
-
Notifications
You must be signed in to change notification settings - Fork 35
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] repair_scrap #37
Conversation
efc71dd
to
fd3608e
Compare
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.
It works good. Just a couple of comments:
in the repair type, the scrap location is not in the right position I think. It should be with the other locations:
Then, specially when removing parts, you may want to scrap those as well. But the wizard does not allow to scrap more products. I think the removed parts of the repair can be included, or at least, the user should be able to include them:
fd3608e
to
4496064
Compare
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.
|
||
def action_create_scrap(self): | ||
self._create_scrap() | ||
return self.item_ids[0].repair_id.action_view_scrap_transfers() |
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.
It may be dummy, but if for some reason the user deletes all the lines there is an error here
return self.item_ids[0].repair_id.action_view_scrap_transfers() | |
if self.item_ids: | |
return self.item_ids[0].repair_id.action_view_scrap_transfers() |
4496064
to
da324ea
Compare
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.
Functional + code review. LGTM
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.
LGTM!
@@ -0,0 +1,66 @@ | |||
<?xml version="1.0" ?> |
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.
<?xml version="1.0" ?> | |
<?xml version="1.0" encoding="utf-8"?> |
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.
Done, thank you
@@ -0,0 +1,21 @@ | |||
{ |
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.
{ | |
# Copyright 2024 ForgeFlow S.L. (http://www.forgeflow.com) | |
{ |
in main python files
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.
Done, thank you
repair_scrap/__manifest__.py
Outdated
"version": "15.0.1.0.0", | ||
"license": "AGPL-3", | ||
"category": "Repair", | ||
"summary": """Repair Scrap""", |
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.
"summary": """Repair Scrap""", | |
"summary": "To send to scrap components or irreparable components.", |
da324ea
to
569f965
Compare
This PR has the |
/ocabot merge nobump |
On my way to merge this fine PR! |
Congratulations, your PR was merged at 8a037f9. Thanks a lot for contributing to OCA. ❤️ |
Add new module to manage repair scraps
@ForgeFlow