| Server IP : 65.108.144.40 / Your IP : 216.73.217.165 Web Server : Apache/2.4.52 (Ubuntu) System : Linux ubuntu-8gb-hel1-1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64 User : dev ( 1000) PHP Version : 8.2.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/erp/asset/__pycache__/ |
Upload File : |
o
hͦh� � @ s� d Z ddlmZ ddlmZ ddlmZ ddlm Z ddl
mZ ddlm
Z
ddlmZ G d d
� d
e�ZG dd� de�ZG d
d� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZG dd� de�ZdS )z�
Models for Asset Management System
This module defines Django models to manage assets, their categories, assigning, and requests
within an Asset Management System.
� )�ValidationError)�models)�gettext_lazy)�HorillaCompanyManager)�Company)�Employee)�HorillaModelc @ sV e Zd ZdZejddd�Zejdd�Ze� � Z
ejede
d�d�Zed�Z
d d
� ZdS )�
AssetCategoryz>
Represents a category for different types of assets.
� T)�
max_length�unique�r r ��blank�verbose_name�
company_idc C � | j � S �N)�asset_category_name��self� r �/var/www/erp/asset/models.py�__str__ � zAssetCategory.__str__N)�__name__�
__module__�__qualname__�__doc__r � CharFieldr � TextField�asset_category_description�Manager�objects�ManyToManyFieldr �_r r r r r r r r s r c @ sb e Zd ZdZejddddd�Zejdddd�Zej e
ded�d �Ze
� ZG d
d� d�Zdd
� ZdS )�AssetLotzB
Represents a lot associated with a collection of assets.
� FT)r �nullr r r
�r( r r r r c @ s e Zd ZdZed�Zed�ZdS )z
AssetLot.Metaz6
Meta class to add additional options
zAsset Batchz
Asset BatchesN)r r r r r% r �verbose_name_pluralr r r r �Meta+ s r+ c C r r )�
lot_numberr r r r r 3 r zAssetLot.__str__N)r r r r r r r, r �lot_descriptionr$ r r% r r r# r+ r r r r r r&