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
    • 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
    • Inteligencia artificial
    • IoT
    • VoIP
    • Información
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Sectores
    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
    • Asesoría 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 corporativos
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Oficios
    • Servicios de mantenimiento
    • 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 vallas publicitarias
    • 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 asesoría 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
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Sobre este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Sobre este foro
Ayuda

Can't create section in line. (odoo v14)

Suscribirse

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

Esta pregunta ha sido marcada
sale.order.linesectionv14
5126 Vistas
Avatar
Siddharth Tarpada, Siddharth Tarpada

I need to add product section wise in my module same as Sale order line in addons. But I think something is missing in my coding because when I want to add section and after that I add product at that time section field can't save and removed from order line and replaced by product field. 


.py File :-

class BookingLines(models.Model):

    _name = 'booking.lines'

    _description = "Order Lines For Movie Ticket"


    booking_id = fields.Many2one('theater.booking')

    show_id = fields.Many2one('theater.show', required=True)

    name = fields.Text(string='Description', index=True, required=True)

    sequence = fields.Integer(string='Sequence', default=1)

    display_type = fields.Selection([

        ('line_section', "Section"),

        ('line_note', "Note")], default=False, help="Technical field for UX purpose.")

    date = fields.Many2one('daily.shows', string="Date", required=True, domain="[('show_id','=',show_id)]")

    venue = fields.Many2one(related="date.shift", string="Screen", required=True)

    qty = fields.Integer(string="Quantity", default=1)

    price = fields.Float(related='date.shift.lst_price', string="Price", default=0.00)

    subtotal = fields.Float(string="Subtotal", compute='compute_subtotal')


.xml File :-

                        <page string="Order Lines" name="order_summary">

                            <field name="booking_lines" widget="section_and_note_one2many">

                                <tree editable="bottom">

                                    <control>

                                        <create name="add_product_control" string="Add a Product"/>

                                        <create name="add_section_control" string="Add a section" context="{'default_display_type': 'line_section'}"/>

                                    </control>

                                    <field name="sequence" widget="handle"/>

                                    <field name="display_type" invisible="1"/>

                                    <field name="name" widget="section_and_note_text" optional="show"/>

                                    <field name="booking_id" invisible='1'/>

                                    <field name="show_id" attrs="{

                                            'required': [('display_type', '=', False)],

                                        }"  options="{'no_open': True}" force_save="1" widget="product_configurator"/>

                                    <field name="date"/>

                                    <field name="venue"/>

                                    <field name="qty"/>

                                    <field name="price"/>

                                    <field name="subtotal"/>

                                </tree>

                            </field>

                        </page>

0
Avatar
Descartar
Scott Hart

Yeah I'm having the same issue. According to the videos and pictures I've seen the box should popup, you add and hit confrim. I have no confirm button at all. Haven't changed anything, so dunno...

¿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
Override add_product_control in Sale order view
sale.order.line v14
Avatar
0
abr 21
2297
add subtotal per section in sale order line
sale.order.line sales.order sale_order_line section
Avatar
Avatar
1
nov 23
4320
hide lines in tree view
treeview sale.order.line invisible v14
Avatar
Avatar
1
mar 22
3829
How to create a section in sale order line by programatically in odoo12? Resuelto
sale sale.order.line section odoo12
Avatar
Avatar
Avatar
4
sept 21
14227
In user settings access group check box changed to list view how can i change back it to checkbox
v14
Avatar
Avatar
Avatar
Avatar
3
jun 26
6033
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 Svenska ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones empresariales de código abierto que cubre 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