From 00f94ec61fad94ed49f646396292228187b50173 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Tue, 21 Oct 2025 11:46:47 +0700 Subject: add asset type in assets --- indoteknik_custom/models/account_asset.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'indoteknik_custom/models/account_asset.py') diff --git a/indoteknik_custom/models/account_asset.py b/indoteknik_custom/models/account_asset.py index bd5f9adb..211ab229 100644 --- a/indoteknik_custom/models/account_asset.py +++ b/indoteknik_custom/models/account_asset.py @@ -4,6 +4,10 @@ from odoo.exceptions import AccessError, UserError, ValidationError class AccountAsset(models.Model): _inherit = 'account.asset.asset' + asset_type = fields.Selection(string='Tipe Aset', selection=[ + ('aset_gudang', ' Aset Gudang'), + ('aset_kantor', 'Aset Kantor'), + ], tracking=True ) def action_close_asset(self): for asset in self: -- cgit v1.2.3