Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How to add custom fields to pos screen?

By
samba
on 5/14/15, 11:29 AM 1,786 views

i want to add custom field to pos screen, can any one tell me the way?. I have inherited many views in odoo, it seems some what different.

Thank you Yogesh,

On Fri, May 15, 2015 at 12:47 AM, Yogesh <yogeshkushwaha4-gmail-com@mail.odoo.com> wrote:

A new answer for How to add custom fields to pos screen? has been posted. Click here to access the post.

--
Yogesh
Sent by Odoo S.A. using Odoo about Forum Post How to add custom fields to pos screen?



--
--

Thanks and Regards,

Sambasiva rao,

Skype: samba.guduru2(skype)
samba
on 5/15/15, 12:22 AM
0
Yogesh
On 5/14/15, 3:17 PM

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-extend="PaymentScreenWidget">

<t t-jquery="div.pos-payment-container" t-operation="prepend">

<input> </input

  

</t>

</t>



for 2nd search for how to create custom widget this might be helpful


Edit:

Some Widgets in POS:

  • NumpadWidget

  • PaypadWidget

  • PaypadButtonWidget

  • OrderWidget

  • ActionBarWidget

  • ProductCategoriesWidget

  • PaymentScreenWidget


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

"point_of_sale/static/src/js/screens.js"



Hi Yogesh, Can you give me the widget name of POS screen?

samba
on 5/15/15, 7:04 AM

Hi Samba, yes I edited answer:)

Yogesh
on 5/15/15, 8:23 AM

Your Answer

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

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/14/15, 11:29 AM
Seen: 1786 times
Last updated: 5/15/15, 8:24 AM