Skip to content
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

Open
wants to merge 1 commit into
base: 15.0
Choose a base branch
from

Conversation

Saran440
Copy link
Member

@Saran440 Saran440 commented Aug 22, 2023

This module add option for clear down payment with Proportional on Sale Order
Selection_014

reference: OCA/purchase-workflow#1939

@Saran440 Saran440 force-pushed the 15.0-add-sale_deposit_clear_option branch from a7e5aa6 to 5a9d58c Compare August 26, 2023 04:20
@rousseldenis rousseldenis added this to the 15.0 milestone Aug 29, 2023
Copy link
Contributor

@rousseldenis rousseldenis left a 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

@Saran440 Saran440 changed the title [15.0][ADD] sale_deposit_clear_option [15.0][ADD] sale_deposit_deduction_option Sep 20, 2023
@Saran440 Saran440 force-pushed the 15.0-add-sale_deposit_clear_option branch from 3201012 to 94c300c Compare September 20, 2023 07:33
@Saran440
Copy link
Member Author

@rousseldenis Thank you for your review. I change module name to sale_deposit_deduction_option and add test script.

sale_orders = self.env["sale.order"].browse(
self._context.get("active_ids", [])
)
self = self.with_context(
Copy link
Contributor

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().

Copy link
Contributor

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 ?

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants