如何在pos收据odoo中打印订单参考名称

问题描述

我想在收据中添加订单参考名称。检查我的图片

enter image description here

解决方法

有多种方法,即从前端进行编辑或扩展模板。

选项1:从前端

  1. 激活开发人员模式。
  2. 然后是技术
  3. 然后报告。
  4. 找到您的需求报告并进行编辑。

选项2:扩展模板

<template id="report_invoice_document_inherit321" inherit_id="external_id_of_template">
   <xpath expr="YOUR_XPATH_WHERE_YOU_WANT_YOUR_OUTPUT" position="after">
                
   </xpath>
</template>