Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Cervecería
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y soporte técnico
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Explorar todos los sectores
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Servicios para partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar 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
  • Proyecto
  • 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 price including tax in invoice (Accounting)

Suscribirse

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

Se marcó esta pregunta
salesaccountingtaxv14
2 Respuestas
6005 Vistas
Avatar
Nikita

In the Sales module, I can add the calculated tax as a column to the Order lines table (Field name is price_tax)
However, I can't find such a field in the Accounting module. I want to add it to Invoice lines and use it when printing reports.


Is it possible to do this through Studio? If not, how can it be done with code?

0
Avatar
Descartar
Nikita
Autor

I can do it in Sales module https://prnt.sc/LokseqTbV5Yd
But I’m looking opportunity to add a similar field to Accounting module

Avatar
Siddharth Tarpada
Mejor respuesta

Hello Nikita,

You can do this via Code. You need to add new field for total taxes in py and xml file of account.move.line and create compute method to calculate taxes per line.

Refer below example to calculate total taxes in acount.move.line.

Thanks, (Siddharth Tarpada)

1
Avatar
Descartar
Siddharth Tarpada

total_taxes = fields.Monetary('Total taxes', compute='compute_total_taxes')

@api.depends('tax_ids', 'quantity', 'discount', 'price_unit')
def compute_total_taxes(self):
for res in self:
line_discount_price_unit = res.price_unit * (1 - (res.discount / 100.0))
if res.tax_ids:
taxes_res = res.tax_ids._origin.with_context(force_sign=1).compute_all(line_discount_price_unit,
quantity=res.quantity, currency=res.currency_id, product=res.product_id, partner=res.partner_id, is_refund=res.move_id.move_type in ('out_refund', 'in_refund'))

res.total_taxes = sum([tax['amount'] for tax in taxes_res['taxes']])
else:
res.total_taxes = 0.0

Avatar
Hamid Ahmadimoghaddam
Mejor respuesta

Hi Nikita,

maybe this module can do this for you:

https://apps.odoo.com/apps/modules/14.0/account_invoice_line_tax/

0
Avatar
Descartar
Nikita
Autor

In this module, the tax field is added to other modules, but not to the accounting module
I'm looking for an opportunity to do the same, but in the accounting module

Hamid Ahmadimoghaddam

Sorry I don't get it; the field is visible in the invoice (backend and report). Isn't it what you want?

Nikita
Autor

It is how Invoice line look in Accounting
https://prnt.sc/msXE9w1phRu0
I want to add column in which the calculated value from tax will be displayed. In this case, one line will be 84500 (5% of 1690000) And the second line will be 6870.7

This column(Total tax) was hidden in the Sales module. I opened it and now the table looks like this https://prnt.sc/LokseqTbV5Yd . I want do same with Accounting Invoice lines

Hamid Ahmadimoghaddam

again, the above module is adding this total tax to sales, purchase as well as invoice. if you want to make it visible and invisible like the three dots, you can give the attribute optional (hide/show) to the field in the view, so that you can (de-)select it.

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

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

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
How can send / receive Peppol Invoices in Odoo? Is it free? Which App / module? Resuelto
sales accounting
Avatar
Avatar
Avatar
2
nov 25
2674
Warehouse on Product lines level
sales accounting
Avatar
Avatar
Avatar
2
oct 25
739
Confusion regarding Product Categories and E-commerce Categories
sales accounting
Avatar
Avatar
Avatar
3
oct 25
862
Can I use custom fields and Python to calculate Sales Tax? Resuelto
sales accounting
Avatar
Avatar
2
ago 25
1349
Cambio de moneda en la factura, no funciona.
sales accounting
Avatar
Avatar
1
ago 25
878
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información 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 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