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

Hi every one I want to hidden Export button , be visible for only group in odoo 13

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

Hi,

There are some free modules available in the lower versions, you can have a look at those code and apply necessary change and use it in the v13. See: Export Security

Also the same option has been added into Odoo14, you can check the corresponding code in the commit in v14 and apply it to v13 as custom module, see the commit: [IMP] base: allow restricting / removing exports right




Thanks

อวตาร
ละทิ้ง

you are just awsome brother,i was looking for it in v14,users were not able to see export button,

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

This free module works for me in Odoo 13:

https://apps.odoo.com/apps/modules/13.0/remove_export_option/

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

i try module export  and but it not work because export in odoo 12 was a lebel but in odoo 13 it is a button and be in xml file

odoo.define("web_disable_export_group", function(require) {
"use strict";

var core = require("web.core");
var Sidebar = require("web.Sidebar");
var session = require("web.session");
var _t = core._t;

Sidebar.include({
_addItems: function (sectionCode, items) {
var _items = items;
if (!session.is_superuser && sectionCode === 'other' && items.length && !session.group_export_data) {
_items = _.reject(_items, {label:_t("Export")
;
});
}
this._super(sectionCode, _items);
},
});
});
อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hello All,

This module can helps you: 

https://apps.odoo.com/apps/modules/13.0/disable_export

See how it works: https://youtu.be/ILc_9F_Ksas

Thanks

อวตาร
ละทิ้ง