diff options
| author | FIN-IT_AndriFP <it@fixcomart.co.id> | 2025-10-10 14:47:04 +0700 |
|---|---|---|
| committer | FIN-IT_AndriFP <it@fixcomart.co.id> | 2025-10-10 14:47:04 +0700 |
| commit | 90a20c802a1675cf781c553de03fa1cb7ba6e2ac (patch) | |
| tree | bb8cea97ee5516bfe8c89d9e1eb3d5c96d9379ba /indoteknik_custom/models | |
| parent | 99896ae7999de433837faed09466c06845493770 (diff) | |
(andri)add attachment
Diffstat (limited to 'indoteknik_custom/models')
| -rw-r--r-- | indoteknik_custom/models/advance_payment_request.py | 25 |
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' |
