From ff3ae5c5e996c0b40a8f7203c802e0419f7fb6d0 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 27 Jan 2017 17:52:53 +0100 Subject: Add external ids to Containers and Warehouses --- ishtar_common/models.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index d1d58f184..0da937f1a 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1104,6 +1104,20 @@ class IshtarSiteProfile(models.Model, Cached): u"Change this with care. With incorrect formula, the " u"application might be unusable and import of external " u"data can be destructive.")) + container_external_id = models.TextField( + _(u"Container external id"), + default="{responsible__external_id-index", + help_text=_(u"Formula to manage container external ID. " + u"Change this with care. With incorrect formula, the " + u"application might be unusable and import of external " + u"data can be destructive.")) + warehouse_external_id = models.TextField( + _(u"Warehouse external id"), + default="{name|slug}", + help_text=_(u"Formula to manage warehouse external ID. " + u"Change this with care. With incorrect formula, the " + u"application might be unusable and import of external " + u"data can be destructive.")) person_raw_name = models.TextField( _(u"Raw name for person"), default="{name|upper} {surname}", -- cgit v1.2.3