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

[14.0] l10n_it_reverse_charge in multi currency: use the supplier invoice date #4462

Open
wants to merge 2 commits into
base: 14.0
Choose a base branch
from

Conversation

eLBati
Copy link
Member

@eLBati eLBati commented Nov 26, 2024

SCENARIO DESIDERATO

ricevo una fattura extra in USD per un servizio con data 15 ottobre, la registro il 31 ottobre

per gli importi in EUR uso il cambio del 15 ottobre.

Il sistema genera un'autofattura passiva con data fattura 15 ottobre data registrazione 31 ottobre. per gli importi in EUR uso il cambio del 15 ottobre.

L'autofattura attiva avrà data 31 ottobre e tasso di cambio del 15 ottobre.

LorenzoC0 and others added 2 commits November 25, 2024 12:40
…r self-invoices, now considers original invoice date
  File "/opt/l10n-italy/l10n_it_reverse_charge/models/account_move.py", line 421, in generate_self_invoice
    force_conversion_date=self.rc_original_purchase_invoice_ids[0].invoice_date,
  File "/opt/odoo/odoo/models.py", line 5731, in __getitem__
    return self.browse((self._ids[key],))
IndexError: tuple index out of range

+ pre-commit
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.

4 participants