summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models/account_move.py
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models/account_move.py')
-rw-r--r--indoteknik_custom/models/account_move.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/indoteknik_custom/models/account_move.py b/indoteknik_custom/models/account_move.py
index 699191d6..82a86a39 100644
--- a/indoteknik_custom/models/account_move.py
+++ b/indoteknik_custom/models/account_move.py
@@ -31,6 +31,17 @@ class AccountMove(models.Model):
due_line = fields.One2many('due.extension.line', 'invoice_id', compute='_compute_due_line', string='Due Extension Lines')
no_faktur_pajak = fields.Char(string='No Faktur Pajak')
date_completed = fields.Datetime(string='Date Completed')
+ mark_upload_efaktur = fields.Selection([
+ ('belum_upload', 'Belum Upload FP'),
+ ('sudah_upload', 'Sudah Upload FP'),
+ ], 'Mark Upload Faktur', compute='_compute_mark_upload_efaktur', default='belum_upload')
+
+ def _compute_mark_upload_efaktur(self):
+ for move in self:
+ if move.date_efaktur_exported or move.is_efaktur_exported or move.efaktur_document:
+ move.mark_upload_efaktur = 'sudah_upload'
+ else:
+ move.mark_upload_efaktur = 'belum_upload'
def _compute_due_line(self):
for invoice in self: