-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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] sale_deposit_deduction_option #2651
base: 15.0
Are you sure you want to change the base?
Conversation
a7e5aa6
to
5a9d58c
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.
Some comments.
Could you also add some tests as this is quite a critical process? Thanks
sale_deposit_clear_option/wizard/sale_make_invoice_advance_views.xml
Outdated
Show resolved
Hide resolved
3201012
to
94c300c
Compare
@rousseldenis Thank you for your review. I change module name to |
sale_orders = self.env["sale.order"].browse( | ||
self._context.get("active_ids", []) | ||
) | ||
self = self.with_context( |
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.
@Saran440 I don't like passing things to context if that can be avoided.
Here, you can override _create_invoice() as it returns the created move. Then, you can do the process you have written in account.move.create().
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.
@Saran440 Any news on this ?
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.
@rousseldenis Hi, sorry for late reply.
Because user can create invoice either proportional or not each time. (Wizard view)
I don't know how to do if no passed value in context.
it can overwrite function, but this module maybe can't use with other modules.
This module add option for clear down payment with Proportional on Sale Order
reference: OCA/purchase-workflow#1939