跳至内容
菜单
此问题已终结

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

相关帖文 回复 查看 活动
1
8月 24
14544
4
6月 23
3888
0
8月 21
2765
1
6月 19
8959
1
8月 16
10424