Skip to Content
Catalog / PRO · Products & Inventory / Invoice bill show currency rate landed cost
Invoice bill show currency rate landed cost
invoice_bill_show_currency_rate_landed_cost

Invoice bill show currency rate landed cost

Create accurate landed costs from foreign-currency vendor bills using the bill's own rate

v19.0.1.0.0 Abdelfatah Mohammad (AlshayebCo) Products & Inventory

Single-model bridge: inherits journal entry to override button_create_landed_costs (from stock_landed_costs). It builds stock landed cost cost_lines that use the product's stock_valuation account and price_unit = sign * l.currency_id._convert(l.price_subtotal, l.company_currency_id, l.company_id, invoice_date) rather than the core price_subtotal / currency_rate division against the expense account. No new fields, views, menus, security, data, or controllers. Depends on invoice_bill_show_currency_rate and stock_landed_costs.

Overview

When you create landed costs from a foreign-currency vendor bill, standard Odoo converts the amounts with its default rate and posts them to the expense account, which can misstate your inventory valuation. This bridge module ties the AlshayebCo invoice/bill currency-rate feature to Odoo's landed cost feature so that the Create Landed Costs button converts each line using the bill's own currency at the invoice date and routes the amount to the stock valuation account. The result is landed cost records whose values match the actual money spent on the bill, keeping product costing and inventory valuation correct in multi-currency purchasing.

Key Features

  • Overrides the Create Landed Costs button on vendor bills to honor the bill's currency rate.
  • Converts each landed cost line with the bill currency at the invoice date for an accurate company-currency amount.
  • Posts generated landed cost lines to the product's stock valuation account instead of the expense account.
  • Handles vendor refunds (in_refund) by reversing the sign of the converted amount.
  • Carries each product's configured split method (defaulting to equal) onto the new landed cost lines.
  • Opens the newly created stock landed cost record directly in form view for immediate review.

Technical Details

Technical Name invoice_bill_show_currency_rate_landed_cost
Version 19.0.1.0.0
License LGPL-3
Domain PRO · Products & Inventory

Security

No security rules, groups, or access rights are added; the module only extends an existing vendor-bill action and relies entirely on the access control of the underlying Accounting and Inventory (landed costs) modules.

Dependencies

invoice_bill_show_currency_rate stock_landed_costs