Repository
OCA/account-invoicing · module folder · Try on Runboat
Module version
1.0.0
Category
Accounting & Finance
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/account-invoicing
Last tracking update
2026-08-07 08:42:47
Authors
Odoo Community Association (OCA), Ecosoft
Maintainers
Saran440
Committers
Weblate, ThiagoMForgeFlow, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
purchase_manual_currency
Description
This module allows users to update the currency manually for invoices
that are still in the draft stage. It offers flexibility to companies
when calculating currency rates for invoicing.

For example, if a company makes a deal with a vendor but the actual
purchase happens on a different day, this module lets them choose
whether to use the currency rate from the accounting date or a special
rate agreed upon during the deal. This ensures accurate currency rate
calculations for invoices, even when the purchase date and deal date
differ.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
view_account_payment_register_form account.payment.register.form account.payment.register form Inherits account.view_account_payment_register_form
view_move_form account.move.form account.move form Inherits account.view_move_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (6)
  • currency_diff Boolean
    compute='_compute_currency_diff' store=True
  • is_manual Boolean
    compute='_compute_currency'
  • manual_currency Boolean
  • manual_currency_rate Float
    digits='Manual Currency' help='Set new currency rate to apply on the invoice\n.This rate will be taken in order to convert amounts between the currency on the purchase order and last currency' tracking=True
  • total_company_currency Monetary
    compute='_compute_total_company_currency' currency_field='company_currency_id'
  • type_currency Selection
    default=<expr> selection=<expr>
Public methods (2)
  • action_refresh_currency(self)
  • get_view(self, view_id=None, view_type='form', **options)
    @api.model
    Change string name to company currency

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (4)
  • currency_diff Boolean
    compute='_compute_currency_diff' store=True
  • manual_currency Boolean
  • manual_currency_rate Float
    digits='Manual Currency' help='Set new currency rate to apply on the invoice\n.This rate will be taken in order to convert amounts between the currency on the purchase order and last currency'
  • type_currency Selection
    selection=<expr>
Public methods (1)
  • default_get(self, fields_list)
    @api.model

Loading…

Loading…