-
-
Notifications
You must be signed in to change notification settings - Fork 704
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
[11.0][ADD] Scrap reason code module #770
Conversation
Hi @bodedra, |
f9917ea
to
22767d7
Compare
@hveficent @aheficent @lreficent @jbeficent @max3903 Would you please help me. Test case is failed in |
Are you available for review? @b-kannan @osimallen @smangukiya @gavindav @diverfr @MDodoo @guimarc-br Test case are green for this PR. |
1dfd11f
to
412bb40
Compare
ci is 🍏 |
@bodedra all I can see is that stock_request_user is not available to read stock.warehouse0 record. |
@hveficent Agree. I verified that read access right is already set. Here is ref https://github.com/OCA/stock-logistics-warehouse/blob/11.0/stock_request/security/ir.model.access.csv#L14 |
@rousseldenis Is there any suggestion for fix #770 (comment) Read access right already for warehouse. https://github.com/OCA/stock-logistics-warehouse/blob/11.0/stock_request/security/ir.model.access.csv#L14 |
@bodedra if self.warehouse_id != loc_wh:
self.location_id = self.warehouse_id.sudo().lot_stock_id.id
if self.warehouse_id.sudo().company_id != self.company_id:
self.company_id = self.warehouse_id.sudo().company_id |
@etobella can you figure out how to avoid sudo usage here? I think as you only writing/reading fields it does not matters. |
412bb40
to
cb58cf5
Compare
Thank you @hveficent for suggested fix in stock_request_* module. |
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.
nitpicking
Squash Commit's
3794bbb
to
a50acf1
Compare
@nikul-serpentcs Comment addressed! Thanks for your review. |
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.
Code Review LGTM 👍
@rousseldenis Comment attended! |
@Chandresh-SerpentCS are you available for a review? |
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.
Code review
@rousseldenis Comment attended! Would you please review it again. |
@OCA/logistics-maintainers are we good to merge this? |
Ping @dreispt |
@bodedra Do you want to keep the 3 commits or do you plan to squash them ? |
@rousseldenis Let me squash them into 1. |
32d10e7
to
58662fb
Compare
/ocabot merge |
What a great day to merge this nice PR. Let's do it! |
Congratulations, your PR was merged at 5ec1ba5. Thanks a lot for contributing to OCA. ❤️ |
Usage
In the Inventory module, open the Configuration menu and select Scrap Reason Codes.
Create the required scrap reason codes. Under Operations, select Scrap. Click the
create button to create a new scrap order. You will see a reason code field on the
scrap form which will allow you to select any of the scrap codes you created previously.