From 4adf6f2638c9cadccc5ff743376d22ff80e26966 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Thu, 14 Jan 2016 00:10:15 +0100 Subject: Add receipt date in documentation for sources (refs #3014) --- ishtar_common/forms_common.py | 3 +++ ishtar_common/models.py | 3 +++ 2 files changed, 6 insertions(+) (limited to 'ishtar_common') diff --git a/ishtar_common/forms_common.py b/ishtar_common/forms_common.py index f194caffa..29997a741 100644 --- a/ishtar_common/forms_common.py +++ b/ishtar_common/forms_common.py @@ -586,6 +586,9 @@ class SourceForm(forms.Form): widget=widgets.JQueryDate) creation_date = forms.DateField(label=_(u"Creation date"), required=False, widget=widgets.JQueryDate) + receipt_date_in_documentation = forms.DateField( + label=_(u"Receipt date in documentation"), required=False, + widget=widgets.JQueryDate) comment = forms.CharField(label=_(u"Comment"), widget=forms.Textarea, required=False) description = forms.CharField(label=_(u"Description"), diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 61376e079..268a2f0b4 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2196,6 +2196,9 @@ class Source(models.Model): verbose_name=_(u"Receipt date")) creation_date = models.DateField(blank=True, null=True, verbose_name=_(u"Creation date")) + receipt_date_in_documentation = models.DateField( + blank=True, null=True, + verbose_name=_(u"Receipt date in documentation")) item_number = models.IntegerField(_(u"Item number"), default=1) reference = models.CharField(_(u"Ref."), max_length=100, null=True, blank=True) -- cgit v1.2.3