Repository
OCA/purchase-workflow · module folder · Try on Runboat
Module version
1.0.0
Category
Purchase
Folder size
0.05 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/purchase-workflow
Last tracking update
2026-08-07 08:23:03
Authors
Camptocamp, Odoo Community Association (OCA)
Maintainers
Camptocamp, Odoo Community Association (OCA)
Committers
Vincent Van Rossem, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
Python dependencies
lxml, unidecode
System dependencies
None
Required by
None
Description
The module allows to add advance payment lines on purchase orders.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
account_payment_line_form account.payment.line form Inherits account_payment_order.account_payment_line_form
purchase_order_form purchase.order form Inherits purchase_advance_payment.purchase_order_form
view_account_payment_form account.payment.form account.payment form Inherits account.view_account_payment_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (2)

New fields (3)
  • payment_mode_id Many2one
    related='order_id.payment_mode_id' store=True
  • purchase_amount_residual Float
    related='purchase_id.amount_residual' store=True
  • purchase_id Many2one → purchase.order
    check_company=True comodel_name='purchase.order' string='Purchase Order'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • move_line_id_change(self)
    @api.onchange('move_line_id')

New fields (5)
  • account_payment_line_count Integer
    compute='_compute_account_payment_line_count' store=True string='Payment Line Count'
  • account_payment_line_ids One2many → account.payment.line
    readonly=True string='Payment Lines' args: 'account.payment.line', 'purchase_id'
  • ongoing_account_payment_line_count Integer
    compute='_compute_account_payment_line_count' store=True string='Ongoing Payment Line Count'
  • ongoing_account_payment_line_ids One2many → account.payment.line
    domain=[('state', 'not in', ['uploaded', 'cancel'])] string='Ongoing Payment Lines' args: 'account.payment.line', 'purchase_id'
  • payment_order_ok Boolean
    related='payment_mode_id.payment_order_ok' store=True
Public methods (2)
  • action_create_account_payment_line(self)
  • action_view_ongoing_payment_lines(self)