Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyectos
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

How to show sum of tax groups in Quotations view and report

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
taxreportquotationcalculation
5 Respuestas
19445 Vistas
Avatar
Perino

The standard quotation view shows eg:

Product | Description | Quantity | Unit Price | Taxes | Subtotal


                                                               untaxed Amount:

                                                                                Taxes:

                                                                                 Total:


We have 2 different kind of tax groups and they must be separeted in the total tax calculation. This is an order of the local
tax authority. So there is the tax group with VAT 20% and another taxgroup with lets call it WA 5%.

Right now, the taxes in the quotations will be right calculated, but they will displayed as sum in the field 'Taxes' (before Total).
We have to display the sum of VAT 20% and the sum of WA 5%. It would look like this:

Product | Description | Quantity | Unit Price | Taxes | Subtotal


                                                                 untaxed Amount:

                                                                            VAT   5%:

                                                                            VAT 20%:

                                                                                   Total:


How can I achieve that in the Quotations View as well as in the Quotations report?

3
Avatar
Descartar
Michael Schweikart

Hi, did you solved your requirements? best regards

Avatar
Bessam Djerad
Mejor respuesta

I know the question was asked long time ago but may be someone will search for the same question and I think there is a more efficient solution by replacing the tax line in the invoice by:

    <t t-foreach="request.env['account.tax'].search([])" t-as="obj">
        <t t-foreach="o.tax_line_ids" t-as="tl">
            <t t-if="obj.name == tl.name">
                <tr style="border-bottom:1px solid #dddddd;">
                        <td><span t-esc="tl.name"/></td>
                        <td class="text-right">
                            <span t-esc="tl.amount" t-options="{&quot;widget&quot;: &quot;monetary&quot;, &quot;display_currency&quot;: o.currency_id}"/>
                        </td>

                </tr>
            </t>
        </t>
    </t>

1
Avatar
Descartar
Avatar
Akhil P Sivan
Mejor respuesta

Hi,

I hope you need like this: 

Form view 

Report 

For that you can create two compute fields in purchase.order model, that calculates the sum of each tax groups in the product lines. Then you need to call these fields in the form view and reports. Try like this:

in .py file

class purchase_order(models.Model):
_inherit = 'purchase.order'

tax_t1 = fields.Float(compute='_compute_tax', string="VAT5%")
tax_t2 = fields.Float(compute='_compute_tax', string="VAT20%")

@api.one
@api.depends('order_line')
def _compute_tax(self):

sum_v5 = 0
sum_v20 = 0
for rec in self.order_line:
if rec.taxes_id:
for tax in rec.taxes_id:
if tax.name == "VAT5":
sum_v5 = sum_v5 + (rec.price_subtotal * tax.amount)
elif tax.name == "VAT20":
sum_v20 = sum_v20 + (rec.price_subtotal * tax.amount)
self.tax_t1 = sum_v5
self.tax_t2 = sum_v20

in xml view file:

<record id="purchase_order_form_inherited" model="ir.ui.view">
<field name="name">purchase.order.form.inherited</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<field name="amount_tax" position="replace">
<field name="tax_t1" widget="monetary" options="{'currency_field': 'currency_id'}"/>
<field name="tax_t2" widget="monetary" options="{'currency_field': 'currency_id'}"/>
</field>
</field>
</record>

create an xml file to override the purchase order report (for eg: views/custom_purchase_order.xml) and put the following code:

<openerp>
<data>
<template id="report_purchaseorder_document_inherited" inherit_id="purchase.report_purchaseorder_document">
<xpath expr="//t/div/div[4]/div/table[@class='table table-condensed']/tr[2]" position="replace">
<tr>
<td>VAT 5%</td>
<td class="text-right">
<span t-field="o.tax_t1"
t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/>
</td>
</tr>
<tr>
<td>VAT 20%</td>
<td class="text-right">
<span t-field="o.tax_t2"
t-field-options='{"widget": "monetary", "display_currency": "o.pricelist_id.currency_id"}'/>
</td>
</tr>

</xpath>
</template>
</data>
</openerp>

Don't forget to include this file in __openerp__.py. This will override the purchase order report with new tax fields.


You can also override quotations report similarly.

Hope this helps!

3
Avatar
Descartar
Michael Schweikart

thank you this helps a lot

Avatar
YannCopp
Mejor respuesta

For Odoo 9 in SALE.ORDER ?

0
Avatar
Descartar
¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
How can I edit Sales Tax so that it doesn't show the rate, just the word "Tax"? Resuelto
invoice tax quotation
Avatar
Avatar
1
oct 25
3864
How can we add Tax in Amount and also showcase in the tax report
accounting tax report
Avatar
Avatar
2
feb 24
3360
VAT book report [ES] / Libro de IVA [ES]
tax vat report
Avatar
Avatar
1
may 23
3196
Odoo14 Accounting UK HMRC reports
accounting tax report
Avatar
Avatar
2
jun 21
3881
Variable tax based on total monthly sales
tax monthly calculation
Avatar
Avatar
1
mar 21
3658
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y estar totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now