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

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



อวตาร
ละทิ้ง