diff options
| author | it-fixcomart <it@fixcomart.co.id> | 2024-11-08 13:56:37 +0700 |
|---|---|---|
| committer | it-fixcomart <it@fixcomart.co.id> | 2024-11-08 13:56:37 +0700 |
| commit | 1cf2ec912af62cca22de4c529d1bec154ca33bac (patch) | |
| tree | 14ea6e1f91df45112d3b192f2141bfe7fb111223 /indoteknik_api/models | |
| parent | 4f4bcf8ba7aa3f3f1b688997d9ec8b8cd913dad3 (diff) | |
<iman> update quotation website
Diffstat (limited to 'indoteknik_api/models')
| -rw-r--r-- | indoteknik_api/models/res_users.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indoteknik_api/models/res_users.py b/indoteknik_api/models/res_users.py index 230707cb..52a044dc 100644 --- a/indoteknik_api/models/res_users.py +++ b/indoteknik_api/models/res_users.py @@ -14,6 +14,9 @@ class ResUsers(models.Model): 'manager': 2, 'director': 3 } + partner_tempo = False + if main_partner: + partner_tempo = main_partner.get_check_tempo_partner() data = { 'id': res_user.id, @@ -32,7 +35,8 @@ class ResUsers(models.Model): 'feature': { 'so_approval': main_partner.use_so_approval, 'only_ready_stock': main_partner.use_only_ready_stock - } + }, + 'partner_tempo': partner_tempo } return data |
