summaryrefslogtreecommitdiff
path: root/indoteknik_custom/models
diff options
context:
space:
mode:
Diffstat (limited to 'indoteknik_custom/models')
-rw-r--r--indoteknik_custom/models/advance_payment_request.py25
1 files changed, 18 insertions, 7 deletions
diff --git a/indoteknik_custom/models/advance_payment_request.py b/indoteknik_custom/models/advance_payment_request.py
index 412afa7a..ae15a86f 100644
--- a/indoteknik_custom/models/advance_payment_request.py
+++ b/indoteknik_custom/models/advance_payment_request.py
@@ -738,21 +738,32 @@ class ReimburseLine(models.Model):
account_id = fields.Many2one(
'account.account',
string='Jenis Biaya',
- required=True,
domain="[('id', 'in', [484, 486, 527, 529, 530, 471, 473, 492, 493, 488, 625, 528, 533, 534])]"
)
- description = fields.Char(string='Description', required=True)
- distance = fields.Float(string='Jarak (km)')
- quantity = fields.Float(string='Quantity')
- price = fields.Float(string='Price')
- total = fields.Float(string='Total')
+ description = fields.Char(string='Description', required=True, tracking=3)
+ distance = fields.Float(string='Jarak (km)', tracking=3)
+ quantity = fields.Float(string='Quantity', tracking=3)
+ price = fields.Float(string='Price', tracking=3)
+ total = fields.Float(string='Total', tracking=3)
currency_id = fields.Many2one(related='request_id.currency_id')
is_vehicle = fields.Boolean(string='Berkendara?')
vehicle_type = fields.Selection([
('motor', 'Motor'),
('car', 'Mobil'),
- ], string='Tipe Kendaraan')
+ ], string='Tipe Kendaraan', tracking=3)
+
+ attachment_image = fields.Binary(string='Image', attachment_filename='attachment_name_image')
+ attachment_pdf = fields.Binary(string='PDF', attachment_filename='attachment_name_pdf')
+ attachment_name_image = fields.Char(string='Filename Image')
+ attachment_name_pdf = fields.Char(string='Filename PDF')
+
+ attachment_type = fields.Selection([
+ ('pdf', 'PDF'),
+ ('image', 'Image'),
+ ], string="Attachment Type")
+
+ is_checked = fields.Boolean(string='Checked', default=False)
class AdvancePaymentSettlement(models.Model):
_name = 'advance.payment.settlement'