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

Hi,,

How can we control the appearance of 'Disc' & 'Price' buttons in POS window for a specific user?

Thanks.

아바타
취소

Hi,
This app allows you to hide disable or enable pos features to a specific employee you hide discount and price buttons ,

Here is the link to the app:
https://apps.odoo.com/apps/modules/16.0/pos_access_right_hr/

베스트 답변

Hi Anas,

Give ids to respective button in pos.xml so your discount button should look like <button id="discount" class="mode-button" data-mode='discount'>Disc</button> after that in widget.js in NumpadWidget you can write a simple code to get the current login user and just show and hide the button as per user....

아바타
취소
베스트 답변

This solution is showing you how to disable 'Disc' button in Odoo 11

odoo.define('disable_discount_btn', function(require){
    'use strict';

    var screens = require('point_of_sale.screens');

    screens.NumpadWidget.include({

        renderElement: function(){
            this._super();
            this.$el.find('.mode-button[data-mode="discount"]').prop('disabled', true);
        }

    });


});
아바타
취소

Any Idea for V8 ?

how to point this to as specific user?

베스트 답변

dear

use below app is good to  lock buttons (discount, price )

https://apps.odoo.com/apps/modules/11.0/pos_lock_price_discount/

아바타
취소
관련 게시물 답글 화면 활동
1
5월 25
1224
2
10월 24
3064
1
6월 23
2121
0
10월 18
2655
2
10월 16
3393