From 7aeb33c5f06d22f19200d5957ecc58390452415f Mon Sep 17 00:00:00 2001 From: Laurent Lasudry Date: Fri, 25 Oct 2019 10:51:29 +0200 Subject: [PATCH] Add order_number fields for BoardDecision & NoteForBoard This refs #22015 --- .../locales/en/LC_MESSAGES/pfwbged.basecontent.po | 4 ++++ .../locales/fr/LC_MESSAGES/pfwbged.basecontent.po | 4 ++++ .../locales/nl/LC_MESSAGES/pfwbged.basecontent.po | 4 ++++ .../basecontent/locales/pfwbged.basecontent.pot | 4 ++++ src/pfwbged/basecontent/types.py | 11 +++++++++-- 5 files changed, 25 insertions(+), 2 deletions(-) diff --git a/src/pfwbged/basecontent/locales/en/LC_MESSAGES/pfwbged.basecontent.po b/src/pfwbged/basecontent/locales/en/LC_MESSAGES/pfwbged.basecontent.po index 3e2f2ad..222b951 100644 --- a/src/pfwbged/basecontent/locales/en/LC_MESSAGES/pfwbged.basecontent.po +++ b/src/pfwbged/basecontent/locales/en/LC_MESSAGES/pfwbged.basecontent.po @@ -79,6 +79,10 @@ msgstr "" msgid "Meeting Date" msgstr "" +#: ../types.py:30 +msgid "Order number" +msgstr "" + #: ../types.py:16 msgid "Original Paper Version" msgstr "" diff --git a/src/pfwbged/basecontent/locales/fr/LC_MESSAGES/pfwbged.basecontent.po b/src/pfwbged/basecontent/locales/fr/LC_MESSAGES/pfwbged.basecontent.po index c45e581..284ffb0 100644 --- a/src/pfwbged/basecontent/locales/fr/LC_MESSAGES/pfwbged.basecontent.po +++ b/src/pfwbged/basecontent/locales/fr/LC_MESSAGES/pfwbged.basecontent.po @@ -112,6 +112,10 @@ msgstr "Migration de profil pour pfwbged.basecontent vers la version 2" msgid "New version" msgstr "Nouvelle version" +#: ../types.py:30 +msgid "Order number" +msgstr "Numéro d'ordre" + #: ../types.py:17 msgid "Original Paper Version" msgstr "Version papier original" diff --git a/src/pfwbged/basecontent/locales/nl/LC_MESSAGES/pfwbged.basecontent.po b/src/pfwbged/basecontent/locales/nl/LC_MESSAGES/pfwbged.basecontent.po index ace68d6..229bac8 100644 --- a/src/pfwbged/basecontent/locales/nl/LC_MESSAGES/pfwbged.basecontent.po +++ b/src/pfwbged/basecontent/locales/nl/LC_MESSAGES/pfwbged.basecontent.po @@ -79,6 +79,10 @@ msgstr "" msgid "Meeting Date" msgstr "" +#: ../types.py:30 +msgid "Order number" +msgstr "" + #: ../types.py:16 msgid "Original Paper Version" msgstr "" diff --git a/src/pfwbged/basecontent/locales/pfwbged.basecontent.pot b/src/pfwbged/basecontent/locales/pfwbged.basecontent.pot index c4e4a6b..31503cb 100644 --- a/src/pfwbged/basecontent/locales/pfwbged.basecontent.pot +++ b/src/pfwbged/basecontent/locales/pfwbged.basecontent.pot @@ -81,6 +81,10 @@ msgstr "" msgid "Meeting Date" msgstr "" +#: ../types.py:30 +msgid "Order number" +msgstr "" + #: ../types.py:16 msgid "Original Paper Version" msgstr "" diff --git a/src/pfwbged/basecontent/types.py b/src/pfwbged/basecontent/types.py index 9fe375e..7e5198c 100644 --- a/src/pfwbged/basecontent/types.py +++ b/src/pfwbged/basecontent/types.py @@ -2,6 +2,7 @@ from zope import schema from zope.interface import implements from plone.autoform import directives as form +from plone.supermodel import model from collective.contact.core.schema import ContactList, ContactChoice from collective.dms.basecontent.dmsdocument import IDmsDocument, DmsDocument @@ -24,6 +25,12 @@ class PfwbBaseDocument(DmsDocument): implements(IPfwbBaseDocument) +class IOrderNumber(model.Schema): + order_number = schema.Int( + title=_(u'Order number'), + required=False) + + class IMedicalCertificate(IDmsIncomingMail): """ """ concerned_contact = ContactChoice( @@ -73,7 +80,7 @@ class Agenda(PfwbBaseDocument): implements(IAgenda) -class IBoardDecision(IPfwbBaseDocument): +class IBoardDecision(IPfwbBaseDocument, IOrderNumber): """ """ meeting_date = schema.Date( title=_(u'Meeting Date'), @@ -127,7 +134,7 @@ class Invoice(DmsIncomingMail): implements(IInvoice) -class INoteForBoard(IPfwbBaseDocument): +class INoteForBoard(IPfwbBaseDocument, IOrderNumber): """ """ internal_reference_no = schema.TextLine( title=_(u'Internal Reference Number'),