contract
contract copied to clipboard
[17.0] Bug in subscription_oca
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
-
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.
-
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