summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-27 17:52:53 +0100
committerÉtienne Loks <etienne.loks@iggdrasil.net>2017-01-27 17:53:30 +0100
commitff3ae5c5e996c0b40a8f7203c802e0419f7fb6d0 (patch)
treec04042ec88fbc80d4c331572fce6c84bfc6eafe9 /ishtar_common/models.py
parent95baa6bfa858c46860275b96266c8a5f1e115d1d (diff)
downloadIshtar-ff3ae5c5e996c0b40a8f7203c802e0419f7fb6d0.tar.bz2
Ishtar-ff3ae5c5e996c0b40a8f7203c802e0419f7fb6d0.zip
Add external ids to Containers and Warehouses
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py14
1 files changed, 14 insertions, 0 deletions
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}",