57 lines
2.6 KiB
XML
57 lines
2.6 KiB
XML
|
<?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'),
|
||
|
'|',
|
||
|
'&',
|
||
|
('amount', '=', 18),
|
||
|
('tax_group_id', '=', ref('l10n_in.gst_group')),
|
||
|
'&',
|
||
|
('tax_group_id', '=', ref('l10n_in.cess_group')),
|
||
|
('children_tax_ids.amount','=', 5)
|
||
|
], limit=2).ids)]
|
||
|
}),
|
||
|
]"/>
|
||
|
</record>
|
||
|
|
||
|
</odoo>
|