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

With Odoo v13 and the latest version of the Barcode module I am trying to extend and edit the Inventory Adjustments line item widget. After adding a product, that line item has a pencil button on the right that allows you to edit it. I'm extending the template because I want to remove that button. I can successfully inherit from the  stock_barcode_lines_template but I am unable to correctly modify the template, most likely cause of my XPATH.


This is my current attempt at trying to edit the template: 


    
    
                    
            

Test

        
            
    

อวตาร
ละทิ้ง
ผู้เขียน

Couldn't update the post, sorry for the faulty code snippet.
<templates>
<t t-inherit="stock_barcode.stock_barcode_lines_template" t-inherit-mode="extension">
<xpath expr="//a" position="after">
<p>Test</p>
</xpath>
</t>
</templates>

Here is also a link to the image of the barcode widget im trying to modify https://ibb.co/n06MtL7

Related Posts ตอบกลับ มุมมอง กิจกรรม
ODOO COMMUNITY V13 - BARCODE แก้ไขแล้ว
1
ส.ค. 24
14643
4
มิ.ย. 23
3980
0
ส.ค. 21
2826
1
มิ.ย. 19
9059
XPath Check if element exist แก้ไขแล้ว
1
ส.ค. 16
10515