Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
236 Widoki

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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



Awatar
Odrzuć