Skip to content

Commit

Permalink
[FIX] sale_order_type: Fix item search in account move view
Browse files Browse the repository at this point in the history
- In case there is a modification of the view, with studio or a custom development by adding a new tab before the main invoice lines tab, an error occurs with this search because it doesn't find the item in the xpath expression. With this modification, we ensure that the item to search for is in the main invoice lines tab.
  • Loading branch information
stevTresCloud committed Feb 5, 2025
1 parent 5b6ce65 commit 036d680
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sale_order_type/views/account_move_views.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@
readonly="state != 'draft'"
/>
</label>
<xpath expr="//notebook//list//field[@name='sequence']" position="before">
<xpath
expr="//notebook//page[@id='invoice_tab']//list//field[@name='sequence']"
position="before"
>
<field name="account_id" column_invisible="True" />
</xpath>
</field>
Expand Down

0 comments on commit 036d680

Please sign in to comment.