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

[17.0] Bug in subscription_oca #1109

Open
Tisho99 opened this issue Aug 2, 2024 · 0 comments
Open

[17.0] Bug in subscription_oca #1109

Tisho99 opened this issue Aug 2, 2024 · 0 comments
Labels

Comments

@Tisho99
Copy link
Contributor

Tisho99 commented Aug 2, 2024

Subscription templates with "Sale order & Invoice" invoicing mode do not work properly

Module

subscription_oca

Describe the bug

The sale order created by subscriptions with "Sale order & Invoice" invoicing mode, creates another subscription on its confirmation.

To Reproduce

Affected versions:

Steps to reproduce the behavior:
1.Go to Subscriptions > Configuration > Subscription templates.
Create a template with "Sale order & Invoice" in the invoicing mode

  1. Go to Subscriptions > Subscriptions > Products.
    Create the product and in the sales tab, complete the fields Subscribable product and Subscription template. The Subscription template should have "Sale order & Invoice" in the invoicing mode
    Create a sales order with the product and confirm it.

  2. Go to the subscription created by the sales order, and set the next invoice date to today.
    Go to scheduled actions and execute the "Subscriptions Management" cron job
    The subscription will create a confirmed sale order, but the confirmation of the sale will trigger the creation of another subscription because it has suscriptable products

Expected behavior
The sale created by the subscription does not create another subscription

Additional context
I would probably not be able to fix the bug

@Tisho99 Tisho99 added the bug label Aug 2, 2024
@Tisho99 Tisho99 changed the title Bug in migration of subscription_oca to v17. [17.0] Bug in migration of subscription_oca Aug 2, 2024
@Tisho99 Tisho99 changed the title [17.0] Bug in migration of subscription_oca [17.0] Bug in subscription_oca Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant