this is kind of broad question , depends on the type of field , Although there might be two possibilities.
1. add a custom field before or after some other field in existing widget.
2. create your own widget having a html attribute element and you can replace that with the data you want to show (in case you want) if you want to receive data you can just add an <input> </input> field of html
for 1st approach you inherit the qweb template of that widget in which you want to place your field there you can place your html element, for how to follow QWEB
something like :
<t t-jquery="div.pos-payment-container" t-operation="prepend">
for 2nd search for how to create custom widget this might be helpful
Some Widgets in POS:
you can see all widgets defined in POS in "point_of_sale/static/src/js/widgets.js"
to check their position in on screen "point_of_sale/static/src/xml/pos.xml"
for rendering and functionality of widgets check in
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 5/14/15, 11:29 AM|
|Seen: 1786 times|
|Last updated: 5/15/15, 8:24 AM|