콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
8 답글
4924 화면

Hello,

In previous Odoo version, the price of the items was displayed in POS which doesn't seems the case anymore in Odoo 18? I didn't find any options to get it back. 

(I know we can view the price with the (i) but you can't if you have only the user level access to the POS and nothing else)


Odoo 18:


In odoo 17:


Thank you!


아바타
취소
베스트 답변

Hi Eric Friedlingstein
Use Below code for Price Tag In Point of Sale (POS)

Code 1

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-inherit="point_of_sale.ProductCard"
t-inherit-mode="extension">
<xpath expr="//div[hasclass('product-content')]" position="after">
<div class="product-content d-flex flex-row px-2 justify-content-between rounded-bottom rounded-3 flex-shrink-1">
<t t-esc="env.utils.formatCurrency(props.product.lst_price)"/>
</div>
</xpath>
</t>
</templates>

Code 2

'assets': {

'point_of_sale._assets_pos': [

'your_module_name/static/src/**/*',

],

},

Thanks & Regards,

Saiyed Mahedi Abbas/Odoo Developer

Email:  saiyedmehdiabbas8@gmail.com         


아바타
취소
베스트 답변

Hello, Eric Friedlingstein,


To Display Price tag in pos screen under product name, follow the steps outlined below:


1. Inherit the point_of_sale.ProductCard and Add product price tag

File: static/src/app/generic_components/product_card/product_card.xml

Objective: Display the product price under the product name.


You need to add this file path to the manifest under 'point_of_sale._assets_pos'.


//Code 1 in Comment// 


2. Update the Manifest File

Ensure that the point_of_sale dependency is added to the __manifest__.py file. Additionally, include the path of the new JavaScript file in "point_of_sale.assets_prod".



//Code 2 in Comment// 


3. Output

The output will display the product price tag under the product name on the POS screen. Below is an example of how it will appear:



Hope this helps! If you need further assistance with customization, feel free to contact us.



Thanks & Regards,

Email:  odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari

아바타
취소

//Code 1//

<?xml version="1.0" encoding="UTF-8"?>
<templates id="template" xml:space="preserve">
<t t-name="pos_event.ProductCard" t-inherit="point_of_sale.ProductCard"
t-inherit-mode="extension">
<xpath expr="//div[hasclass('product-content')]" position="after">
<!-- Add product price under the product name -->
<div class="product-content d-flex flex-row px-2 justify-content-between rounded-bottom rounded-3 flex-shrink-1">
<t t-esc="props.price"/>
</div>
</xpath>
</t>
</templates>

//Code 2//

'assets': {
'point_of_sale._assets_pos': [
'your_module_name/static/src/**/*',
],
},

Hi Jainesh,
Could you confirm if it works with the latest source version released this week? At least in my tests, it doesn't work; it's likely they've made changes in the latest versions.
Thank you, best regards.

베스트 답변

In Odoo 18, the default display of item prices in the POS interface has been adjusted.



  Ensure you have the latest updates installed, as features can change with updates.

  Check the POS settings under Configuration to see if there are any new options related to price display.

  Consider customizing the POS interface through development if the default options do not meet your needs.


If you'd like to explore this further for your use case, you're welcome to connect with us at Pragmatic Techsoft.

아바타
취소
베스트 답변

The issue arises because the redirect URI in your Odoo configuration does not match the one set in your Azure application.



  Ensure that the redirect URI in your Azure app matches the one in your Odoo settings.

  Update the redirect URI in Azure to match your Odoo instance URL, not 'http://localhost'.

  Verify that your Odoo's 'web.base.url' is correctly set to your public domain and not 'localhost'.


If you'd like to explore this further for your use case, you're welcome to connect with us at Pragmatic Techsoft.

아바타
취소
베스트 답변

Hi,

Please refer to the solved forum:

1. https://www.odoo.com/id_ID/forum/help-1/price-tags-in-odoo-18-pos-271870


Hope it helps.

아바타
취소
베스트 답변

How can i add the price in combo product's pop up also

아바타
취소
베스트 답변

Have you gotten any solution yet in odoo18 saas?

아바타
취소
베스트 답변

Here is some code that also works in Odoo cloud: https://github.com/Valuya/odoo-pos


아바타
취소
관련 게시물 답글 화면 활동
4
8월 25
1945
1
3월 25
1501
1
8월 25
329
1
11월 24
1881
2
8월 25
427