Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
4 ตอบกลับ
2760 มุมมอง

Hi odooers,,

How i can make Product Name and Price  INVISIBLE in POS odoo 11 ?


Thanx

อวตาร
ละทิ้ง
ผู้เขียน

deeply thanks Vishu Vanneri i will try your code and give you but where exactly Path i put or replace this code -_-?

ผู้เขียน

from py i achieved this by controlling available_in_pos Boolean field automatically changing from true to false when product stock became zer0 and vice versa ..

I have updated the answer.

ผู้เขียน

Deeply Vishnu Vanneri it's working like a magic really, and solved my issue THANK for u and all.

No problem.Close the question then.

ผู้เขียน

More karma is required -__-

คำตอบที่ดีที่สุด

You can achieve this by inheriting the view

Step to Follow 

1, Create a new module , eg: pos_hide_price 

2,Create a xml file in your module like --> pos_hide_price-->static-->src -->xml--> pos.xml

Example

3.Add below code.

Try this  CODE

4, add below line your __manifest__.py 

'qweb': [

           'static/src/xml/pos.xml', 

],

 example                                                                                                                                                                                                                                                                 

อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

thanks Niyas Raphy  for your great respond 

that means i can't let product without name in pos screen because i want to let user find product just when he scanner barcode..  

 

อวตาร
ละทิ้ง

So you need to restrict such a way that pos user can only add the product by scanning barcode right ?

ผู้เขียน

Right any user get product name and price after scanning product barcode so that i want to make p name and p price invisible before pos user made and pos order.

คำตอบที่ดีที่สุด

Hi,

Hiding the product name will be hiding the Product itself. For that from the backend, you can untick the Boolean field available in POS from product form view. Once this is unticked the product wont be available in the POS.

Thanks

อวตาร
ละทิ้ง