From 89d0f8b13f0deeb0efc641978980b6b737728e5e Mon Sep 17 00:00:00 2001 From: Olivier Da Rocha Date: Thu, 22 Mar 2018 11:57:16 +0100 Subject: [PATCH] capabilities.bill: link Documents to Transactions --- weboob/capabilities/bill.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weboob/capabilities/bill.py b/weboob/capabilities/bill.py index 5e803ea355..6ca7c16bdc 100644 --- a/weboob/capabilities/bill.py +++ b/weboob/capabilities/bill.py @@ -18,7 +18,7 @@ # along with weboob. If not, see . -from .base import BaseObject, StringField, DecimalField, BoolField, UserError, Currency +from .base import BaseObject, StringField, DecimalField, BoolField, UserError, Currency, Field from .date import DateField from .collection import CapCollection @@ -66,6 +66,7 @@ class Document(BaseObject): format = StringField('file format of the document') label = StringField('label of document') type = StringField('type of document') + transactions = Field('List of transaction ID related to the document', list, default=[]) class Bill(Document, Currency): -- GitLab