Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
246 Weergaven

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

Avatar
Annuleer
Auteur Beste antwoord

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



Avatar
Annuleer