-
-
Notifications
You must be signed in to change notification settings - Fork 225
[18.0][ADD] rma_sale_stock_restocking_fee_invoicing #505
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
base: 18.0
Are you sure you want to change the base?
[18.0][ADD] rma_sale_stock_restocking_fee_invoicing #505
Conversation
25e468d to
8ab1cf0
Compare
marielejeune
left a comment
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, 2 minor comments
| restocking_fee_type = fields.Selection( | ||
| [ | ||
| ("no_fee", "No Restocking Fee"), | ||
| ("fixed", "Fixed Amount"), | ||
| ("percent", "Percentage"), | ||
| ], | ||
| default="no_fee", | ||
| help="Define whether the restocking fee is a fixed amount or a percentage.", | ||
| ) |
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.
I would add a required=True attribute, since in the methods you check that restocking_fee_type != 'no_fee', you want to avoid false values.
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.
I removed the 'no_fee' option
8ab1cf0 to
6e8ec12
Compare
This module extends the standard RMA flow and the behavior of `sale_stock_restocking_fee_invoicing` by allowing: - Fixed or percentage-based restocking fees. - Automatic fee application during RMA receipt. - Integration with different refund strategies: - Update sale order quantity. - Manual refund after receipt.
6e8ec12 to
2e91e5d
Compare
5558c74 to
cc6fc67
Compare
This module extends the standard RMA flow and the behavior of
sale_stock_restocking_fee_invoicingby allowing:needs: OCA/stock-logistics-workflow#2150