commit 225c743eeecaea0fe97eb7ae751e316cd5d2ff94 Author: Suherdy Yacob Date: Wed Jan 21 17:06:46 2026 +0700 first commit diff --git a/__init__.py b/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/__manifest__.py b/__manifest__.py new file mode 100644 index 0000000..b8c93d3 --- /dev/null +++ b/__manifest__.py @@ -0,0 +1,17 @@ +{ + 'name': 'Asset Code Field', + 'version': '17.0.1.0.0', + 'category': 'Accounting/Accounting', + 'summary': 'Adds Asset Code field to Account Asset', + 'description': """ + This module adds a new field "Asset Code" to the Asset form view, located below the Asset Name. + """, + 'author': 'Antigravity', + 'depends': ['account_asset'], + 'data': [ + 'views/account_asset_views.xml', + ], + 'installable': True, + 'application': False, + 'license': 'LGPL-3', +} diff --git a/__pycache__/__init__.cpython-312.pyc b/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..cac774f Binary files /dev/null and b/__pycache__/__init__.cpython-312.pyc differ diff --git a/models/__init__.py b/models/__init__.py new file mode 100644 index 0000000..02a692c --- /dev/null +++ b/models/__init__.py @@ -0,0 +1 @@ +from . import account_asset diff --git a/models/__pycache__/__init__.cpython-312.pyc b/models/__pycache__/__init__.cpython-312.pyc new file mode 100644 index 0000000..281d956 Binary files /dev/null and b/models/__pycache__/__init__.cpython-312.pyc differ diff --git a/models/__pycache__/account_asset.cpython-312.pyc b/models/__pycache__/account_asset.cpython-312.pyc new file mode 100644 index 0000000..2b08154 Binary files /dev/null and b/models/__pycache__/account_asset.cpython-312.pyc differ diff --git a/models/account_asset.py b/models/account_asset.py new file mode 100644 index 0000000..2760a90 --- /dev/null +++ b/models/account_asset.py @@ -0,0 +1,6 @@ +from odoo import models, fields + +class AccountAsset(models.Model): + _inherit = 'account.asset' + + asset_code = fields.Char(string='Asset Code') diff --git a/views/account_asset_views.xml b/views/account_asset_views.xml new file mode 100644 index 0000000..e635dae --- /dev/null +++ b/views/account_asset_views.xml @@ -0,0 +1,13 @@ + + + + account.asset.form.inherit.asset.code + account.asset + + + + + + + +