Repository
OCA/purchase-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Purchase Management
Folder size
0.07 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/purchase-workflow
Last tracking update
2026-08-07 08:42:59
Authors
Odoo Community Association (OCA), Ecosoft
Maintainers
Saran440
Committers
Weblate, OCA-git-bot, oca-ci, Andreu Orensanz
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
purchase_stock_manual_currency
Description
This module allows users to update the currency manual of Purchase Order
in draft state.

Example, The company will make a deal with vendor before buy product
that process maybe not same day. So, currency rate in purchase order
will calculated from order date but Company get currency rate from date
of make a deal or special currency rate.

Code Analysis

Views touched (2)
XML IDNameModelTypeStatus
purchase_order_form purchase.order.form purchase.order form Inherits purchase.purchase_order_form
res_config_settings_view_form_purchase res.config.settings.view.form.inherit.purchase res.config.settings form Inherits purchase.res_config_settings_view_form_purchase
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (4)

New fields (7)
  • company_currency_id Many2one → res.currency
    comodel_name='res.currency' related='company_id.currency_id' string='Company Currency'
  • 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' store=True
  • type_currency Selection
    default=<expr> selection=<expr>
Public methods (3)
  • action_refresh_currency(self)
  • action_view_invoice(self, invoices=False)
  • get_view(self, view_id=None, view_type='form', **options)
    @api.model
    Change string name to company currency

New fields (2)
  • company_currency_id Many2one → res.currency
    comodel_name='res.currency' related='order_id.company_currency_id' string='Company Currency'
  • subtotal_company_currency Monetary
    compute='_compute_amount_company_currency' currency_field='company_currency_id' store=True string='Subtotal (Company Currency)'
Public methods (0)

No public methods.

New fields (1)
  • manual_currency_po_inv Selection
    default='currency_inv' selection=[('currency_inv', 'Use currency invoice'), ('currency_po', 'Use currency purchase')] string='Manual Currency Purchase - Invoice'
Public methods (0)

No public methods.

New fields (1)
  • manual_currency_po_inv Selection
    readonly=False related='company_id.manual_currency_po_inv'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…