Connect a printer¶
打印机安装可以通过几个简单的步骤完成。打印机可以用于打印收据、标签、订单,甚至是来自不同的Odoo应用程序的报告。此外,可以将打印机操作分配为制造过程中的 触发器操作 ,或添加到质量控制点或质量检查中。
Connection¶
The IoT box supports printers connected through USB, network connection, or Bluetooth. Supported printers are detected automatically, and appear in the Devices list of the IoT app.
注解
打印机可能需要最多两分钟才会出现在 IoT app 设备列表中。
链接打印机¶
将打印机链接到工作订单¶
工作订单 可以通过质量控制点与打印机关联,用于打印制造产品的标签。
在 质量应用 中,可以在质量控制点上设置设备。要做到这一点,请转到
,然后打开要链接打印机的所需控制点。重要
一个 制造操作 和 工单操作 需要附加到质量控制点,然后 Type 字段才允许选择 Print Label 选项。
从这里开始,通过选择 Type 字段,然后从选项的下拉菜单中选择 Print Label 来编辑控制点。这样做会显示一个名为 Device 的字段,可以在其中选择附加的 设备。如果需要,可以 Save 更改。
打印机现在可以与所选的质量控制点一起使用。当在制造过程中达到质量控制点时,数据库会提供打印特定产品标签的选项。
小技巧
质量控制点也可以通过导航到 Quality Control Points 选项卡,可以在该设备上添加。
,然后选择设备来访问。有一个注解
在质量检查详细表单上,检查的 类型 也可以指定为 打印标签。要创建新的质量检查,请导航到 。
在制造应用程序中将打印机链接到工作中心¶
To link a printer to an action, it first needs to be configured on a work center. To do that, navigate to IoT Triggers tab, under the Device column, by selecting Add a Line.
. From here, select the desired work center in which the printer will be used. Next, add the device in theThen, the printer can be linked to either of the following options in the Actions drop-down menu: Print Labels, Print Operation, or Print Delivery Slip. A key can also be added to trigger the action.
重要
表单上列出的第一个触发器将首先被选择。因此,顺序很重要,这些触发器可以按任意顺序拖动。
注解
在 工作订单 屏幕上,一个状态图标指示数据库是否正确连接到打印机。
另请参阅
链接打印机到报告¶
也可以将某种类型的报表链接到特定的打印机。在 IoT 应用 中,转到 设备 菜单,并选择需要配置的打印机。
从这里,点击 Edit,转到 Printer Reports 选项卡,并选择 Add a line。在弹出的窗口中,勾选 所有应与此打印机关联的 Reports 类型。
Now, each time Print is selected in the control panel, instead of downloading a PDF, a pop-up appears which displays all the printer(s) linked to the report. Then Odoo sends the report to the selected printer(s), and automatically prints it.
另请参阅
小技巧
报告也可以在 技术菜单 中进行配置,而在 调试模式 下。要做到这一点,导航到 。 从这里,可以在此列表中找到单个报告,其中 可以设置 IoT 设备 在报告上。