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

Is there a way to remove the sheet tags from a existing form view?

Suscribirse

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

Se marcó esta pregunta
sheetformviewodoo10
6 Respuestas
5044 Vistas
Avatar
Samo Arko

I need more space for my timesheets in the project.task module in the task form view. So I need this view without the "<sheet></sheet>" tags.

I know I could inherit the view and replace the sheet with the all the code from the inherited view without the sheet tags.

But the problem is I've extended the original project.task form view with 2 or 3 different custom modules.

So is there a way that I could just remove the tags without hiding the content between the tags? And not with debug mode and editting the form view. 

0
Avatar
Descartar
Samo Arko
Autor

Never done anything like that. Can this be done with a custom module and not rewriting the original code. Won't there be problem with duplicated ids? Is there any working example?

Avatar
Dipak Shah
Mejor respuesta

Hello, This will help you.


   @ api.model
   def fields_view_get (self, view_id = None, view_type = 'form', toolbar = False,                                                           submenu=False):
            res = super (SaleOrder, self) .fields_view_get (view_id = view_id, view_type = view_type,             toolbar =   toolbar,submenu=submenu)

            if view_type == 'form' and 'arch' in res:
               xml_arch_data = res ['arch']
               xml_arch_data = xml_arch_data.replace ("", '')
               final_xml_data = xml_arch_data.replace ("< / sheet> ", '')
               res ['arch'] = final_xml_data
       return res



1
Avatar
Descartar
Jérôme Thériault

This... removes the commas in the arch node? Twice? WHAT!?

Dipak Shah

This is perfect code. due to some issue some code is getting removed from answer section. so updating proper answer here.

@api.model
def fields_view_get(self, view_id=None, view_type='form', toolbar=False,submenu=False):
res = super(SaleOrder, self).fields_view_get(
view_id=view_id, view_type=view_type, toolbar=toolbar,
submenu=submenu)

if view_type == 'form' and 'arch' in res:
xml_arch_data = res['arch']
xml_arch_data = xml_arch_data.replace("<sheet>", '')
final_xml_data = xml_arch_data.replace("</sheet>", '')
res['arch'] = final_xml_data
return res

Thanks.

Avatar
Jérôme Thériault
Mejor respuesta

Without removing the tags, you can expand the sheet width to the maximum with this small module:

https://www.odoo.com/apps/modules/11.0/web_sheet_full_width/

If you're using v12.0, this module has been integrated in this other module:

https://www.odoo.com/apps/modules/12.0/web_responsive/

0
Avatar
Descartar
Avatar
Jagdish Panchal
Mejor respuesta

Hello

Yes you can remove using fields_view_get method

-1
Avatar
Descartar
Samo Arko
Autor

an example would be nice

¿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
Can one change the form view that is displayed on a NOT editable list?
listview formview odoo10
Avatar
0
nov 19
4516
How to perform some action inside form view in odoo 10 using javascript?
javascript formview odoo10
Avatar
Avatar
3
feb 19
7881
How to hide the text in company form view bellow currency? Resuelto
company formview odoo10
Avatar
Avatar
1
ago 18
4758
How to extend/inherit form_view.js
js formview odoo10
Avatar
0
feb 18
5429
How to display columns (street) of partners shipping address in sale order view
views formview odoo10
Avatar
Avatar
Avatar
2
nov 17
10007
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