Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
3 Trả lời
14880 Lượt xem

Hi,,

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

Thanks.

Ảnh đại diện
Huỷ bỏ

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/

Câu trả lời hay nhất

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....

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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);
        }

    });


});
Ảnh đại diện
Huỷ bỏ

Any Idea for V8 ?

how to point this to as specific user?

Câu trả lời hay nhất

dear

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

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 5 25
1007
2
thg 10 24
2539
1
thg 6 23
1917
0
thg 10 18
2422
2
thg 10 16
3231