contract icon indicating copy to clipboard operation
contract copied to clipboard

[17.0] Bug in subscription_oca

Open Tisho99 opened this issue 6 months ago • 0 comments

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 avatar Aug 02 '24 08:08 Tisho99