diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-08-14 16:48:10 +0200 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-08-14 16:48:10 +0200 |
| commit | 140ee6b8f0b0de7ddcc816496269963612c5d0c6 (patch) | |
| tree | 7bdaa065d215b88fea4fa56adbfa79cdc24deb69 /addons/l10n_in/data | |
| parent | 839696d2d7dd574fd8958d17726379926e94d590 (diff) | |
| parent | 98a55917a602c0c47093b4270ebc4e8b416ecf32 (diff) | |
[MERGE] forward port branch saas-12.4 up to 98a55917a60
Diffstat (limited to 'addons/l10n_in/data')
| -rw-r--r-- | addons/l10n_in/data/account_invoice_demo.xml | 92 | ||||
| -rw-r--r-- | addons/l10n_in/data/account_tax_template_data.xml | 32 |
2 files changed, 95 insertions, 29 deletions
diff --git a/addons/l10n_in/data/account_invoice_demo.xml b/addons/l10n_in/data/account_invoice_demo.xml index db7863005bc..57c3e0ab3ae 100644 --- a/addons/l10n_in/data/account_invoice_demo.xml +++ b/addons/l10n_in/data/account_invoice_demo.xml @@ -9,21 +9,39 @@ <field name="invoice_user_id" ref="base.user_demo"/> <field name="invoice_payment_term_id" ref="account.account_payment_term"/> <field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/> - <field name="invoice_line_ids" eval="[ + <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([ + ('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([ + ('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([ + ('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> @@ -35,42 +53,62 @@ <field name="invoice_user_id" ref="base.user_demo"/> <field name="invoice_payment_term_id" ref="account.account_payment_term"/> <field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/> - <field name="invoice_line_ids" eval="[ + <field name="invoice_line_ids" model="account.move.line" eval="[ (0, 0, { 'product_id': ref('product.product_product_16'), 'quantity': 1, 'price_unit': 1500.0, + 'tax_ids': [(6, 0, obj().tax_ids.search([ + ('type_tax_use', '=', 'sale'), + ('amount','=', 18), + ('tax_group_id', '=', obj().env.ref('l10n_in.gst_group').id)], limit=1).ids)] }), (0, 0, { 'product_id': ref('product.product_product_20'), 'quantity': 1, 'price_unit': 2300.0, + 'tax_ids': [(6, 0, obj().tax_ids.search([ + ('type_tax_use', '=', 'sale'), + ('amount','=', 18), + ('tax_group_id', '=', obj().env.ref('l10n_in.gst_group').id)], limit=1).ids)] }), (0, 0, { 'product_id': ref('product.product_product_22'), 'quantity': 1, 'price_unit': 2600.0, + 'tax_ids': [(6, 0, obj().tax_ids.search([ + ('type_tax_use', '=', 'sale'), + ('amount','=', 5), + ('tax_group_id', '=', obj().env.ref('l10n_in.gst_group').id)], limit=1).ids)] }), (0, 0, { 'product_id': ref('product.product_product_24'), 'quantity': 2, 'price_unit': 1655.0, + 'tax_ids': [(6, 0, obj().tax_ids.search([ + ('type_tax_use', '=', 'sale'), + ('amount','=', 5), + ('tax_group_id', '=', obj().env.ref('l10n_in.gst_group').id)], limit=1).ids)] }), ]"/> </record> - <!-- Demo of B2CL (business to consumer small) Taxable supplies made to other unregistered Person and below INR 2.5 lakhs invoice value.--> + <!-- Demo of B2CL (business to consumer - Large) Taxable supplies made to other unregistered Person and invoice value is more than INR 2.5 lakhs.--> <record id="demo_invoice_b2cl" model="account.move"> <field name="type">out_invoice</field> <field name="partner_id" ref="l10n_in.res_partner_unregistered_customer_out_state"/> <field name="invoice_user_id" ref="base.user_demo"/> <field name="invoice_payment_term_id" ref="account.account_payment_term"/> <field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/> - <field name="invoice_line_ids" eval="[ + <field name="invoice_line_ids" model="account.move.line" eval="[ (0, 0, { 'product_id': ref('product.consu_delivery_01'), 'quantity': 3, 'price_unit': 90000.0, + 'tax_ids': [(6, 0, obj().tax_ids.search([ + ('type_tax_use', '=', 'sale'), + ('amount','=', 18), + ('tax_group_id', '=', obj().env.ref('l10n_in.igst_group').id)], limit=1).ids)] }), ]"/> </record> @@ -92,11 +130,15 @@ <field name="l10n_in_shipping_bill_number">999704</field> <field name="l10n_in_shipping_bill_date" eval="time.strftime('%Y-%m')+'-02'"/> <field name="l10n_in_shipping_port_code_id" ref="l10n_in.port_code_inixy1"/> - <field name="invoice_line_ids" eval="[ + <field name="invoice_line_ids" model="account.move.line" eval="[ (0, 0, { 'product_id': ref('product.product_product_4'), 'quantity': 30, 'price_unit': 8000.0, + 'tax_ids': [(6, 0, obj().tax_ids.search([ + ('type_tax_use', '=', 'sale'), + ('amount','=', 18), + ('tax_group_id', '=', obj().env.ref('l10n_in.igst_group').id)], limit=1).ids)] }), ]"/> </record> @@ -108,16 +150,22 @@ <field name="invoice_user_id" ref="base.user_demo"/> <field name="invoice_payment_term_id" ref="account.account_payment_term"/> <field name="invoice_date" eval="time.strftime('%Y-%m')+'-01'"/> - <field name="invoice_line_ids" eval="[ + <field name="invoice_line_ids" model="account.move.line" eval="[ (0, 0, { 'product_id': ref('product.product_product_1'), 'quantity': 2, 'price_unit': 25000.0, + 'tax_ids': [(6, 0, obj().tax_ids.search([ + ('type_tax_use', '=', 'sale'), + ('tax_group_id', '=', obj().env.ref('l10n_in.exempt_group').id)], limit=1).ids)] }), (0, 0, { 'product_id': ref('product.product_product_5'), 'quantity': 1, 'price_unit': 400.0, + 'tax_ids': [(6, 0, obj().tax_ids.search([ + ('type_tax_use', '=', 'sale'), + ('tax_group_id', '=', obj().env.ref('l10n_in.nil_rated_group').id)], limit=1).ids)] }), ]"/> </record> @@ -131,21 +179,39 @@ <field name="invoice_payment_term_id" ref="account.account_payment_term"/> <field name="invoice_date" eval="time.strftime('%Y-%m')+'-02'"/> <field name="reversed_entry_id" ref="l10n_in.demo_invoice_b2b"/> - <field name="invoice_line_ids" eval="[ + <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([ + ('type_tax_use', '=', 'sale'), + ('amount','=', 28), + ('tax_group_id', '=', obj().env.ref('l10n_in.gst_group').id)], 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([ + ('type_tax_use', '=', 'sale'), + ('amount','=', 18), + ('tax_group_id', '=', obj().env.ref('l10n_in.gst_group').id)], limit=1).ids)] }), (0, 0, { 'product_id': ref('product.product_product_10'), 'quantity': 3, 'price_unit': 400.0, + 'tax_ids': [(6, 0, obj().tax_ids.search([ + ('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> @@ -158,11 +224,15 @@ <field name="invoice_payment_term_id" ref="account.account_payment_term"/> <field name="invoice_date" eval="time.strftime('%Y-%m')+'-02'"/> <field name="reversed_entry_id" ref="l10n_in.demo_invoice_b2cl"/> - <field name="invoice_line_ids" eval="[ + <field name="invoice_line_ids" model="account.move.line" eval="[ (0, 0, { 'product_id': ref('product.consu_delivery_01'), 'quantity': 3, 'price_unit': 90000.0, + 'tax_ids': [(6, 0, obj().tax_ids.search([ + ('type_tax_use', '=', 'sale'), + ('amount','=', 18), + ('tax_group_id', '=', obj().env.ref('l10n_in.gst_group').id)], limit=1).ids)] }), ]"/> </record> @@ -175,11 +245,15 @@ <field name="invoice_user_id" ref="base.user_demo"/> <field name="invoice_payment_term_id" ref="account.account_payment_term"/> <field name="invoice_date" eval="(datetime.now() + relativedelta(months=1)).strftime('%Y-%m-01')"/> - <field name="invoice_line_ids" eval="[ + <field name="invoice_line_ids" model="account.move.line" eval="[ (0, 0, { 'product_id': ref('product.consu_delivery_01'), 'quantity': 3, 'price_unit': 2000.0, + 'tax_ids': [(6, 0, obj().tax_ids.search([ + ('type_tax_use', '=', 'sale'), + ('amount','=', 18), + ('tax_group_id', '=', obj().env.ref('l10n_in.gst_group').id)], limit=1).ids)] }), ]"/> </record> diff --git a/addons/l10n_in/data/account_tax_template_data.xml b/addons/l10n_in/data/account_tax_template_data.xml index 6e043599d86..6c0d3b8892e 100644 --- a/addons/l10n_in/data/account_tax_template_data.xml +++ b/addons/l10n_in/data/account_tax_template_data.xml @@ -185,7 +185,6 @@ if tax > result:result=tax</field> (0,0, { 'factor_percent': 100, 'repartition_type': 'tax', - 'account_id': ref('p11236'), }), ]"/> @@ -198,7 +197,6 @@ if tax > result:result=tax</field> (0,0, { 'factor_percent': 100, 'repartition_type': 'tax', - 'account_id': ref('p10056'), }), ]"/> @@ -224,7 +222,6 @@ if tax > result:result=tax</field> (0,0, { 'factor_percent': 100, 'repartition_type': 'tax', - 'account_id': ref('p11236'), }), ]"/> @@ -237,7 +234,6 @@ if tax > result:result=tax</field> (0,0, { 'factor_percent': 100, 'repartition_type': 'tax', - 'account_id': ref('p10056'), }), ]"/> @@ -506,7 +502,7 @@ if tax > result:result=tax</field> 'factor_percent': 50, 'repartition_type': 'tax', 'account_id': ref('p10052'), - 'plus_report_line_ids': [ref('tax_report_line_cgst')], + 'minus_report_line_ids': [ref('tax_report_line_cgst')], }), ]"/> </record> @@ -554,7 +550,7 @@ if tax > result:result=tax</field> 'factor_percent': 50, 'repartition_type': 'tax', 'account_id': ref('p10052'), - 'plus_report_line_ids': [ref('tax_report_line_cgst')], + 'minus_report_line_ids': [ref('tax_report_line_cgst')], }), ]"/> </record> @@ -602,7 +598,7 @@ if tax > result:result=tax</field> 'factor_percent': 50, 'repartition_type': 'tax', 'account_id': ref('p10052'), - 'plus_report_line_ids': [ref('tax_report_line_cgst')], + 'minus_report_line_ids': [ref('tax_report_line_cgst')], }), ]"/> </record> @@ -650,7 +646,7 @@ if tax > result:result=tax</field> 'factor_percent': 50, 'repartition_type': 'tax', 'account_id': ref('p10052'), - 'plus_report_line_ids': [ref('tax_report_line_cgst')], + 'minus_report_line_ids': [ref('tax_report_line_cgst')], }), ]"/> </record> @@ -698,7 +694,7 @@ if tax > result:result=tax</field> 'factor_percent': 50, 'repartition_type': 'tax', 'account_id': ref('p10052'), - 'plus_report_line_ids': [ref('tax_report_line_cgst')], + 'minus_report_line_ids': [ref('tax_report_line_cgst')], }), ]"/> </record> @@ -747,7 +743,7 @@ if tax > result:result=tax</field> 'factor_percent': 50, 'repartition_type': 'tax', 'account_id': ref('p10052'), - 'plus_report_line_ids': [ref('tax_report_line_cgst')], + 'minus_report_line_ids': [ref('tax_report_line_cgst')], }), ]"/> </record> @@ -898,7 +894,6 @@ if tax > result:result=tax</field> (0,0, { 'factor_percent': 100, 'repartition_type': 'tax', - 'account_id': ref('p10056'), }), ]"/> <field name="refund_repartition_line_ids" eval="[(5, 0, 0), @@ -910,7 +905,6 @@ if tax > result:result=tax</field> (0,0, { 'factor_percent': 100, 'repartition_type': 'tax', - 'account_id': ref('p11236'), }), ]"/> </record> @@ -935,7 +929,6 @@ if tax > result:result=tax</field> (0,0, { 'factor_percent': 100, 'repartition_type': 'tax', - 'account_id': ref('p10056'), }), ]"/> @@ -948,7 +941,6 @@ if tax > result:result=tax</field> (0,0, { 'factor_percent': 100, 'repartition_type': 'tax', - 'account_id': ref('p11236'), }), ]"/> @@ -1215,7 +1207,7 @@ if tax > result:result=tax</field> 'factor_percent': 50, 'repartition_type': 'tax', 'account_id': ref('p11233'), - 'plus_report_line_ids': [ref('tax_report_line_cgst')], + 'minus_report_line_ids': [ref('tax_report_line_cgst')], }), ]"/> </record> @@ -1263,7 +1255,7 @@ if tax > result:result=tax</field> 'factor_percent': 50, 'repartition_type': 'tax', 'account_id': ref('p11233'), - 'plus_report_line_ids': [ref('tax_report_line_cgst')], + 'minus_report_line_ids': [ref('tax_report_line_cgst')], }), ]"/> </record> @@ -1311,7 +1303,7 @@ if tax > result:result=tax</field> 'factor_percent': 50, 'repartition_type': 'tax', 'account_id': ref('p11233'), - 'plus_report_line_ids': [ref('tax_report_line_cgst')], + 'minus_report_line_ids': [ref('tax_report_line_cgst')], }), ]"/> </record> @@ -1359,7 +1351,7 @@ if tax > result:result=tax</field> 'factor_percent': 50, 'repartition_type': 'tax', 'account_id': ref('p11233'), - 'plus_report_line_ids': [ref('tax_report_line_cgst')], + 'minus_report_line_ids': [ref('tax_report_line_cgst')], }), ]"/> </record> @@ -1407,7 +1399,7 @@ if tax > result:result=tax</field> 'factor_percent': 50, 'repartition_type': 'tax', 'account_id': ref('p11233'), - 'plus_report_line_ids': [ref('tax_report_line_cgst')], + 'minus_report_line_ids': [ref('tax_report_line_cgst')], }), ]"/> </record> @@ -1456,7 +1448,7 @@ if tax > result:result=tax</field> 'factor_percent': 50, 'repartition_type': 'tax', 'account_id': ref('p11233'), - 'plus_report_line_ids': [ref('tax_report_line_cgst')], + 'minus_report_line_ids': [ref('tax_report_line_cgst')], }), ]"/> </record> |
