打印配置优化

This commit is contained in:
mgw
2024-06-17 11:23:33 +08:00
parent 38e99a0f26
commit 19dd425422
4 changed files with 55 additions and 9 deletions

View File

@@ -11,10 +11,11 @@ class Printer(models.Model):
class TableStyle(models.Model):
_name = 'table.style'
_name = 'label.style'
_description = '标签样式'
name = fields.Char(string='名称', required=True)
zpl_code = fields.Text(string='zpl指令')
# todo
@@ -25,4 +26,5 @@ class PrinterConfiguration(models.Model):
name = fields.Char(string='名称', required=True)
printer_id = fields.Many2one('printer', string='打印机')
model = fields.Many2one('ir.model', string='模型名称')
label_id = fields.Many2one('label.style', '标签')
# # 其他相关字段...