summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiqdad <ahmadmiqdad27@gmail.com>2025-10-21 11:46:47 +0700
committerMiqdad <ahmadmiqdad27@gmail.com>2025-10-21 11:46:47 +0700
commit00f94ec61fad94ed49f646396292228187b50173 (patch)
tree51ee615387806c72629d51366cc3f28157b4398c
parentfdf9425e60b8c91ef797f7c7b88baf98f2bd4619 (diff)
<Miqdad> add asset type in assets
-rw-r--r--indoteknik_custom/models/account_asset.py4
-rw-r--r--indoteknik_custom/views/account_asset_views.xml3
2 files changed, 7 insertions, 0 deletions
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:
diff --git a/indoteknik_custom/views/account_asset_views.xml b/indoteknik_custom/views/account_asset_views.xml
index 90c53623..776ab51f 100644
--- a/indoteknik_custom/views/account_asset_views.xml
+++ b/indoteknik_custom/views/account_asset_views.xml
@@ -12,6 +12,9 @@
type="object"
/>
</button>
+ <field name="invoice_id" position="after">
+ <field name="asset_type"/>
+ </field>
</field>
</record>
</data>