mirror of
https://github.com/bringout/oca-ocb-l10n_asia-pacific.git
synced 2026-04-26 20:01:58 +02:00
Initial commit: L10N_Asia Pacific packages
This commit is contained in:
commit
54c86b612c
828 changed files with 58224 additions and 0 deletions
10
odoo-bringout-oca-ocb-l10n_th/l10n_th/models/account_move.py
Normal file
10
odoo-bringout-oca-ocb-l10n_th/l10n_th/models/account_move.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
from odoo import models
|
||||
|
||||
class AccountMove(models.Model):
|
||||
_inherit = "account.move"
|
||||
|
||||
def _get_name_invoice_report(self):
|
||||
self.ensure_one()
|
||||
if self.company_id.account_fiscal_country_id.code == 'TH':
|
||||
return 'l10n_th.report_invoice_document'
|
||||
return super()._get_name_invoice_report()
|
||||
Loading…
Add table
Add a link
Reference in a new issue