โดยปกติฟอร์มใบเสร็จรับเงินเบื้องต้น จะมีแต่เฉพาะชื่อบริษัทของลูกค้า เราสามารถทำการเพิ่ม ที่อยู่รายละเอียดต่างๆ เพิ่มเติมเข้าไปได้เหมือนกับ Quotation และ Invoice ด้วยขั้นตอนดังต่อไปนี้
เข้าไปที่ Settings ทำการ Activate Developer Mode
เข้าไปที่ Settings>Technical>Reporting>Reports คลิ๊กเลือก Payment Receipt
Click ที่ </> Qweb Views
เลือก report_payment_receipt_document เพื่อทำการเพิ่ม code รายละเอียดของบริษัท
เพิ่ม Code ในตำแหน่งที่ต้องการ
<span t-field="o.partner_id" t-options="{"widget": "contact", "fields": ["address", "name", "phone", "vat"], "no_marker": True, "phone_icons": True}"/>
Before:
After: