Skip to content

Conversation

@sabrinaRMartin
Copy link
Contributor

@sabrinaRMartin sabrinaRMartin commented Dec 16, 2025

Migration from version 15.0 to version 18.0

This module depends on PR:

@moduon @Shide MT-13043

https://www.loom.com/share/43b2355ab5d5474ea810a422feb513a3

@sabrinaRMartin sabrinaRMartin force-pushed the 18.0-mig-account_warn_option branch from 4258f4e to 7394b8c Compare December 18, 2025 10:30
@luisDIXMIT
Copy link
Contributor

What was the reason for the latest commit?

Copy link

@Andrii9090 Andrii9090 left a comment

Choose a reason for hiding this comment

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

Code&functional review 👍 Thank you @sabrinaRMartin!

Image Image

@Shide
Copy link
Contributor

Shide commented Jan 7, 2026

What was the reason for the latest commit?

Add the temporal referece to this PR OCA/server-ux#1204 to be able to test this module

Copy link
Contributor

@Shide Shide left a comment

Choose a reason for hiding this comment

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

Code and functional review

<xpath expr="//field[@name='invoice_warn_msg']" position="before">
<field
name="invoice_warn_option"
domain="[('allowed_warning_type', '=', invoice_warn), ('allowed_warning_usage', 'in', ('all', 'partner_invoice_warn'))]"
Copy link
Contributor

@Shide Shide Jan 7, 2026

Choose a reason for hiding this comment

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

I think base_warn_options submodules (including this one), could improve this domain to allow allowed_warning_type == False to be shown on warnings and block.

This is an improvement, and if it's done, should be done in a separate commit with help strings improvements.

Something like this:

Suggested change
domain="[('allowed_warning_type', '=', invoice_warn), ('allowed_warning_usage', 'in', ('all', 'partner_invoice_warn'))]"
domain="['|', ('allowed_warning_type', '=', invoice_warn), ('allowed_warning_type', '=', False), ('allowed_warning_usage', 'in', ('all', 'partner_invoice_warn'))]"

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants