Recurring Documents
subscription · odoo/odoo
Health
65/100
fair
-
Security25/25No findings
-
Activity0/25Last human commit 111 months ago
-
Required by15/251 module depends on it
-
Maturity25/25In 5 Odoo series since 6.1
Heuristic over the facts below, not an audit · How it's computed
Required by
1
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.93 MB
Module directory on disk
Code analysis
3 migration notes
4 models
10 views
0 HTTP endpoints
Migration considerations
Subscription— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (5 methods) migration-api-multi-one · sourceview_subscription_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_subscription_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (4 occurrences in this file) migration-view-tree-tag · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Create recurring documents.
This module allows to create new documents and add subscriptions on that document.
e.g. To have an invoice generated automatically periodically:
* Define a document type based on Invoice object
* Define a subscription whose source document is the document defined as
above. Specify the interval information and partner to be invoiced.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- Python dependencies
- None
- System dependencies
- None
- Required by
- subscription_action
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 10
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
document_fields_form |
subscription.document.fields.form | subscription.document.fields | form | New |
document_fields_tree |
subscription.document.fields.tree | subscription.document.fields | tree | New |
document_form |
subscription.document.form | subscription.document | form | New |
document_tree |
subscription.document.tree | subscription.document | tree | New |
subscription_subscription_history_form |
subscription.subscription.history.form | subscription.subscription.history | form | New |
subscription_subscription_history_tree |
subscription.subscription.history.tree | subscription.subscription.history | tree | New |
view_subscription_document_filter |
subscription.document.filter | subscription.document | search | New |
view_subscription_filter |
subscription.subscription.filter | subscription.subscription | search | New |
view_subscription_form |
subscription.subscription.form | subscription.subscription | form | New |
view_subscription_tree |
subscription.subscription.tree | subscription.subscription | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 4
New fields (4)
-
activeBooleandefault=Truehelp='If the active field is set to False, it will allow you to hide the subscription document without removing it.' -
field_idsOne2many → subscription.document.fieldscopy=Truestring='Fields' args: 'subscription.document.fields', 'document_id' -
modelMany2one → ir.modelrequired=Truestring='Object' args: 'ir.model' -
nameCharrequired=True
No public methods.
New fields (3)
-
document_idMany2one → subscription.documentondelete='cascade'string='Subscription Document' args: 'subscription.document' -
fieldMany2one → ir.model.fieldsdomain="[('model_id', '=', parent.model)]"required=True args: 'ir.model.fields' -
valueSelectionhelp='Default value is considered for field when new document is generated.'string='Default Value' args: [('false', 'False'), ('date', 'Current Date')]
No public methods.
New fields (14)
-
activeBooleandefault=Truehelp='If the active field is set to False, it will allow you to hide the subscription without removing it.' -
cron_idMany2one → ir.cronhelp='Scheduler which runs on subscription'states={'running': [('readonly', True)], 'done': [('readonly', True)]}string='Cron Job' args: 'ir.cron' -
date_initDatetimedefault=fields.Datetime.nowstring='First Date' -
doc_linesOne2many → subscription.subscription.historyreadonly=Truestring='Documents created' args: 'subscription.subscription.history', 'subscription_id' -
doc_sourceReferencehelp='User can choose the source document on which he wants to create documents'required=Trueselection=_get_document_typesstring='Source Document' -
exec_initIntegerstring='Number of Documents' -
interval_numberIntegerdefault=1string='Internal Qty' -
interval_typeSelectiondefault='months'string='Interval Unit' args: [('days', 'Days'), ('weeks', 'Weeks'), ('months', 'Months')] -
nameCharrequired=True -
noteTexthelp='Description or Summary of Subscription'string='Notes' -
notesTextstring='Internal Notes' -
partner_idMany2one → res.partnerstring='Partner' args: 'res.partner' -
stateSelectioncopy=Falsedefault='draft'string='Status' args: [('draft', 'Draft'), ('running', 'Running'), ('done', 'Done')] -
user_idMany2one → res.usersdefault=<expr>required=Truestring='User' args: 'res.users'
-
model_copy(self)@api.multi -
set_done(self)@api.multi -
set_draft(self)@api.multi -
set_process(self)@api.multi -
unlink(self)@api.multi
New fields (3)
-
dateDatetime -
document_idReferencerequired=Trueselection=_get_document_typesstring='Source Document' -
subscription_idMany2one → subscription.subscriptionondelete='cascade'string='Subscription' args: 'subscription.subscription'
No public methods.
Loading…
Loading…
Loading…
Loading…