当前位置:网站首页>设备管理-借还模块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','边栏推荐
- Embedded development: 6 necessary skills for firmware engineers
- 一种灵活注入 Istio Sidecar 的方案探索
- Observe the page of the website
- 【图像去噪】基于各向异性滤波实现图像去噪附matlab代码
- Leetcode 416. Split equal sum subset
- 基于分布式数据库本身的定时备份方法
- 3D object detection
- Cookie & session & kaptcha verification code
- vc hacon 联合编程 GenImage3Extern WriteImage
- 嵌入式开发:固件工程师的6项必备技能
猜你喜欢

Exploration of a flexible injection scheme for istio sidecar

How to download Vega in China
![[image denoising] image denoising based on regularization with matlab code](/img/d9/74f4d9cdb4bfe157ba781ec8f6a184.png)
[image denoising] image denoising based on regularization with matlab code

kali局域网ARP欺骗(arpspoof)并监听(mitmproxy)局域内其它主机上网记录

The Bean Validation API is on the classpath but no implementation could be found

A fruitful afternoon

Kali implements port forwarding through iptables

New product launch

mysql的增删改查,mysql常用命令

一种灵活注入 Istio Sidecar 的方案探索
随机推荐
[blockbuster release] ant dynamic card, enabling the app home page to realize agile update
一种灵活注入 Istio Sidecar 的方案探索
腾讯云TDP-virt-viewer win客户端的软件使用
liunx部署Seata(Nacos版)
Leetcode 1049. 最后一块石头的重量 II
Native servlet - upload & download of files
5G R17标准冻结,主要讲了些啥?
On how to make digital transformation after the loan of large policy banks- Yixinhuachen
【图像去噪】基于各向异性滤波实现图像去噪附matlab代码
[observation] Huawei's next generation data center "adds momentum" to Guangxi's low-carbon and high-quality development
How to download Vega in China
Mode of most elements (map, sort, random, Boyer Moore voting method)
Research Report on current market situation and investment prospect of China's tobacco RFID industry 2022-2027
leetcode:6097. Match [set record + query one by one with the same length] after replacing characters
Report on the development status of China's asset appraisal industry and suggestions for future strategic planning 2022-2027
YOLOX网络结构详解
Common troubleshooting tools and analysis artifacts are worth collecting
Kali implements port forwarding through iptables
Research Report on the overall scale, major manufacturers, major regions, products and application segments of lifeboats in the global market in 2022
编程工具下载地址