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 I can edit view web sale?

Suscribirse

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

Se marcó esta pregunta
websale
2 Respuestas
2795 Vistas
Avatar
Luis F Hurtado

I want to extend my order.lines form view in my sales module.


Currently I have, my order.lines form and to the right is an empty space where the record history was going. I want to take advantage of that space and extend my order.lines form.

0
Avatar
Descartar
Avatar
Odiware Technologies
Mejor respuesta

1. Extend the Order Lines Form View Layout

Odoo’s form views use groups and notebook tabs to structure content. To extend the view:

📌 Steps:

  1. Inherit the sale.order.line form view to modify its layout.
  2. Use a two-column structure to occupy the empty space.
  3. Add new fields or sections to use the available area.

📌 Example XML Code (Extend the Order Line Form View):

xml

CopyEdit

<?xml version="1.0" encoding="utf-8"?> <odoo> <record id="view_order_line_form_extended" model="ir.ui.view"> <field name="name">sale.order.line.form.extended</field> <field name="model">sale.order.line</field> <field name="inherit_id" ref="sale.view_order_line_form"/> <field name="arch" type="xml"> <!-- Extend the main form layout --> <xpath expr="//sheet/group" position="attributes"> <attribute name="colspan">2</attribute> </xpath> <!-- Add extra fields or sections to the right --> <xpath expr="//sheet/group" position="after"> <group colspan="2"> <group> <field name="custom_field_1"/> <field name="custom_field_2"/> </group> <group> <field name="custom_notes" widget="text"/> </group> </group> </xpath> </field> </record> </odoo>

2. Add New Fields to Use the Extra Space

To fully utilize the extended area, define custom fields in your Python model (sale.order.line):

📌 Example Python Code (Adding New Fields):

python

CopyEdit

from odoo import models, fields class SaleOrderLine(models.Model): _inherit = 'sale.order.line' custom_field_1 = fields.Char(string="Custom Info") custom_field_2 = fields.Float(string="Extra Price") custom_notes = fields.Text(string="Additional Notes")

3. Restart Odoo & Update the Module

After adding the XML and Python changes:

  1. Restart the Odoo service:

    bash

    CopyEdit

    odoo-bin -u your_module_name --stop-after-init

  2. Clear browser cache and refresh the Sales Order form view.

0
Avatar
Descartar
Avatar
Ritik (Wan Buffer Services)
Mejor respuesta

Solution for Editing the Web Sale View in Odoo

If you want to edit the view of the Odoo eCommerce (Web Sale) module, follow these steps:

1. Enable Developer Mode

  • Go to Settings > General Settings
  • Scroll down and activate Developer Mode

2. Locate the View in Website Builder

  • Navigate to Website > Customize
  • Select HTML/CSS/JS Editor (if using Website Builder)
  • Modify the QWeb templates

3. Modify the View from Backend (XML Templates)

  • Go to Settings > Technical > User Interface > Views
  • Search for views like:
    • website_sale.product (for product page)
    • website_sale.cart (for the cart page)
    • website_sale.checkout (for checkout page)
  • Edit the XML code to customize the UI

4. Use a Custom Module (For Advanced Customization)

If you need deeper customization, create a custom module to override the view.

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 to use dynamic snippet for local Seo
web
Avatar
Avatar
2
jul 25
2506
European Accessibility Act compliance
web
Avatar
1
may 25
1811
Issue After Migration: Unable to Save Sales Order in v18 Resuelto
sale
Avatar
Avatar
1
may 25
2041
How to import owl CharField?
web
Avatar
Avatar
2
may 25
2448
How to set serial numbers for the sale order line
sale
Avatar
Avatar
Avatar
2
feb 25
11016
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