add contract models and register this models admin panel
This commit is contained in:
0
core/apps/contracts/enums/__init__.py
Normal file
0
core/apps/contracts/enums/__init__.py
Normal file
12
core/apps/contracts/enums/contract.py
Normal file
12
core/apps/contracts/enums/contract.py
Normal file
@@ -0,0 +1,12 @@
|
||||
SIDES = (
|
||||
('two_or_more', 'two or more',),
|
||||
('customer_only', 'customer only',),
|
||||
('only_company', 'onlycompany'),
|
||||
)
|
||||
|
||||
STATUS = (
|
||||
('created', 'created',),
|
||||
('signed_company', 'signed by company',),
|
||||
('signed_customer', 'signed by customer',),
|
||||
('cancelled', 'cancelled')
|
||||
)
|
||||
12
core/apps/contracts/enums/contract_file.py
Normal file
12
core/apps/contracts/enums/contract_file.py
Normal file
@@ -0,0 +1,12 @@
|
||||
FILE_TYPE = (
|
||||
('all_files', 'all files',),
|
||||
('PDF', 'pdf',),
|
||||
('word_files', 'word files',),
|
||||
('image', 'image'),
|
||||
)
|
||||
|
||||
USER_PERMISSION = (
|
||||
('all', 'all'),
|
||||
('add', 'add'),
|
||||
('delete', 'delete'),
|
||||
)
|
||||
15
core/apps/contracts/enums/contract_notification.py
Normal file
15
core/apps/contracts/enums/contract_notification.py
Normal file
@@ -0,0 +1,15 @@
|
||||
NOTIFICATION_EVENT = (
|
||||
('exact_date', 'exact date'),
|
||||
('counterparty_signing', 'counterparty signing'),
|
||||
('signature_all_parties', 'Signature of all parties')
|
||||
)
|
||||
|
||||
TYPE_NOTIFICATION = (
|
||||
('sms', 'sms'),
|
||||
('whatsup', 'whatsup'),
|
||||
)
|
||||
|
||||
TYPE_MESSAGE = (
|
||||
('krill', 'krill'),
|
||||
('latin', 'latin'),
|
||||
)
|
||||
4
core/apps/contracts/enums/contract_side.py
Normal file
4
core/apps/contracts/enums/contract_side.py
Normal file
@@ -0,0 +1,4 @@
|
||||
ROLE = (
|
||||
('physical', 'physical'),
|
||||
('legal', 'legal'),
|
||||
)
|
||||
9
core/apps/contracts/enums/contract_signature.py
Normal file
9
core/apps/contracts/enums/contract_signature.py
Normal file
@@ -0,0 +1,9 @@
|
||||
SIGNATURE_STATUS = (
|
||||
('signed', 'signed'),
|
||||
('organized', 'organized')
|
||||
)
|
||||
|
||||
SIGNATURE_TYPE = (
|
||||
('sms_sign', 'sms signature'),
|
||||
('electronic_sing', 'electronic signature')
|
||||
)
|
||||
Reference in New Issue
Block a user