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

[18.0][MIG] account_payment_line: Migration to 18.0 #804

Open
wants to merge 14 commits into
base: 18.0
Choose a base branch
from

Conversation

xaviedoanhduy
Copy link

changes in version 18.0:

on this occasion

  • default attributes of company_id and currency_id fields look quite redundant as they are compute fields so take this opportunity to improve them based on current company.
  • add account_payment replace account dependency to module to avoid error field amount_available_for_refund not defined, ref: https://github.com/odoo/odoo/blob/3217cfa993efdb9da994a6786b9a72a854badcff/addons/account_payment/views/account_payment_views.xml#L10
  • in version 14.0, the _prepare_move_line_default_vals function returns 2 or more values ​​(ref), but from 16.0 onwards, there are only 2 elements in the list (ref). So I took this opportunity to adapt it to version 18.0 by passing arguments to the original function and super will do the rest.
  • remove values that have both debit and credit values ​​equal to 0 from the values ​​returned by _prepare_move_line_default_vals

@xaviedoanhduy xaviedoanhduy force-pushed the 18.0-mig-account_payment_line branch from 97e256f to 85bb240 Compare February 27, 2025 09:00
@wlin-kencove
Copy link

image

Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants