@classmethod
def setup_armageddon_tax(cls, tax_name, company_data):
    return cls.env['account.tax'].create({'name': ('%s (group)' % tax_name), 'amount_type': 'group', 'amount': 0.0, 'children_tax_ids': [(0, 0, {'name': ('%s (child 1)' % tax_name), 'amount_type': 'percent', 'amount': 20.0, 'price_include': True, 'include_base_amount': True, 'tax_exigibility': 'on_invoice', 'invoice_repartition_line_ids': [(0, 0, {'factor_percent': 100, 'repartition_type': 'base'}), (0, 0, {'factor_percent': 40, 'repartition_type': 'tax', 'account_id': company_data['default_account_tax_sale'].id}), (0, 0, {'factor_percent': 60, 'repartition_type': 'tax'})], 'refund_repartition_line_ids': [(0, 0, {'factor_percent': 100, 'repartition_type': 'base'}), (0, 0, {'factor_percent': 40, 'repartition_type': 'tax', 'account_id': company_data['default_account_tax_sale'].id}), (0, 0, {'factor_percent': 60, 'repartition_type': 'tax'})]}), (0, 0, {'name': ('%s (child 2)' % tax_name), 'amount_type': 'percent', 'amount': 10.0, 'tax_exigibility': 'on_payment', 'cash_basis_transition_account_id': company_data['default_account_tax_sale'].copy().id, 'invoice_repartition_line_ids': [(0, 0, {'factor_percent': 100, 'repartition_type': 'base'}), (0, 0, {'factor_percent': 100, 'repartition_type': 'tax', 'account_id': company_data['default_account_tax_sale'].id})], 'refund_repartition_line_ids': [(0, 0, {'factor_percent': 100, 'repartition_type': 'base'}), (0, 0, {'factor_percent': 100, 'repartition_type': 'tax', 'account_id': company_data['default_account_tax_sale'].id})]})]})
@classmethod
def setup_armageddon_tax(cls, tax_name, company_data):
    return cls.env['account.tax'].create({'name': ('%s (group)' % tax_name), 'amount_type': 'group', 'amount': 0.0, 'children_tax_ids': [(0, 0, {'name': ('%s (child 1)' % tax_name), 'amount_type': 'percent', 'amount': 20.0, 'price_include': True, 'include_base_amount': True, 'tax_exigibility': 'on_invoice', 'invoice_repartition_line_ids': [(0, 0, {'factor_percent': 100, 'repartition_type': 'base'}), (0, 0, {'factor_percent': 40, 'repartition_type': 'tax', 'account_id': company_data['default_account_tax_sale'].id}), (0, 0, {'factor_percent': 60, 'repartition_type': 'tax'})], 'refund_repartition_line_ids': [(0, 0, {'factor_percent': 100, 'repartition_type': 'base'}), (0, 0, {'factor_percent': 40, 'repartition_type': 'tax', 'account_id': company_data['default_account_tax_sale'].id}), (0, 0, {'factor_percent': 60, 'repartition_type': 'tax'})]}), (0, 0, {'name': ('%s (child 2)' % tax_name), 'amount_type': 'percent', 'amount': 10.0, 'tax_exigibility': 'on_payment', 'cash_basis_transition_account_id': company_data['default_account_tax_sale'].copy().id, 'invoice_repartition_line_ids': [(0, 0, {'factor_percent': 100, 'repartition_type': 'base'}), (0, 0, {'factor_percent': 100, 'repartition_type': 'tax', 'account_id': company_data['default_account_tax_sale'].id})], 'refund_repartition_line_ids': [(0, 0, {'factor_percent': 100, 'repartition_type': 'base'}), (0, 0, {'factor_percent': 100, 'repartition_type': 'tax', 'account_id': company_data['default_account_tax_sale'].id})]})]})