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
commitef5abb44747efb25379dd57483eb7d282244ae54 (patch)
treec04042ec88fbc80d4c331572fce6c84bfc6eafe9 /ishtar_common/models.py
parent136d69ad974a2beb94abb0b669d88054371ef57b (diff)
downloadIshtar-ef5abb44747efb25379dd57483eb7d282244ae54.tar.bz2
Ishtar-ef5abb44747efb25379dd57483eb7d282244ae54.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}",