打印配置初步优化并测试成功,自测流程成功
This commit is contained in:
12
sf_base/commons/Printer.py
Normal file
12
sf_base/commons/Printer.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from odoo import models, fields
|
||||
|
||||
|
||||
class PrinterConfiguration(models.Model):
|
||||
_name = 'printer.configuration'
|
||||
_description = 'Printer Configuration'
|
||||
|
||||
name = fields.Char(string='名称', required=True)
|
||||
ip_address = fields.Char(string='IP 地址', required=True)
|
||||
port = fields.Integer(string='端口', default=9100)
|
||||
model = fields.Many2one('ir.model', string='模型名称')
|
||||
# 其他相关字段...
|
||||
Reference in New Issue
Block a user