增加工单下发时打印编程文件pdf的功能

This commit is contained in:
胡尧
2025-04-17 13:15:48 +08:00
parent 9c713c2a37
commit c67944f689
7 changed files with 143 additions and 5 deletions

View File

@@ -8,6 +8,7 @@ class Printer(models.Model):
name = fields.Char(string='名称', required=True)
ip_address = fields.Char(string='IP 地址', required=True)
port = fields.Integer(string='端口', default=9100)
type = fields.Selection([('zpl', 'ZPL'), ('normal', '普通')], string='类型', default='zpl')
class TableStyle(models.Model):

View File

@@ -9,6 +9,7 @@
<field name="name"/>
<field name="ip_address"/>
<field name="port"/>
<field name="type"/>
<!-- 其他字段... -->
</tree>
</field>
@@ -24,6 +25,7 @@
<field name="name"/>
<field name="ip_address"/>
<field name="port"/>
<field name="type"/>
</group>
</sheet>
</form>