Skip to content

Conversation

@lmarion-source
Copy link

Business case:

  • Need to change the currency on a loan if different from the one on the journal/company
  • If the journal on the loan is - for instance - in EUR, the loan also in EUR, but the company in USD, when we create the moves the debit/credit on lines stays in EUR.
    When we create move lines from a journal entry, if the journal is in EUR but the company in USD, the credit/debit is in USD and amount_currency is filled in EUR.
    For the loans, we wanted the same behavior : when creating the move lines from the loan line, the credit/debit should be in the currency of the company while the amount_currency is filled with the value in the journal currency

@OCA-git-bot
Copy link
Contributor

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

@lmarion-source lmarion-source force-pushed the 16.0-account_loan_propagate_currency branch from db98d77 to 6b54ed3 Compare September 4, 2025 13:44
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.

Technically looks OK. Please use proper commit name and leave just one commit please. After that we can proceed with merge.

https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#commit-message

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.

Technically looks OK. Please use proper commit name and leave just one commit please. After that we can proceed with merge.

https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#commit-message

@lmarion-source lmarion-source force-pushed the 16.0-account_loan_propagate_currency branch 2 times, most recently from 93a3374 to 22c8c44 Compare September 10, 2025 12:39
@lmarion-source
Copy link
Author

Technically looks OK. Please use proper commit name and leave just one commit please. After that we can proceed with merge.

https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#commit-message

I changed the commit message, however, I let 2 commits because it's 2 different things : currency not readonly, then convert credit/debit for different currencies.

@etobella
Copy link
Member

The commit message must include the module name.

@lmarion-source lmarion-source force-pushed the 16.0-account_loan_propagate_currency branch 3 times, most recently from 4d557ad to eebccb4 Compare September 11, 2025 10:10
    1. We allow to change the currency on the loan if the user needs it

    2. If the currency on the loan (or on the journal) is different from the one on the company, we do the conversion for credit/debit + add amount in currency on the move line
@lmarion-source lmarion-source force-pushed the 16.0-account_loan_propagate_currency branch from eebccb4 to 611319a Compare September 11, 2025 13:25
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.

4 participants