Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[16.0] reference_type usability improvements #1332

Open
wants to merge 3 commits into
base: 16.0
Choose a base branch
from

Conversation

sbidoul
Copy link
Member

@sbidoul sbidoul commented Aug 14, 2024

This PR makes the Reference Type

  • modifiable, included on posted invoices, because the standard payment reference field is modifiable on posted invoices too
  • visible on all bill types, because we want to be able to use structured communications on vendor bills (same visibility as the standard payment_reference field)

… invoice

The Odoo payment_reference field is modifiable, so the reference type
should be modifiable too.
@sbidoul sbidoul force-pushed the 16.0-reference_type-visibility-sbi branch from 914ebff to d04857e Compare August 14, 2024 10:32
@sbidoul sbidoul added this to the 16.0 milestone Aug 14, 2024
…r bills

So we can use structured communications on out payments too.
@sbidoul sbidoul force-pushed the 16.0-reference_type-visibility-sbi branch from d04857e to 31e0c3e Compare August 14, 2024 10:34
…ield

Si it is more obvious that it relates to the payment_reference field
@sbejaoui
Copy link
Contributor

for the vendor bill case, the communication is provided by the supplier (structured or not), and the user only needs to fill in the given reference in the payment_reference field. There's no need for them to specify its type.

@@ -23,9 +23,9 @@ class AccountMove(models.Model):
# payment mode or company level
reference_type = fields.Selection(
selection=[("none", "Free Reference"), ("structured", "Structured Reference")],
readonly=True,
Copy link
Contributor

@sbejaoui sbejaoui Aug 14, 2024

Choose a reason for hiding this comment

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

Consider adding reference_type to the _compute_payment_reference dependencies. We didn't need it before because the field was readonly after the invoice was posted. Now, since it can change for posted invoices, we need to trigger the payment reference recompute.

@sbidoul
Copy link
Member Author

sbidoul commented Aug 14, 2024

for the vendor bill case, the communication is provided by the supplier (structured or not), and the user only needs to fill in the given reference in the payment_reference field. There's no need for them to specify its type.

Hmm, but in Belgium (at least, but in the SEPA credit transfer format too), there is a concept of structured communication for outbound payments. So don't we need a way to specify that the communication is in a structured format that needs to be validated? This relates to OCA/l10n-belgium#204

@alexis-via
Copy link
Contributor

@sbidoul I would love to discuss more about the business needs for structured communication for supplier invoices and customer invoices during the next OCA code sprint in Liège. I don't have a clear understanding of the details because it is not used in France. I'm sure we can both improve the usability and improve/simplify/cleanup the code!

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.

3 participants