19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:21 +01:00
parent 7dc55599c6
commit 7f43bbbfcc
650 changed files with 45260 additions and 33436 deletions

View file

@ -1,15 +1,623 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import api, models
import logging
import time
from datetime import datetime, timedelta
from odoo import api, models, Command
from odoo.exceptions import UserError, ValidationError
from odoo.tools.misc import file_open
_logger = logging.getLogger(__name__)
class AccountChartTemplate(models.AbstractModel):
_inherit = "account.chart.template"
@api.model
def _get_demo_data(self):
company = self.env.company
def _get_demo_data(self, company=False):
demo_data = {}
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()
if company.state_id:
company.write({
'l10n_in_is_gst_registered': True,
'l10n_in_tcs_feature': True,
'l10n_in_tds_feature': True,
'l10n_in_edi_production_env': False,
})
demo_data = {
'res.partner.category': self._get_demo_data_res_partner_category(company),
'res.partner': self._get_demo_data_partner(),
'account.move': self._get_demo_data_move(company),
'res.config.settings': self._get_demo_data_config_settings(company),
'ir.attachment': self._get_demo_data_attachment(company),
'mail.message': self._get_demo_data_mail_message(company),
}
else:
_logger.warning('Error while loading Indian-Accounting demo data in the company "%s".State is not set in the company.', company.name)
else:
demo_data = super()._get_demo_data(company)
return demo_data
@api.model
def _get_demo_data_config_settings(self, company=False):
return{
'sales_credit_limit':{
'account_use_credit_limit': True,
'account_default_credit_limit': '10000'
}
}
@api.model
def _get_demo_data_res_partner_category(self, company=False):
return{
'res_partner_category_registered': {
'name': 'Registered',
'color': 2,
},
'res_partner_category_unregistered': {
'name': 'Unregistered',
'color': 3,
},
}
@api.model
def _get_demo_data_partner(self):
company = self.env.company
if company.account_fiscal_country_id.code != "IN" or not company.state_id:
return super()._get_demo_data_partner()
inter_state_ref = 'base.state_in_ts'
intra_state_ref = 'base.state_in_gj'
default_partner_dict = {'country_id': 'base.in', 'is_company': True, 'company_id': company.id}
return{
'res_partner_registered_customer': {
**default_partner_dict,
'name': 'B2B Customer Intra State',
'category_id': 'res_partner_category_registered',
'l10n_in_gst_treatment': 'regular',
'street': '201, Second Floor, IT Tower 4',
'street2': 'InfoCity Gate - 1, Infocity',
'city': 'Gandhinagar',
'state_id': 'base.state_in_gj',
'zip': '382010',
'vat': '24AABCT1332L2ZD',
},
'res_partner_registered_customer_inter_state': {
**default_partner_dict,
'name': 'B2B Customer Inter State',
'category_id': 'res_partner_category_registered',
'l10n_in_gst_treatment': 'regular',
'street': 'floor-1, Maddikunta-Ankanpally Village',
'street2': 'Post box No 2, NH-65',
'city': 'Hyderabad',
'state_id': inter_state_ref,
'zip': '500014',
'vat': '36AAACM4154G1ZO',
},
'res_partner_unregistered_customer':{
**default_partner_dict,
'name': 'B2C Customer Intra State',
'category_id': 'res_partner_category_unregistered',
'l10n_in_gst_treatment': 'unregistered',
'street': 'B105, yogeshwar Tower',
'state_id': intra_state_ref,
'city': 'Rajkot',
'zip': '360001'
},
'res_partner_unregistered_customer_inter_state':{
**default_partner_dict,
'name': 'B2C Customer Inter State',
'category_id': 'res_partner_category_unregistered',
'l10n_in_gst_treatment': 'unregistered',
'street': '80, Sarojini Devi Road',
'city': 'Hyderabad',
'state_id': inter_state_ref,
'zip': '500003'
},
'res_partner_registered_supplier_1': {
**default_partner_dict,
'name': 'Supplier',
'category_id': 'res_partner_category_registered',
'l10n_in_gst_treatment': 'regular',
'street': '19, Ground Floor',
'street2': 'Survey Road,Vadipatti',
'city': 'Madurai',
'state_id': 'base.state_in_tn',
'zip': '625218',
'vat': '33AACCT6304M1DB',
},
'res_partner_registered_supplier_2': {
**default_partner_dict,
'name': 'Odoo In Private Limited',
'category_id': 'res_partner_category_registered',
'l10n_in_gst_treatment': 'regular',
'street': '401, Fourth Floor, IT Tower 4',
'street2': 'InfoCity Gate - 1, Infocity',
'city': 'Hyderabad',
'state_id': inter_state_ref,
'zip': '500014',
'vat': '36AACCT6304M1ZB',
},
'res_partner_overseas': {
'name': 'Supplier Overseas',
'l10n_in_gst_treatment': 'overseas',
'street': '142 Street, Rigas building',
'street2': 'Survey Road,',
'city': 'City',
'zip': '000000',
'state_id': 'base.state_us_5',
'country_id': 'base.us',
'is_company': True,
'company_id': company.id,
},
}
@api.model
def _get_demo_data_move(self, company=False):
cid = company.id or self.env.company.id
def _get_tax_by_id(tax_id):
tax = self.env.ref('account.%s_%s'%((cid), (tax_id)))
return tax.id
if company.account_fiscal_country_id.code == "IN":
sale_journal = self.env['account.journal'].search(
domain=[
*self.env['account.journal']._check_company_domain(cid),
('type', '=', 'sale'),
], limit=1)
return {
# Demo of B2B (business-to-business) Taxable supplies made to other registered person.
self.company_xmlid('demo_invoice_b2b_1'): {
'move_type': 'out_invoice',
'partner_id': 'res_partner_registered_customer',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'l10n_in_gst_treatment': 'regular',
'journal_id': sale_journal.id,
'invoice_line_ids': [
Command.create({
'product_id': 'product.product_product_8',
'quantity': 2,
'price_unit': 40000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_sale_28')])],
}),
Command.create({
'product_id': 'product.product_product_9',
'quantity': 3,
'price_unit': 400.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_sale_28'), _get_tax_by_id('cess_5_plus_1591_sale')])],
}),
Command.create({
'product_id': 'product.product_product_10',
'quantity': 4,
'price_unit': 300.0,
'tax_ids':[Command.set([_get_tax_by_id('sgst_sale_18')])],
}),
],
},
self.company_xmlid('demo_invoice_b2b_2'): {
'move_type': 'out_invoice',
'partner_id': 'res_partner_registered_customer_inter_state',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'l10n_in_gst_treatment': 'regular',
'journal_id': sale_journal.id,
'invoice_line_ids': [
Command.create({
'product_id': 'product.product_product_9',
'quantity': 2,
'price_unit': 4000.0,
'tax_ids': [Command.set([_get_tax_by_id('igst_sale_5')])],
}),
Command.create({
'product_id': 'product.product_product_10',
'quantity': 3,
'price_unit': 300.0,
'tax_ids': [Command.set([_get_tax_by_id('igst_sale_5')])],
}),
],
},
self.company_xmlid('demo_bill_b2b_1'): {
'ref': 'INV/001',
'move_type': 'in_invoice',
'partner_id': 'res_partner_registered_supplier_2',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'invoice_line_ids': [
Command.create({
'product_id': 'product.consu_delivery_01',
'quantity': 1,
'price_unit': 1000.0,
'tax_ids': [Command.set([_get_tax_by_id('igst_purchase_18')])],
}),
Command.create({
'product_id': 'product.consu_delivery_03',
'quantity': 1,
'price_unit': 2000.0,
'tax_ids': [Command.set([_get_tax_by_id('igst_purchase_18')])],
}),
]
},
self.company_xmlid('demo_bill_b2b_2'): {
'ref': 'INV/002',
'move_type': 'in_invoice',
'partner_id': 'res_partner_registered_supplier_2',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'invoice_line_ids': [
Command.create({
'product_id': 'product.consu_delivery_01',
'quantity': 4,
'price_unit': 1000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_purchase_18')])],
}),
Command.create({
'product_id': 'product.consu_delivery_03',
'quantity': 3,
'price_unit': 2000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_purchase_18')])],
}),
]
},
self.company_xmlid('demo_bill_b2b_3'): {
'ref': 'INV/003',
'move_type': 'in_invoice',
'partner_id': 'res_partner_registered_supplier_1',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'invoice_line_ids': [
Command.create({
'product_id': 'product.consu_delivery_01',
'quantity': 2,
'price_unit': 1000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_purchase_18')])],
}),
Command.create({
'product_id': 'product.consu_delivery_03',
'quantity': 3,
'price_unit': 2000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_purchase_18')])],
}),
]
},
self.company_xmlid('demo_invoice_to_extract'): {
'move_type': 'in_invoice',
'message_main_attachment_id': 'ir_attachment_in_invoice_1',
},
self.company_xmlid('demo_invoice_service'): {
'ref': 'MYS-91021146',
'move_type': 'in_invoice',
'partner_id': 'res_partner_registered_supplier_2',
'invoice_user_id': False,
'invoice_date': datetime.now(),
'invoice_line_ids': [
Command.create({
'name': 'Integrated Managed Infrastructure Service',
'quantity': 1,
'price_unit': 69132.78,
'tax_ids': [Command.set([_get_tax_by_id('sgst_purchase_18')])],
}),
],
'message_main_attachment_id': 'ir_attachment_in_invoice_2',
},
# Demo of IMP(Import) of supplies.
self.company_xmlid('demo_bill_imp'): {
'ref': 'BOE/123',
'move_type': 'in_invoice',
'partner_id': 'res_partner_overseas',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'invoice_line_ids': [
Command.create({
'product_id': 'product.product_product_4',
'quantity': 30,
'price_unit': 9000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_purchase_18')])],
}),
]
},
# Demo of cdnr(Credit/ Debit Note for registered business). Create credit note for demo b2b bill.
self.company_xmlid('demo_bill_cdnr_1'): {
'ref': 'CR/001',
'move_type': 'in_refund',
'partner_id': 'res_partner_registered_supplier_2',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now() - timedelta(days=1),
'l10n_in_gst_treatment': 'regular',
'invoice_line_ids': [
Command.create({
'product_id': 'product.consu_delivery_01',
'quantity': 1,
'price_unit': 1000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_purchase_18')])],
}),
Command.create({
'product_id': 'product.consu_delivery_03',
'quantity': 1,
'price_unit': 2000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_purchase_18')])],
}),
]
},
self.company_xmlid('demo_bill_cdnr_2'): {
'ref': '000072',
'move_type': 'in_refund',
'partner_id': 'res_partner_registered_supplier_1',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'l10n_in_gst_treatment': 'regular',
'invoice_line_ids': [
Command.create({
'product_id': 'product.consu_delivery_01',
'quantity': 1,
'price_unit': 1000.0,
'tax_ids': [Command.set([_get_tax_by_id('igst_purchase_18')])],
}),
]
},
# Demo of B2CS (business to consumer small) Taxable supplies made to other unregistered Person and below INR 2.5 lakhs invoice value.
self.company_xmlid('demo_invoice_b2cs'): {
'move_type': 'out_invoice',
'partner_id': 'res_partner_unregistered_customer_inter_state',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'l10n_in_gst_treatment': 'consumer',
'journal_id': sale_journal.id,
'invoice_line_ids': [
Command.create({
'product_id': 'product.product_product_16',
'quantity': 1,
'price_unit': 1500.0,
'tax_ids': [Command.set([_get_tax_by_id('igst_sale_18')])],
}),
Command.create({
'product_id': 'product.product_product_20',
'quantity': 1,
'price_unit': 2300.0,
'tax_ids': [Command.set([_get_tax_by_id('igst_sale_18')])],
}),
Command.create({
'product_id': 'product.product_product_22',
'quantity': 1,
'price_unit': 2600.0,
'tax_ids': [Command.set([_get_tax_by_id('igst_sale_18')])],
}),
Command.create({
'product_id': 'product.product_product_24',
'quantity': 2,
'price_unit': 1655.0,
'tax_ids': [Command.set([_get_tax_by_id('igst_sale_5')])],
}),
]
},
# Demo of B2CL (business to consumer - Large) Taxable supplies made to other unregistered Person and invoice value is more than INR 2.5 lakhs.
self.company_xmlid('demo_invoice_b2cl'): {
'move_type': 'out_invoice',
'partner_id': 'res_partner_unregistered_customer',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'l10n_in_gst_treatment': 'consumer',
'journal_id': sale_journal.id,
'invoice_line_ids': [
Command.create({
'product_id': 'product.consu_delivery_01',
'quantity': 3,
'price_unit': 90000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_sale_18')])],
}),
]
},
# Demo of EXP(Export) supplies including supplies to SEZ/SEZ Developer or deemed exports.
self.company_xmlid('demo_invoice_exp'): {
'move_type': 'out_invoice',
'partner_id': 'base.res_partner_3',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'l10n_in_gst_treatment': 'overseas',
'l10n_in_shipping_bill_number': '999704',
'l10n_in_shipping_bill_date': time.strftime('%Y-%m-02'),
'l10n_in_shipping_port_code_id': 'l10n_in.port_code_inixy1',
'journal_id': sale_journal.id,
'invoice_line_ids': [
Command.create({
'product_id': 'product.product_product_4',
'quantity': 30,
'price_unit': 8000.0,
'tax_ids': [Command.set([_get_tax_by_id('igst_sale_18_sez_exp')])],
}),
]
},
# Demo of exempt(Nil Rated, Exempted and Non GST supplies). Set Nill rated and Exempted tax in line.
self.company_xmlid('demo_invoice_nill'): {
'move_type': 'out_invoice',
'partner_id': 'res_partner_registered_customer',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'l10n_in_gst_treatment': 'regular',
'journal_id': sale_journal.id,
'invoice_line_ids': [
Command.create({
'product_id': 'product.product_product_1',
'quantity': 2,
'price_unit': 25000.0,
'tax_ids': [Command.set([_get_tax_by_id('exempt_sale')])],
}),
Command.create({
'product_id': 'product.product_product_5',
'quantity': 1,
'price_unit': 400.0,
'tax_ids': [Command.set([_get_tax_by_id('nil_rated_sale')])],
}),
]
},
# Demo of cdnr(Credit/ Debit Note for registered person). Create credit note for demo b2b invoice.
self.company_xmlid('demo_invoice_cdnr_1'): {
'move_type': 'out_refund',
'partner_id': 'res_partner_registered_customer',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'l10n_in_gst_treatment': 'regular',
'reversed_entry_id': 'demo_invoice_b2b_1',
'journal_id': sale_journal.id,
'invoice_line_ids': [
Command.create({
'product_id': 'product.product_product_8',
'quantity': 2,
'price_unit': 40000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_sale_28')])],
}),
Command.create({
'product_id': 'product.product_product_9',
'quantity': 3,
'price_unit': 400.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_sale_28'), _get_tax_by_id('cess_5_plus_1591_sale')])],
}),
Command.create({
'product_id': 'product.product_product_10',
'quantity': 4,
'price_unit': 300.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_sale_18')])],
}),
]
},
self.company_xmlid('demo_invoice_cdnr_2'): {
'move_type': 'out_refund',
'partner_id': 'res_partner_registered_customer',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'l10n_in_gst_treatment': 'regular',
'journal_id': sale_journal.id,
'invoice_line_ids': [
Command.create({
'product_id': 'product.consu_delivery_01',
'quantity': 1,
'price_unit': 1000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_sale_18')])],
}),
Command.create({
'product_id': 'product.consu_delivery_03',
'quantity': 1,
'price_unit': 2000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_sale_18')])],
}),
]
},
# Demo of cdnr(Credit/ Debit Note for unregistered person). Create credit note for demo b2cl invoice.
self.company_xmlid('demo_invoice_cdnur'): {
'move_type': 'out_refund',
'partner_id': 'res_partner_unregistered_customer',
'invoice_user_id': 'base.user_demo',
'invoice_payment_term_id': 'account.account_payment_term_end_following_month',
'invoice_date': datetime.now(),
'l10n_in_gst_treatment': 'consumer',
'reversed_entry_id': 'demo_invoice_b2cl',
'journal_id': sale_journal.id,
'invoice_line_ids': [
Command.create({
'product_id': 'product.consu_delivery_01',
'quantity': 3,
'price_unit': 90000.0,
'tax_ids': [Command.set([_get_tax_by_id('sgst_sale_18')])],
}),
]
},
}
else:
return super()._get_demo_data_move(company)
@api.model
def _get_demo_data_attachment(self, company=False):
if company.account_fiscal_country_id.code == "IN":
return{
'ir_attachment_in_invoice_1': {
'type': 'binary',
'name': 'in_invoice_demo_1.pdf',
'res_model': 'account.move',
'res_id': 'demo_invoice_to_extract',
'raw': file_open(
'l10n_in/static/demo/in_invoice_demo_1.pdf', 'rb'
).read()
},
'ir_attachment_in_invoice_2': {
'type': 'binary',
'name': 'in_invoice_demo_2.pdf',
'res_model': 'account.move',
'res_id': 'demo_invoice_service',
'raw': file_open(
'l10n_in/static/demo/in_invoice_demo_2.pdf', 'rb'
).read()
}
}
else:
return super()._get_demo_data_attachment(company)
@api.model
def _get_demo_data_mail_message(self, company=False):
if company.account_fiscal_country_id.code == "IN":
return {
'mail_message_in_invoice_1': {
'model': 'account.move',
'res_id': 'demo_invoice_to_extract',
'body': 'Vendor Bill attachment',
'message_type': 'comment',
'author_id': 'base.partner_demo',
'attachment_ids': [Command.set([
'ir_attachment_in_invoice_1',
])]
},
'mail_message_in_invoice_2': {
'model': 'account.move',
'res_id': 'demo_invoice_service',
'body': 'Vendor Bill attachment',
'message_type': 'comment',
'author_id': 'base.partner_demo',
'attachment_ids': [Command.set([
'ir_attachment_in_invoice_2',
])]
},
}
else:
return super()._get_demo_data_mail_message(company)
def _post_load_demo_data(self, company=False):
if company.account_fiscal_country_id.code == "IN":
if company.state_id:
invoices = (
self.ref('demo_invoice_b2b_1')
+ self.ref('demo_invoice_b2b_2')
+ self.ref('demo_invoice_b2cs')
+ self.ref('demo_invoice_b2cl')
+ self.ref('demo_invoice_exp')
+ self.ref('demo_invoice_nill')
+ self.ref('demo_invoice_cdnr_1')
+ self.ref('demo_invoice_cdnr_2')
+ self.ref('demo_invoice_cdnur')
+ self.ref('demo_bill_b2b_1')
+ self.ref('demo_bill_b2b_2')
+ self.ref('demo_bill_b2b_3')
+ self.ref('demo_bill_imp')
+ self.ref('demo_bill_cdnr_1')
+ self.ref('demo_bill_cdnr_2')
+ self.ref('demo_invoice_service')
)
for move in invoices:
try:
move.action_post()
except (UserError, ValidationError):
_logger.exception('Error while posting demo data')
else:
return super()._post_load_demo_data(company)

View file

@ -1,56 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<record id="demo_invoice_b2b_intra_state" model="account.move">
<field name="move_type">out_invoice</field>
<field name="partner_id" ref="l10n_in.res_partner_registered_customer_intra_state"/>
<field name="l10n_in_reseller_partner_id" ref="l10n_in.res_partner_reseller"/>
<field name="invoice_user_id" ref="base.user_demo"/>
<field name="invoice_payment_term_id" ref="account.account_payment_term_end_following_month"/>
<field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/>
<field name="l10n_in_gst_treatment">regular</field>
<field name="journal_id" model="account.journal"
eval="obj().search([
('type', '=', 'sale'),
('company_id', '=', ref('l10n_in.demo_company_in'))], limit=1).id"/>
<field name="invoice_line_ids" model="account.move.line" eval="[
(0, 0, {
'product_id': ref('product.product_product_8'),
'quantity': 2,
'price_unit': 40000.0,
'tax_ids': [(6, 0, obj().tax_ids.search([
('company_id', '=', ref('l10n_in.demo_company_in')),
('type_tax_use', '=', 'sale'),
('amount','=', 28),
('tax_group_id', '=', ref('l10n_in.gst_group'))], limit=1).ids)]
}),
(0, 0, {
'product_id': ref('product.product_product_9'),
'quantity': 3,
'price_unit': 400.0,
'tax_ids': [(6, 0, obj().tax_ids.search([
('company_id', '=', ref('l10n_in.demo_company_in')),
('type_tax_use', '=', 'sale'),
('amount','=', 18),
('tax_group_id', '=', ref('l10n_in.gst_group'))], limit=1).ids)]
}),
(0, 0, {
'product_id': ref('product.product_product_10'),
'quantity': 4,
'price_unit': 300.0,
'tax_ids': [(6, 0, obj().tax_ids.search([
('company_id', '=', ref('l10n_in.demo_company_in')),
('type_tax_use', '=', 'sale'),
'|',
'&amp;',
('amount', '=', 18),
('tax_group_id', '=', ref('l10n_in.gst_group')),
'&amp;',
('tax_group_id', '=', ref('l10n_in.cess_group')),
('children_tax_ids.amount','=', 5)
], limit=2).ids)]
}),
]"/>
</record>
</odoo>

View file

@ -1,35 +1,39 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="partner_demo_company_in" model="res.partner">
<record id="base.partner_demo_company_in" model="res.partner" forcecreate="1">
<field name="name">IN Company</field>
<field name="vat">36AABCT1332L011</field>
<field name="vat">24FANCY1234AAZA</field>
<field name="l10n_in_tan">GANI12345A</field>
<field name="street">Block no. 401</field>
<field name="street2">Street 2</field>
<field name="city">Hyderabad</field>
<field name="city">Gandhinagar</field>
<field name="country_id" ref="base.in"/>
<field name="state_id" ref="base.state_in_ts"/>
<field name="zip">500001</field>
<field name="state_id" ref="base.state_in_gj"/>
<field name="zip">382002</field>
<field name="phone">+91 81234 56789</field>
<field name="email">info@company.inexample.com</field>
<field name="website">www.inexample.com</field>
<field name="is_company" eval="True"/>
</record>
<record id="demo_company_in" model="res.company">
<record id="base.demo_company_in" model="res.company" forcecreate="1">
<field name="name">IN Company</field>
<field name="partner_id" ref="partner_demo_company_in"/>
<field name="partner_id" ref="base.partner_demo_company_in"/>
</record>
<function model="res.company" name="_onchange_country_id">
<value eval="[ref('demo_company_in')]"/>
<value eval="[ref('base.demo_company_in')]"/>
</function>
<function model="res.users" name="write">
<value eval="[ref('base.user_root'), ref('base.user_admin'), ref('base.user_demo')]"/>
<value eval="{'company_ids': [(4, ref('l10n_in.demo_company_in'))]}"/>
<value eval="{'company_ids': [(4, ref('base.demo_company_in'))]}"/>
</function>
<function model="account.chart.template" name="try_loading">
<value eval="[ref('l10n_in.indian_chart_template_standard')]"/>
<value model="res.company" eval="obj().env.ref('l10n_in.demo_company_in')"/>
<value eval="[]"/>
<value>in</value>
<value model="res.company" eval="obj().env.ref('base.demo_company_in')"/>
<value name="install_demo" eval="True"/>
</function>
</odoo>

View file

@ -2,127 +2,96 @@
<odoo noupdate="1">
<record id="product.product_product_1" model="product.product">
<field name="l10n_in_hsn_code">998391</field>
<field name="l10n_in_hsn_description">Specialty Design Services Including Interior Design, Fashion Design, Industrial Design And Other Specialty Design Services</field>
</record>
<record id="product.product_product_2" model="product.product">
<field name="l10n_in_hsn_code">998391</field>
<field name="l10n_in_hsn_description">Specialty Design Services Including Interior Design, Fashion Design, Industrial Design And Other Specialty Design Services</field>
</record>
<record id="product.product_product_3" model="product.product">
<field name="l10n_in_hsn_code">9403</field>
<field name="l10n_in_hsn_description">Other furniture and parts thereof.</field>
</record>
<record id="product.product_product_4" model="product.product">
<field name="l10n_in_hsn_code">9403</field>
<field name="l10n_in_hsn_description">Other furniture and parts thereof.</field>
</record>
<record id="product.product_product_4b" model="product.product">
<field name="l10n_in_hsn_code">9403</field>
<field name="l10n_in_hsn_description">Other furniture and parts thereof.</field>
</record>
<record id="product.product_product_4c" model="product.product">
<field name="l10n_in_hsn_code">9403</field>
<field name="l10n_in_hsn_description">Other furniture and parts thereof.</field>
</record>
<record id="product.product_product_5" model="product.product">
<field name="l10n_in_hsn_code">9403</field>
<field name="l10n_in_hsn_description">Other furniture and parts thereof.</field>
</record>
<record id="product.product_product_6" model="product.product">
<field name="l10n_in_hsn_code">9403</field>
<field name="l10n_in_hsn_description">Other furniture and parts thereof.</field>
</record>
<record id="product.product_product_7" model="product.product">
<field name="l10n_in_hsn_code">48196000</field>
<field name="l10n_in_hsn_description">Box files, letter trays, storage boxes and similar articles, of a kind used in offices, shops or the like</field>
</record>
<record id="product.product_product_8" model="product.product">
<field name="l10n_in_hsn_code">9403</field>
<field name="l10n_in_hsn_description">Other furniture and parts thereof.</field>
</record>
<record id="product.product_product_9" model="product.product">
<field name="l10n_in_hsn_code">7323</field>
<field name="l10n_in_hsn_description">Table, kitchen or other household articles and parts thereof, of iron or steel; iron or steel wool; pot scourers and scouring or polishing pads, gloves and the like, of iron or steel.</field>
</record>
<record id="product.product_product_10" model="product.product">
<field name="l10n_in_hsn_code">84185000</field>
<field name="l10n_in_hsn_description">Other furniture (chests, cabinets, display counters, show-cases and the like) for storage and display, incorporating refrigerating or freezing equipment</field>
</record>
<record id="product.product_product_11" model="product.product">
<field name="l10n_in_hsn_code">94018000</field>
<field name="l10n_in_hsn_description">Seats (other than those of heading 9402), whether or not convertible into beds, and parts thereof</field>
</record>
<record id="product.product_product_11b" model="product.product">
<field name="l10n_in_hsn_code">94018000</field>
<field name="l10n_in_hsn_description">Seats (other than those of heading 9402), whether or not convertible into beds, and parts thereof</field>
</record>
<record id="product.product_product_12" model="product.product">
<field name="l10n_in_hsn_code">94018000</field>
<field name="l10n_in_hsn_description">Seats (other than those of heading 9402), whether or not convertible into beds, and parts thereof</field>
</record>
<record id="product.product_product_13" model="product.product">
<field name="l10n_in_hsn_code">9403</field>
<field name="l10n_in_hsn_description">Other furniture and parts thereof.</field>
</record>
<record id="product.product_product_16" model="product.product">
<field name="l10n_in_hsn_code">94031090</field>
<field name="l10n_in_hsn_description">Metal furniture of a kind used in offices</field>
</record>
<record id="product.product_product_20" model="product.product">
<field name="l10n_in_hsn_code">37011090</field>
<field name="l10n_in_hsn_description">Photographic plates and film in the flat, sensitised, unexposed, of any material other than paper, paperboard or textiles; instant print film in the flat, sensitised, unexposed, whether or not in packs.</field>
</record>
<record id="product.product_product_22" model="product.product">
<field name="l10n_in_hsn_code">9403</field>
<field name="l10n_in_hsn_description">Other furniture and parts thereof.</field>
</record>
<record id="product.product_product_24" model="product.product">
<field name="l10n_in_hsn_code">94031090</field>
<field name="l10n_in_hsn_description">Metal furniture of a kind used in offices</field>
</record>
<record id="product.product_product_25" model="product.product">
<field name="l10n_in_hsn_code">94031090</field>
<field name="l10n_in_hsn_description">Metal furniture of a kind used in offices</field>
</record>
<record id="product.product_product_27" model="product.product">
<field name="l10n_in_hsn_code">94031090</field>
<field name="l10n_in_hsn_description">Metal furniture of a kind used in offices</field>
</record>
<!-- Expensable products -->
<record id="product.expense_product" model="product.product">
<field name="l10n_in_hsn_code">9963.31</field>
<field name="l10n_in_hsn_description">Services provided by Restaurants, Cafes and similar eating facilities including takeaway services, Room services and door delivery of food.
</field>
<field name="l10n_in_hsn_code">996331</field>
</record>
<record id="product.expense_hotel" model="product.product">
<field name="l10n_in_hsn_code">9963.32</field>
<field name="l10n_in_hsn_description">Services provided by Hotels, INN, Guest House, Club etc including Room services, takeaway services and door delivery of food.</field>
<field name="l10n_in_hsn_code">996332</field>
</record>
<!-- Physical Products -->
<record id="product.product_delivery_01" model="product.product">
<field name="l10n_in_hsn_code">94018000</field>
<field name="l10n_in_hsn_description">Seats (other than those of heading 9402), whether or not convertible into beds, and parts thereof</field>
</record>
<record id="product.product_delivery_02" model="product.product">
<field name="l10n_in_hsn_code">94051090</field>
<field name="l10n_in_hsn_description">Lamps and lighting fittings including searchlights and spotlights and parts thereof, not elsewhere specified or included; illuminated signs, illuminated name-plates and the like, having a permanently fixed light source, and parts thereof not elsewhere specified or included</field>
</record>
<record id="product.product_order_01" model="product.product">
<field name="l10n_in_hsn_code">4911.99.10</field>
<field name="l10n_in_hsn_description">Hard copy (printed) of computer software</field>
<field name="l10n_in_hsn_code">49119910</field>
</record>
<record id="product.consu_delivery_01" model="product.product">
<field name="l10n_in_hsn_code">9401.61.00</field>
<field name="l10n_in_hsn_description">Seats (other than those of heading 9402), whether or not convertible into beds, and parts thereof</field>
<field name="l10n_in_hsn_code">94016100</field>
</record>
<record id="product.consu_delivery_02" model="product.product">
<field name="l10n_in_hsn_code">9403.89.00</field>
<field name="l10n_in_hsn_description">Other Furniture</field>
<field name="l10n_in_hsn_code">94038900</field>
</record>
<record id="product.consu_delivery_03" model="product.product">
<field name="l10n_in_hsn_code">9403</field>
<field name="l10n_in_hsn_description">Other furniture and parts thereof.</field>
</record>
</odoo>

View file

@ -1,43 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo noupdate="1">
<record id="res_partner_category_registered" model="res.partner.category">
<field name="name">Registered</field>
<field name="color" eval="2"/>
</record>
<record id="res_partner_category_unregistered" model="res.partner.category">
<field name="name">Unregistered</field>
<field name="color" eval="3"/>
</record>
<record id="res_partner_category_reseller" model="res.partner.category">
<field name="name">Reseller</field>
<field name="color" eval="12"/>
</record>
<record id="res_partner_registered_customer_intra_state" model="res.partner">
<field name="name">Registered Customer Intra State</field>
<field eval="[(6, 0, [ref('l10n_in.res_partner_category_registered')])]" name="category_id"/>
<field name="is_company">1</field>
<field name="l10n_in_gst_treatment">regular</field>
<field name="street">floor-1, Maddikunta-Ankanpally Village</field>
<field name="street2">Post box No 2, NH-65</field>
<field name="city">Sangareddy</field>
<field name="zip">500002</field>
<field name="state_id" ref="base.state_in_ts"/>
<field name="country_id" ref="base.in"/>
<field name="vat">36AAACM4154G1ZO</field>
</record>
<!-- reseller partner -->
<record id="res_partner_reseller" model="res.partner">
<field name="name">Reseller(E-Commerce)</field>
<field eval="[(6, 0, [ref('l10n_in.res_partner_category_reseller'),
ref('l10n_in.res_partner_category_registered')])]" name="category_id"/>
<field name="street">4/001 Ground Floor, 16th Main Rd,</field>
<field name="l10n_in_gst_treatment">regular</field>
<field name="city">Bengaluru</field>
<field name="zip">560001</field>
<field name="state_id" ref="base.state_in_ka"/>
<field name="country_id" ref="base.in"/>
<field name="vat">29AJIPA1572E1ZR</field>
</record>
</odoo>