Thai Localization - Government Purchase Guarantee

l10n_th_gov_purchase_guarantee
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_guarantee
VERSION
VERSION 1.1.2
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 odoo/odoo:
    - purchase_requisition
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (13)
XML IDNameModelTypeStatus
purchase_guarantee_method_form_view purchase.guarantee.method.form.view purchase.guarantee.method form New
purchase_guarantee_method_search_view purchase.guarantee.method.search.view purchase.guarantee.method search New
purchase_guarantee_method_tree_view purchase.guarantee.method.tree.view purchase.guarantee.method tree New
purchase_guarantee_search_view purchase.guarantee.search.view purchase.guarantee search New
purchase_guarantee_type_form_view purchase.guarantee.type.form.view purchase.guarantee.type form New
purchase_guarantee_type_search_view purchase.guarantee.type.search.view purchase.guarantee.type search New
purchase_guarantee_type_tree_view purchase.guarantee.type.tree.view purchase.guarantee.type tree New
purchase_order_form purchase.order.form purchase.order div Inherits purchase.purchase_order_form
view_account_invoice_filter account.invoice.select account.move group Inherits account.view_account_invoice_filter
view_move_form account.move.form account.move field Inherits account.view_move_form
view_purchase_guarantee_form view.purchase.guarantee.form purchase.guarantee form New
view_purchase_guarantee_tree view.purchase.guarantee.tree purchase.guarantee tree New
view_purchase_requisition_form purchase.requisition.form purchase.requisition div Inherits purchase_requisition.view_purchase_requisition_form
Models touched (7)

New fields (2)
  • guarantee_ids Many2many → purchase.guarantee
    column1='move_id' column2='guarantee_id' comodel_name='purchase.guarantee' ondelete='restrict' relation='account_move_guarantee_rel' string='Guarantee'
  • return_guarantee_ids Many2many → purchase.guarantee
    column1='move_id' column2='guarantee_id' comodel_name='purchase.guarantee' ondelete='restrict' relation='account_move_return_guarantee_rel' string='Return Guarantee'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (25)
  • active Boolean
    default=True
  • amount Monetary
    currency_field='currency_id' default=0.0
  • amount_received Monetary
    compute='_compute_amount_received' currency_field='currency_id' string='Received'
  • amount_returned Monetary
    compute='_compute_amount_returned' currency_field='currency_id' string='Returned'
  • analytic_account_id Many2one → account.analytic.account
    comodel_name='account.analytic.account' compute='_compute_analytic' compute_sudo=True readonly=False store=True
  • analytic_tag_ids Many2many → account.analytic.tag
    comodel_name='account.analytic.tag' compute='_compute_analytic' compute_sudo=True readonly=False store=True string='Analytic Tags'
  • bill_ids Many2many → account.move
    column1='guarantee_id' column2='move_id' comodel_name='account.move' relation='account_move_return_guarantee_rel' string='Bill Ref'
  • can_edit_guarantee_method Boolean
    compute='_compute_can_edit_guarantee_method'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • currency_id Many2one
    readonly=True related='company_id.currency_id'
  • date_due_guarantee Date
    string='Guarantee Due Date'
  • date_guarantee_receive Date
    string='Guarantee Receive Date'
  • date_return Date
    string='Return Date'
  • document_ref Char
  • domain_analytic_account_ids Many2many → account.analytic.account
    comodel_name='account.analytic.account' compute='_compute_analytic' compute_sudo=True string='Domain Analytic Account'
  • guarantee_method_id Many2one → purchase.guarantee.method
    comodel_name='purchase.guarantee.method' compute='_compute_guarantee_method_id' index=True ondelete='restrict' readonly=False store=True string='Guarantee Method'
  • guarantee_type_id Many2one → purchase.guarantee.type
    comodel_name='purchase.guarantee.type' index=True ondelete='restrict' string='Guarantee Type'
  • invoice_ids Many2many → account.move
    column1='guarantee_id' column2='move_id' comodel_name='account.move' relation='account_move_guarantee_rel' string='Invoice Ref'
  • name Char
    default='/' string='Guarantee Number'
  • note Text
  • partner_id Many2one → res.partner
    comodel_name='res.partner' compute='_compute_partner_id' index=True ondelete='restrict' readonly=False store=True string='Partner'
  • purchase_id Many2one → purchase.order
    comodel_name='purchase.order' compute='_compute_reference' index=True ondelete='restrict' store=True string='Purchase Order'
  • reference Reference
    selection=[('purchase.requisition', 'Purchase Agreement'), ('purchase.order', 'Purchase Order')]
  • reference_model Char
    compute='_compute_reference' store=True
  • requisition_id Many2one → purchase.requisition
    comodel_name='purchase.requisition' compute='_compute_reference' index=True ondelete='restrict' store=True string='Purchase Requisition'
Public methods (3)
  • create(self, vals)
    @api.model
  • name_get(self)
  • name_search(self, name, args=None, operator='ilike', limit=100)
    @api.model

New fields (4)
  • account_id Many2one → account.account
    comodel_name='account.account' index=True ondelete='restrict' string='Account'
  • active Boolean
    default=True
  • default_for_model Selection
    help='Guarantee created from which document model, will use this method' selection=[('purchase.requisition', 'Purchase Agreement'), ('purchase.order.rfq', 'Request for Quotation'), ('purchase.order.po', 'Purchase Order')] string='Default method for'
  • name Char
Public methods (0)

No public methods.

New fields (3)
  • active Boolean
    default=True
  • is_create_invoice Boolean
    default=False string='Create Invoice ?'
  • name Char
Public methods (0)

No public methods.

New fields (2)
  • purchase_guarantee_count Integer
    compute='_compute_purchase_guarantee_count' string='Guarantee Count'
  • purchase_guarantee_ids One2many → purchase.guarantee
    comodel_name='purchase.guarantee' inverse_name='purchase_id' string='Guarantee'
Public methods (1)
  • action_view_purchase_guarantee(self)

New fields (2)
  • purchase_guarantee_count Integer
    compute='_compute_purchase_guarantee_count' string='Guarantee Count'
  • purchase_guarantee_ids One2many → purchase.guarantee
    comodel_name='purchase.guarantee' inverse_name='requisition_id' string='Guarantee'
Public methods (1)
  • action_view_purchase_guarantee(self)
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_guarantee
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 odoo/odoo:
    - purchase_requisition
    - purchase
    - account
    - base_setup
    - base
    - web
    - product
    - mail
    - bus
    - web_tour
    - uom
    - analytic
    - portal
    - web_editor
    - http_routing
    - auth_signup
    - digest
    - resource
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (13)
XML IDNameModelTypeStatus
purchase_guarantee_method_form_view purchase.guarantee.method.form.view purchase.guarantee.method form New
purchase_guarantee_method_search_view purchase.guarantee.method.search.view purchase.guarantee.method search New
purchase_guarantee_method_tree_view purchase.guarantee.method.tree.view purchase.guarantee.method tree New
purchase_guarantee_search_view purchase.guarantee.search.view purchase.guarantee search New
purchase_guarantee_type_form_view purchase.guarantee.type.form.view purchase.guarantee.type form New
purchase_guarantee_type_search_view purchase.guarantee.type.search.view purchase.guarantee.type search New
purchase_guarantee_type_tree_view purchase.guarantee.type.tree.view purchase.guarantee.type tree New
purchase_order_form purchase.order.form purchase.order div Inherits purchase.purchase_order_form
view_account_invoice_filter account.invoice.select account.move group Inherits account.view_account_invoice_filter
view_move_form account.move.form account.move field Inherits account.view_move_form
view_purchase_guarantee_form view.purchase.guarantee.form purchase.guarantee form New
view_purchase_guarantee_tree view.purchase.guarantee.tree purchase.guarantee tree New
view_purchase_requisition_form purchase.requisition.form purchase.requisition div Inherits purchase_requisition.view_purchase_requisition_form
Models touched (7)

New fields (2)
  • guarantee_ids Many2many → purchase.guarantee
    column1='move_id' column2='guarantee_id' comodel_name='purchase.guarantee' ondelete='restrict' relation='account_move_guarantee_rel' string='Guarantee'
  • return_guarantee_ids Many2many → purchase.guarantee
    column1='move_id' column2='guarantee_id' comodel_name='purchase.guarantee' ondelete='restrict' relation='account_move_return_guarantee_rel' string='Return Guarantee'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (25)
  • active Boolean
    default=True
  • amount Monetary
    currency_field='currency_id' default=0.0 string='Amount'
  • amount_received Monetary
    compute='_compute_amount_received' currency_field='currency_id' string='Received'
  • amount_returned Monetary
    compute='_compute_amount_returned' currency_field='currency_id' string='Returned'
  • analytic_account_id Many2one → account.analytic.account
    comodel_name='account.analytic.account' compute='_compute_analytic' readonly=False store=True
  • analytic_tag_ids Many2many → account.analytic.tag
    comodel_name='account.analytic.tag' compute='_compute_analytic' readonly=False store=True string='Analytic Tags'
  • bill_ids Many2many → account.move
    column1='guarantee_id' column2='move_id' comodel_name='account.move' relation='account_move_return_guarantee_rel' string='Bill Ref'
  • can_edit_guarantee_method Boolean
    compute='_compute_can_edit_guarantee_method'
  • company_id Many2one → res.company
    comodel_name='res.company' default=<expr> required=True string='Company'
  • currency_id Many2one
    readonly=True related='company_id.currency_id'
  • date_due_guarantee Date
    string='Guarantee Due Date'
  • date_guarantee_receive Date
    string='Guarantee Receive Date'
  • date_return Date
    string='Return Date'
  • document_ref Char
    string='Document Ref'
  • domain_analytic_account_ids Many2many → account.analytic.account
    comodel_name='account.analytic.account' compute='_compute_analytic' string='Domain Analytic Account'
  • guarantee_method_id Many2one → purchase.guarantee.method
    comodel_name='purchase.guarantee.method' compute='_compute_guarantee_method_id' index=True ondelete='restrict' readonly=False store=True string='Guarantee Method'
  • guarantee_type_id Many2one → purchase.guarantee.type
    comodel_name='purchase.guarantee.type' index=True ondelete='restrict' string='Guarantee Type'
  • invoice_ids Many2many → account.move
    column1='guarantee_id' column2='move_id' comodel_name='account.move' relation='account_move_guarantee_rel' string='Invoice Ref'
  • name Char
    default='/' string='Guarantee Number'
  • note Text
    string='Note'
  • partner_id Many2one → res.partner
    comodel_name='res.partner' compute='_compute_partner_id' index=True ondelete='restrict' readonly=False store=True string='Partner'
  • purchase_id Many2one → purchase.order
    comodel_name='purchase.order' compute='_compute_reference' index=True ondelete='restrict' store=True string='Purchase Order'
  • reference Reference
    selection=[('purchase.requisition', 'Purchase Agreement'), ('purchase.order', 'Purchase Order')] string='Reference'
  • reference_model Char
    compute='_compute_reference' store=True
  • requisition_id Many2one → purchase.requisition
    comodel_name='purchase.requisition' compute='_compute_reference' index=True ondelete='restrict' store=True string='Purchase Requisition'
Public methods (3)
  • create(self, vals)
    @api.model
  • name_get(self)
  • name_search(self, name, args=None, operator='ilike', limit=100)
    @api.model

New fields (4)
  • account_id Many2one → account.account
    comodel_name='account.account' index=True ondelete='restrict' string='Account'
  • active Boolean
    default=True string='Active'
  • default_for_model Selection
    help='Guarantee created from which document model, will use this method' selection=[('purchase.requisition', 'Purchase Agreement'), ('purchase.order.rfq', 'Request for Quotation'), ('purchase.order.po', 'Purchase Order')] string='Default method for'
  • name Char
    string='Name'
Public methods (0)

No public methods.

New fields (3)
  • active Boolean
    default=True string='Active'
  • is_create_invoice Boolean
    default=False string='Create Invoice ?'
  • name Char
    string='Name'
Public methods (0)

No public methods.

New fields (2)
  • purchase_guarantee_count Integer
    compute='_compute_purchase_guarantee_count' string='Guarantee Count'
  • purchase_guarantee_ids One2many → purchase.guarantee
    comodel_name='purchase.guarantee' inverse_name='purchase_id' string='Guarantee'
Public methods (1)
  • action_view_purchase_guarantee(self)

New fields (2)
  • purchase_guarantee_count Integer
    compute='_compute_purchase_guarantee_count' string='Guarantee Count'
  • purchase_guarantee_ids One2many → purchase.guarantee
    comodel_name='purchase.guarantee' inverse_name='requisition_id' string='Guarantee'
Public methods (1)
  • action_view_purchase_guarantee(self)