Skip to content

Conversation

@mihien
Copy link
Member

@mihien mihien commented Dec 22, 2025

@mihien mihien changed the title [16.0][MIG] account_invoice_provider_reference: Migartion to 16.0 [16.0][MIG] account_invoice_provider_reference: Migration to 16.0 Dec 23, 2025
Copy link
Member

@polchampion polchampion left a comment

Choose a reason for hiding this comment

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

LGTM

<field name="ref" position="after">
<field
name="provider_reference"
invisible="context.get('default_move_type') not in ('in_invoice', 'in_refund','in_receipt')"
Copy link
Member

Choose a reason for hiding this comment

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

i see that this condition is used in the account.move tree view, but does it work on the form view?

for the form view, something like this is needed (to actually use the type of the account.move):

<field name="provider_reference" attrs="{'invisible': [('move_type', 'not in', ('in_invoice', 'in_refund', 'in_receipt'))]}" />

<field name="payment_reference" position="after">
<field
name="provider_reference"
invisible="context.get('default_move_type') not in ('in_invoice', 'in_refund','in_receipt')"
Copy link
Member

Choose a reason for hiding this comment

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

a space is missing:

Suggested change
invisible="context.get('default_move_type') not in ('in_invoice', 'in_refund','in_receipt')"
invisible="context.get('default_move_type') not in ('in_invoice', 'in_refund', 'in_receipt')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

9 participants