Subscription

Odoo Subscriptions is used to run recurring businesses. Here it is used to create the monthly automated invoicing of the customers based on their selected abo model.

Process

At the end of the month all open invoices of the customers will automatically be settled against a specific account. Based on the open positions on that account, automated invoices of the open balances for each customers will be created automatically. See also Automation for more details on how to automate actions in odoo.

Realisation

For each new customer respectively new abo model, a “Pro Forma Invoice” will be created in odoo. Then a subscription will be created based on the invoice template. These 2 steps are realized with the python function odoo_xmlrpc_twisted.functions.create_subscription().

The subscription will be created in the odoo database table “subscription.subscription” as a recurring document. The scheduled action will probably realised using the table “ir.cron” as the basis for a Cron Job for the execution of the automated task.