Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1724 Lượt xem

After choose 'product' in 'productScreen' and click 'customerButton' to view 'customerScreen' that view customer list and allow add new then 'setCustomer'. I incurred the error when click 'customerButton'. 

here's the error:

Uncaught Error: QWeb2 - template['ClientLine']: Runtime Error: TypeError: Cannot read properties of undefined (reading 'pos'). 

I find out location that throw the error is in 'pos_orders_list.xml'( t-if="env.pos.config.show_order">) :

t-name ="ClientLine" t-inherit ="point_of_sale.ClientLine" t-inherit-mode ="extension" owl ="1" > 
expr ="//tr" position ="inside" >
t-if ="env.pos.config.show_order" >
class ='order-partner' t-att-data-id ='props.partner.id'
t-on-click.stop ="trigger(' click-show-orders',props.partner)" >
class ="fa fa-university"> View Orders



Additionally, the info console window shows messages: 

Missing dependencies:

  1. Array(8)
    1. 0 : "point_of_sale.PosComponent"
    2. 1 : "point_of_sale.AbstractAwaitablePopup"
    3. 2 : "point_of_sale.Registries"
    4. 3 : "web.custom_hooks"
    5. 4 : "point_of_sale.ProductScreen"
    6. 5 : "point_of_sale.custom_hooks"
    7. 6 : "point_of_sale.ClientListScreen"
    8. 7 : "point_of_sale.OrderReceipt"

Not loaded modules:

  1. Array(6)
    1. 0 : "pos_orders_list.PosOrdersDetail"
    2. 1 : "pos_orders_list.SeePOSOrdersButton"
    3. 2 : "pos_orders_list.POSOrdersScreen"
    4. 3 : "point_of_sale.POSOrders"
    5. 4 : "pos_orders_list.ClientListScreen"
    6. 5 : "pos_orders_list.ReceiptScreen"
    7. length : 6

I don't know add image in this post then can't explain more. 


Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 22
2023
1
thg 2 22
8787
1
thg 6 19
4225
2
thg 9 25
1341
1
thg 8 25
1144