mirror of
https://github.com/bringout/oca-ocb-l10n_asia-pacific.git
synced 2026-04-27 22:02:01 +02:00
Initial commit: L10N_Asia Pacific packages
This commit is contained in:
commit
54c86b612c
828 changed files with 58224 additions and 0 deletions
15
odoo-bringout-oca-ocb-l10n_in/l10n_in/demo/account_demo.py
Normal file
15
odoo-bringout-oca-ocb-l10n_in/l10n_in/demo/account_demo.py
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from odoo import api, models
|
||||
class AccountChartTemplate(models.AbstractModel):
|
||||
_inherit = "account.chart.template"
|
||||
|
||||
@api.model
|
||||
def _get_demo_data(self):
|
||||
company = self.env.company
|
||||
if company.account_fiscal_country_id.code == "IN":
|
||||
if company.state_id.country_id.code != "IN":
|
||||
company.state_id = self.env.ref("base.state_in_gj")
|
||||
if company.country_id.code != "IN":
|
||||
company.country_id = self.env.ref("base.in")
|
||||
return super()._get_demo_data()
|
||||
Loading…
Add table
Add a link
Reference in a new issue