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

Advance Invoice per percentage - Have the tax included on both Invoice not only on the last one

Suscribirse

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

Se marcó esta pregunta
taxtax_idpercentageinvoice_advance
2 Respuestas
5470 Vistas
Avatar
Selverine

Hi everybody,


I am using the "percentage" mode to do my invoice from my sale order.

Right now I have this:

Sale order price withouth VAT = 1 000 euros. Tax = 210 euros. Total = 12100 euros

With percentage I have for my first Invoice:

Total: 6050 euros , Tax = 0 euros, Withouth VAT =6050  euros

The second Invoice

Total : 6050  euros, Tax = 1210 euros, Without VAT =4840


---QUESTION---


Is it possible to have the VAT not just on the last one but on the first one too?

So to have for both:

TOTAL: 6050 VAT = 1050, Without VAT = 5000


-----CODE--------

I suppose that for it I will have to modify the file sale_make_invoice_advance.py

I will have to change this line ( in order take the unit price without VAT) 

inv_amount = sale.amount_total * wizard.amount / 100

  by   

inv_amount_untaxed = sale.amount_untaxed* wizard.amount / 100

However how can I get the Tax? The code is bellow

if wizard.advance_payment_method == 'percentage':

inv_amount = sale.amount_total * wizard.amount / 100

if not res.get('name'):

res['name'] = _("Advance of %s %%") % (wizard.amount)

else:

inv_amount = wizard.amount

if not res.get('name'):

#TODO: should find a way to call formatLang() from rml_parse

symbol = sale.pricelist_id.currency_id.symbol

if sale.pricelist_id.currency_id.position == 'after':

res['name'] = _("Advance of %s %s") % (inv_amount, symbol)

else:

res['name'] = _("Advance of %s %s") % (symbol, inv_amount)

# determine taxes

if res.get('invoice_line_tax_id'):

res['invoice_line_tax_id'] = [(6, 0, res.get('invoice_line_tax_id'))]

else:

res['invoice_line_tax_id'] = False


Many thanks for your help and yuor time,


Selverine

0
Avatar
Descartar
Ermin Trevisan

A little up for the hope :-).


Thank you!

Avatar
ludolac
Mejor respuesta

Hi Selverine,


Same question and part of solution was here:

https://github.com/odoo/odoo/pull/6073/commits/2ba5e58b6fafa24ffffb233057824074f79f1515



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
[SOLVED] Get and Set default tax by Python command line Resuelto
tax tax_id
Avatar
Avatar
4
ene 16
11220
Create custom Group Tax with custom module Resuelto
tax tax_id account.tax
Avatar
Avatar
1
may 18
6893
Shouldn't the Percentage Downpayment computation in Customer Invoices include taxes?
tax payment down percentage
Avatar
Avatar
Avatar
Avatar
4
jul 24
3760
"Incompatible companies on records" when adding "tax_id" to an order line through API
orders tax tax_id order.line
Avatar
0
abr 24
1909
Odoo custom module fix taxes order line?
code tax order tax_id 13
Avatar
Avatar
2
ene 20
5763
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.

Sitio web hecho con

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