Purchase Advance Payment Line

purchase_advance_payment_line
REPOSITORY
REPOSITORYOCA/purchase-workflow
GIT
GIThttps://github.com/OCA/purchase-workflow.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/purchase-workflow/tree/17.0/purchase_advance_payment_line
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYPurchase
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Camptocamp
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Camptocamp
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Vincent Van Rossem
WEBSITE
WEBSITEhttps://github.com/OCA/purchase-workflow
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:09
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/bank-payment:
    - account_payment_purchase
    - account_payment_partner
    - account_payment_mode
    - account_banking_sepa_credit_transfer
    - account_banking_pain_base
    - account_payment_order
OCA/purchase-workflow:
    - purchase_advance_payment
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - onboarding
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - base_iban
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES lxml
unidecode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 field Inherits account_payment_order.account_payment_line_form
purchase_order_form purchase.order button Inherits purchase_advance_payment.purchase_order_form
view_account_payment_form account.payment.form account.payment field Inherits account.view_account_payment_form
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)