Thai Localization - Government Purchase Agreement

l10n_th_gov_purchase_agreement
REPOSITORY
REPOSITORYOCA/l10n-thailand
GIT
GIThttps://github.com/OCA/l10n-thailand.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-thailand/tree/16.0/l10n_th_gov_purchase_agreement
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalization / Purchase
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Saran440
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-thailand
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:49
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/agreement:
    - agreement_legal
    - agreement
OCA/purchase-workflow:
    - purchase_invoice_plan
    - purchase_open_qty
    - purchase_order_line_menu
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - purchase_requisition
    - purchase_stock
    - stock_account
    - stock
    - barcodes_gs1_nomenclature
    - barcodes
    - contacts
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
partner_agreement_form_view Agreement Form agreement field Inherits agreement_legal.partner_agreement_form_view
purchase_order_form purchase.order.form purchase.order div Inherits purchase.purchase_order_form
report_agreement_document report_agreement_document ir.ui.view qweb Inherits agreement_legal.report_agreement_document
view_purchase_requisition_form purchase.requisition.form purchase.requisition field Inherits purchase_requisition.view_purchase_requisition_form
Models touched (3)

New fields (3)
  • invoice_plan_ids Many2many → purchase.invoice.plan
    comodel_name='purchase.invoice.plan' compute='_compute_invoice_plan_ids' inverse='_inverse_invoice_plan_ids'
  • purchase_order_id Many2one → purchase.order
    comodel_name='purchase.order' copy=False domain="[('state', 'in', ['draft', 'sent']), ('po_type', '=', 'agreement')]" index=True string='RFQ' tracking=True
  • use_invoice_plan Boolean
    related='purchase_order_id.use_invoice_plan'
Public methods (0)

No public methods.

New fields (3)
  • agreement_count Integer
    compute='_compute_agreement_count'
  • agreement_ids One2many → agreement
    comodel_name='agreement' copy=False inverse_name='purchase_order_id' string='Agreement'
  • po_type Selection
    related='requisition_id.po_type'
Public methods (2)
  • action_view_agreement(self)
  • button_confirm(self)

New fields (1)
  • po_type Selection
    copy=False selection=[('agreement', 'Agreement'), ('no_agreement', 'No Agreement')] string='PO Type' tracking=True
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-thailand
GIT
GIThttps://github.com/OCA/l10n-thailand.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-thailand/tree/15.0/l10n_th_gov_purchase_agreement
VERSION
VERSION 1.1.1
CATEGORY
CATEGORYLocalization / Purchase
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Saran440, ps-tubtim
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-thailand
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:35
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/agreement:
    - agreement_legal
    - agreement
OCA/purchase-workflow:
    - purchase_invoice_plan
    - purchase_open_qty
    - purchase_order_line_menu
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - purchase_requisition
    - purchase_stock
    - stock_account
    - stock
    - barcodes
    - contacts
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
partner_agreement_form_view Agreement Form agreement field Inherits agreement_legal.partner_agreement_form_view
purchase_order_form purchase.order.form purchase.order div Inherits purchase.purchase_order_form
report_agreement_document report_agreement_document ir.ui.view qweb Inherits agreement_legal.report_agreement_document
view_purchase_requisition_form purchase.requisition.form purchase.requisition field Inherits purchase_requisition.view_purchase_requisition_form
Models touched (3)

New fields (3)
  • invoice_plan_ids Many2many → purchase.invoice.plan
    comodel_name='purchase.invoice.plan' compute='_compute_invoice_plan_ids' inverse='_inverse_invoice_plan_ids'
  • purchase_order_id Many2one → purchase.order
    comodel_name='purchase.order' copy=False domain="[('state', 'in', ['draft', 'sent']), ('po_type', '=', 'agreement')]" index=True string='RFQ' tracking=True
  • use_invoice_plan Boolean
    related='purchase_order_id.use_invoice_plan'
Public methods (0)

No public methods.

New fields (3)
  • agreement_count Integer
    compute='_compute_agreement_count'
  • agreement_ids One2many → agreement
    comodel_name='agreement' copy=False inverse_name='purchase_order_id' string='Agreement'
  • po_type Selection
    related='requisition_id.po_type'
Public methods (2)
  • action_view_agreement(self)
  • button_confirm(self)

New fields (1)
  • po_type Selection
    copy=False selection=[('agreement', 'Agreement'), ('no_agreement', 'No Agreement')] string='PO Type' tracking=True
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-thailand
GIT
GIThttps://github.com/OCA/l10n-thailand.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-thailand/tree/14.0/l10n_th_gov_purchase_agreement
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYLocalization / Purchase
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Ecosoft
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Ecosoft
COMMITTERS
COMMITTERSoca-travis, OCA-git-bot, Saran440
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-thailand
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/contract:
    - agreement_legal
    - agreement
OCA/purchase-workflow:
    - purchase_invoice_plan
    - purchase_open_qty
odoo/odoo:
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
    - purchase_requisition
    - purchase_stock
    - stock_account
    - stock
    - barcodes
    - contacts
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
partner_agreement_form_view Agreement Form agreement field Inherits agreement_legal.partner_agreement_form_view
purchase_order_form purchase.order.form purchase.order div Inherits purchase.purchase_order_form
view_purchase_requisition_form purchase.requisition.form purchase.requisition field Inherits purchase_requisition.view_purchase_requisition_form
Models touched (3)

New fields (3)
  • invoice_plan_ids Many2many → purchase.invoice.plan
    comodel_name='purchase.invoice.plan' compute='_compute_invoice_plan_ids' inverse='_inverse_invoice_plan_ids'
  • purchase_order_id Many2one → purchase.order
    comodel_name='purchase.order' copy=False domain="[('state', 'in', ['draft', 'sent']), ('po_type', '=', 'agreement')]" index=True string='RFQ' tracking=True
  • use_invoice_plan Boolean
    related='purchase_order_id.use_invoice_plan'
Public methods (0)

No public methods.

New fields (3)
  • agreement_count Integer
    compute='_compute_agreement_count'
  • agreement_ids One2many → agreement
    comodel_name='agreement' copy=False inverse_name='purchase_order_id' string='Agreement'
  • po_type Selection
    related='requisition_id.po_type'
Public methods (2)
  • action_view_agreement(self)
  • button_confirm(self)

New fields (1)
  • po_type Selection
    copy=False selection=[('agreement', 'Agreement'), ('no_agreement', 'No Agreement')] string='PO Type' tracking=True
Public methods (0)

No public methods.

STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/l10n-thailand
PULL REQUEST
PULL REQUEST[18.0][MIG] l10n_th_gov_purchase_agreement: Migration to 18.0 (#605)