Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
>
Comment on lines +14 to +17
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It can be more specific and simplified to avoid ambiguity, as follows:

Suggested change
<xpath
expr="//notebook//page[@id='invoice_tab']//list//field[@name='sequence']"
position="before"
>
<xpath
expr="//field[@name='invoice_line_ids']//list//field[@name='sequence']"
position="before"
>

I think this field might be unnecessary according to this PR: odoo/odoo#137031. The fields used in other fields/attributes are automatically added as invisible.

@pedrobaeza @StefanRijnhart What do you think?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, that seems so, so you can remove it directly.

<field name="account_id" column_invisible="True" />
</xpath>
</field>
Expand Down
Loading