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

[WIP][16.0][IMP] account_reconcile_oca: Create exchange diff move when concile c… #631

Conversation

aritzolea
Copy link
Contributor

…urrencies don't match

@aritzolea aritzolea marked this pull request as draft February 9, 2024 10:43
@OCA-git-bot
Copy link
Contributor

Hi @etobella,
some modules you are maintaining are being modified, check this out!

def create(self, vals_list):
if self.env.context.get("no_foreign_currency", False):
for vals in vals_list:
vals["debit_amount_currency"] = 0
Copy link
Member

Choose a reason for hiding this comment

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

Why not credit? It seems something weird to do it with this context. I would recommend to give some more context to your issue, how it was raised and so on...

@etobella
Copy link
Member

etobella commented Feb 9, 2024

After reviewing Odoo Code for reconcile I do not agree in this approach. this fields are computed automatically on reconcile function....

Can you explain the reason of this PR?

@SoniaViciana
Copy link
Contributor

SoniaViciana commented Feb 9, 2024

I haven't tried the PR yet, but want to solve this:

image

image

Copy link
Member

@etobella etobella left a comment

Choose a reason for hiding this comment

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

But removing the logic of foreign currency should not be an option.

There is probably a bug in the code, but applying this patch is not the solution

@aritzolea
Copy link
Contributor Author

Closing PR after checking the bug is coming indeed from Core Odoo 16. We are trying to get a solution but applied to core directly.

@aritzolea aritzolea closed this Feb 15, 2024
@etobella
Copy link
Member

Thanks @aritzolea for checking

@aritzolea aritzolea deleted the 16.0-imp-account_reconcile_oca-exchange_move_different_currencies branch March 4, 2024 08:31
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.

None yet

4 participants