当前位置:网站首页>设备管理-借还模块1
设备管理-借还模块1
2022-06-12 19:22:00 【信息化未来】
设备管理,最近的一客户有的设备需要增加一借出,归还模块,带至公司外进行使用,借出前需要进行批准,用后要进行归还。每个设备要清楚知道当前状态。下面围绕此功能进行下代码分享。
设备借还界面:

model模型:
# -*- coding: utf-8 -*-
from odoo import models, fields, api, _
from odoo.exceptions import ValidationError
import datetime
class sbjiehuan(models.Model):
_name = 'sbgl.jiehuan'
_description = '设备借还'
_inherit = ['mail.thread', 'mail.activity.mixin']
sb_id = fields.Many2one('maintenance.equipment', tracking=True, string='设备', domain="[('status_id','in',('正常','预约中'))]", required=True) # , domain="[('zhuangtai','边栏推荐
- “即服务”,未来已来,始于现在 | IT消费新模式,FOD按需计费
- Tarfile decompress nested tar
- Shell 数组和函数
- Meituan won the first place in fewclue in the small sample learning list! Prompt learning+ self training practice
- How to download Vega in China
- China's asset management market demand and future competitive trends outlook report 2022-2028
- Implementation of VGA protocol based on FPGA
- What is a network proxy
- Leetcode 1049. 最后一块石头的重量 II
- review. JS ppt math formula cannot be displayed
猜你喜欢

Transactions in redis

WinCC7.5 SP1调整画面尺寸以适应显示分辨率的方法
![[5gc] Introduction to three SSC (session and service continuity) modes](/img/98/6e08986269c5dc1f5ce192cdef3e9f.png)
[5gc] Introduction to three SSC (session and service continuity) modes
![leetcode:5270. Minimum path cost in Grid [simple level DP]](/img/c5/37fd1878e92f95340926e0ea75f150.png)
leetcode:5270. Minimum path cost in Grid [simple level DP]

YOLOX网络结构详解

vc hacon 联合编程 GenImage3Extern WriteImage
![[blockbuster release] ant dynamic card, enabling the app home page to realize agile update](/img/a6/62caef27b917bbb4c5529de46bc7f9.jpg)
[blockbuster release] ant dynamic card, enabling the app home page to realize agile update

How to download proxystrike in China

运算器的基本结构

A journey of database full SQL analysis and audit system performance optimization
随机推荐
Cookie & Session & kaptcha驗證碼
[0008] unordered list
Implementation of VGA protocol based on FPGA
Rhca memoirs -- Introduction to cl280
ISCC2022
Redis中的事务
Meituan won the first place in fewclue in the small sample learning list! Prompt learning+ self training practice
美团获得小样本学习榜单FewCLUE第一!Prompt Learning+自训练实战
[image denoising] image denoising based on regularization with matlab code
Attack and defense world (WEB) -- supersqli
Istio 1.14 发布
Six stone cognition: the apparent and potential speed of the brain
Research Report on global and Chinese cosmetics industry market sales scale forecast and investment opportunities 2022-2028
编程工具下载地址
Kali implements port forwarding through iptables
mysql的增删改查,mysql常用命令
Wireshark basic commands
What is a network proxy
Redis (XXXII) - using redis as a distributed lock
In 2021, the global revenue of chlorinated polyvinyl chloride (CPVC) was about $1809.9 million, and it is expected to reach $3691.5 million in 2028