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

Hi Odoo developers, 

This is sample manifest file. 

{
​ 'assets': {
        'point_of_sale._assets_pos': [
            'pos_square_app/static/*',
        ],
    }, 
}
import { PaymentScreen } from "@point_of_sale/app/screens/payment_screen/payment_screen";

When loading the POS UI, showing syntax error. The import statement on top of file is still there, which is not transpiled, that is the reason. 

Any ideas for the issue? 

Thanks

아바타
취소
작성자 베스트 답변

Still do not know the reason why attach js to bundle does not work. I have to use another way. 

odoo.define('@pos_square_app/payment_screen', [],
function(require) {
const { PaymentScreen } = require('@point_of_sale/app/screens payment_screen/payment_screen');
  });



아바타
취소