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

When we import a statement in Accounting


With developer mode we can see this field:



And without developer mode we cant see this field


I found this field into addons/base_import/static/src/base_import.xml but I didnt see modifier that hides the field normally.


How I can use this field without developer mode? Help please

아바타
취소
작성자

Update:

Checkbox appearance is affected by javascript described in addons /base_import/static/src/js/import_action.js

$fields.each(function (k,v) {

var filtered_data = self.generate_fields_completion(result, k);

var $thing = $();

var bind = function (d) {};

if (config.isDebug()) {

$thing = $(QWeb.render('ImportView.create_record_option')).insertAfter(v).hide();

bind = function (data) {

switch (data.type) {

case 'many2one': case 'many2many':

$thing.find('input').attr('field', data.id);

$thing.show();

break;

default:

$thing.find('input').attr('field', '').prop('checked', false);

$thing.hide();

}

}

}

I am trying to modify this file, but so far I have been able to influence the appearance of the checkbox in developer mode. Unfortunately, I'm not a javascript professional. I will be looking for a way to display a checkbox without developer mode

베스트 답변

Hello Nikita,

remove "if (config.isDebug())"  this if condition and try.. hope it will be give you desired output

Thanks & Regards

Ankit Vaghela

아바타
취소
작성자

Hello Ankit,

I tried to do like this "if (true)" but it's not working. And when I tried remove this - it's working! Im surprised!

Thank you so much!

관련 게시물 답글 화면 활동
3
4월 24
3882
2
9월 22
4336
1
7월 21
8297
1
4월 24
7544
2
1월 25
2833