-
-
Notifications
You must be signed in to change notification settings - Fork 417
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
xaviedoanhduy
wants to merge
14
commits into
OCA:18.0
Choose a base branch
from
xaviedoanhduy:18.0-mig-account_payment_line
base: 18.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
[18.0][MIG] account_payment_line: Migration to 18.0 #804
xaviedoanhduy
wants to merge
14
commits into
OCA:18.0
from
xaviedoanhduy:18.0-mig-account_payment_line
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…t_counterpart_ids exists. Otherwise the method can launch an error when the module has not yet been installed
Currently translated at 100.0% (54 of 54 strings) Translation: account-payment-16.0/account-payment-16.0-account_payment_line Translate-URL: https://translation.odoo-community.org/projects/account-payment-16-0/account-payment-16-0-account_payment_line/it/
This was referenced Feb 27, 2025
797bdc3
to
97e256f
Compare
97e256f
to
85bb240
Compare
wlin-kencove
approved these changes
Feb 27, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
changes in version 18.0:
destination_journal_id
andis_internal_transfer
were removed from this commit: odoo/odoo@01b87f1nb_days
and removed thebalance
field from payment terms, replacing it with percentage in commit: odoo/odoo@5f37c0434refund_method
field om modelaccount.move.reversal
in commit: odoo/odoo@3a27a4591aml_amount_residual
in the constrant to avoid warning log in: https://github.com/odoo/odoo/blob/3217cfa993efdb9da994a6786b9a72a854badcff/odoo/models.py#L919company_id
tocompany_ids
) in commit: odoo/odoo@0238971astates
have been added on the payment. "Posted" is renamed in "ToProcess" for example, and 3 completely new states are added, see: odoo/odoo@2609fc2e38
on this occasion
default
attributes ofcompany_id
andcurrency_id
fields look quite redundant as they are compute fields so take this opportunity to improve them based on currentcompany
.account_payment
replaceaccount
dependency to module to avoid error fieldamount_available_for_refund
not defined, ref: https://github.com/odoo/odoo/blob/3217cfa993efdb9da994a6786b9a72a854badcff/addons/account_payment/views/account_payment_views.xml#L1014.0
, the_prepare_move_line_default_vals
function returns 2 or more values (ref), but from16.0
onwards, there are only 2 elements in the list (ref). So I took this opportunity to adapt it to version18.0
by passing arguments to the original function and super will do the rest.debit
andcredit
values equal to0
from the values returned by_prepare_move_line_default_vals