Pular para o conteúdo
Odoo Menu
  • Entrar
  • Experimente grátis
  • Aplicativos
    Finanças
    • Financeiro
    • Faturamento
    • Despesas
    • Planilhas (BI)
    • Documentos
    • Assinar Documentos
    Vendas
    • CRM
    • Vendas
    • PDV Loja
    • PDV Restaurantes
    • Assinaturas
    • Locação
    Websites
    • Criador de Sites
    • e-Commerce
    • Blog
    • Fórum
    • Chat ao Vivo
    • e-Learning
    Cadeia de mantimentos
    • Inventário
    • Fabricação
    • PLM - Ciclo de Vida do Produto
    • Compras
    • Manutenção
    • Qualidade
    Recursos Humanos
    • Funcionários
    • Recrutamento
    • Folgas
    • Avaliações
    • Indicações
    • Frota
    Marketing
    • Redes Sociais
    • Marketing por E-mail
    • Marketing por SMS
    • Eventos
    • Automação de Marketing
    • Pesquisas
    Serviços
    • Projeto
    • Planilhas de Horas
    • Serviço de Campo
    • Central de Ajuda
    • Planejamento
    • Compromissos
    Produtividade
    • Mensagens
    • Aprovações
    • Internet das Coisas
    • VoIP
    • Conhecimento
    • WhatsApp
    Aplicativos de terceiros Odoo Studio Plataforma Odoo Cloud
  • Setores
    Varejo
    • Loja de livros
    • Loja de roupas
    • Loja de móveis
    • Mercearia
    • Loja de ferramentas
    • Loja de brinquedos
    Comida e hospitalidade
    • Bar e Pub
    • Restaurante
    • Fast Food
    • Hospedagem
    • Distribuidor de bebidas
    • Hotel
    Imóveis
    • Imobiliária
    • Escritório de arquitetura
    • Construção
    • Administração de propriedades
    • Jardinagem
    • Associação de proprietários de imóveis
    Consultoria
    • Escritório de Contabilidade
    • Parceiro Odoo
    • Agência de marketing
    • Escritório de advocacia
    • Aquisição de talentos
    • Auditoria e Certificação
    Fabricação
    • Têxtil
    • Metal
    • Móveis
    • Alimentação
    • Cervejaria
    • Presentes corporativos
    Saúde e Boa forma
    • Clube esportivo
    • Loja de óculos
    • Academia
    • Profissionais de bem-estar
    • Farmácia
    • Salão de cabeleireiro
    Comércio
    • Handyman
    • Hardware e Suporte de TI
    • Sistemas de energia solar
    • Sapataria
    • Serviços de limpeza
    • Serviços de climatização
    Outros
    • Organização sem fins lucrativos
    • Agência Ambiental
    • Aluguel de outdoors
    • Fotografia
    • Aluguel de bicicletas
    • Revendedor de software
    Navegar por todos os setores
  • Comunidade
    Aprenda
    • Tutoriais
    • Documentação
    • Certificações
    • Treinamento
    • Blog
    • Podcast
    Empodere a Educação
    • Programa de educação
    • Scale Up! Jogo de Negócios
    • Visite a Odoo
    Obtenha o Software
    • Baixar
    • Comparar edições
    • Releases
    Colaborar
    • Github
    • Fórum
    • Eventos
    • Traduções
    • Torne-se um parceiro
    • Serviços para parceiros
    • Cadastre seu escritório contábil
    Obtenha os serviços
    • Encontre um parceiro
    • Encontre um Contador
    • Conheça um consultor
    • Serviços de Implementação
    • Referências de Clientes
    • Suporte
    • Upgrades
    Github YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Faça uma demonstração
  • Preços
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Financeiro
  • Inventário
  • PoS
  • Projeto
  • MRP
All apps
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
É necessário estar registrado para interagir com a comunidade.
Todas as publicações Pessoas Emblemas
Marcadores (Ver tudo)
odoo accounting v14 pos v15
Sobre este fórum
Ajuda

Is it possible to position the print button on the right in odoo 18 as in odoo 16 and display the description in the sale.order.line table as a separate column?

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
sales
1 Responder
1796 Visualizações
Avatar
Martin Bando

How can I move the print symbol from the left to the right site in header? it should be displayed separately from all other menu items.

In addition, I would like to know how I can display the description in the sale.order.line table as a separate column. Currently the description is displayed directly below the product. However, it should be displayed to the right of the product column. 

I would be very happy about your help. Many thanks in advance


0
Avatar
Cancelar
ODOO_Aspirant

For the first point-  Did you tried in STUDIO

Martin Bando
Autor

Hello, 

yes I have, the description is always displayed underneath.

This allows me to omit the field, for example. Is that perhaps a Javascript behind it that sets the formatting? How can I work around this?

        <record id="mymodul_sale_management_sale_order_form_quote" model="ir.ui.view">

            <field name="name">mymodul.sale.management.sale.order.form.quote</field>

            <field name="model">sale.order</field>

            <field name="inherit_id" ref="sale_management.sale_order_form_quote"/>

            <field name="arch" type="xml">   

                <xpath expr="//field[@name='order_line']/list/field[@name='name']" position="attributes">

                    <attribute name="column_invisible">1</attribute>

                </xpath>     

            </field>

        </record> 

Avatar
D Enterprise
Melhor resposta

Hii,

Add a Custom Print Button on the Right
There is no built-in support to float header buttons individually. But you can:

  • Add a custom Print button to the header.
  • Hide the default Print menu if needed

Example:
<record id="custom_sale_order_form_view" model="ir.ui.view">

    <field name="name">sale.order.form.print.right</field>

    <field name="model">sale.order</field>

    <field name="inherit_id" ref="sale.view_order_form"/>

    <field name="arch" type="xml">

        <xpath expr="//header" position="inside">

            <button name="%(sale.action_report_saleorder)d"

                    type="action"

                    string="Print"

                    class="btn btn-primary o_form_button_right"

                    context="{'report_type': 'pdf'}"/>

        </xpath>

    </field>

</record>

Then add CSS like this to align it to the right (in your custom module's static/src/css/style.css):
.o_form_button_right {

    margin-left: auto;

    margin-right: 0;

}


Or override the layout with OWL if you're targeting Odoo 16+ and need full control.

Display sale.order.line Description in a Separate Column
Odoo always renders name under product_id in the sales order. To work around this:
Create a custom field like x_description and use that
# Inherit sale.order.line and add a computed field

class SaleOrderLine(models.Model):

    _inherit = 'sale.order.line'


    x_description = fields.Text(string="Description", compute="_compute_x_description")


    def _compute_x_description(self):

        for line in self:

            line.x_description = line.name


XML:
<record id="custom_sale_order_form_quote" model="ir.ui.view">

    <field name="name">custom.sale.order.form.quote</field>

    <field name="model">sale.order</field>

    <field name="inherit_id" ref="sale_management.sale_order_form_quote"/>

    <field name="arch" type="xml">

        <!-- Hide inline 'name' under product -->

        <xpath expr="//field[@name='order_line']/tree/field[@name='name']" position="attributes">

            <attribute name="invisible">1</attribute>

        </xpath>


        <!-- Add 'x_description' as its own column -->

        <xpath expr="//field[@name='order_line']/tree/field[@name='product_id']" position="after">

            <field name="x_description" string="Description"/>

        </xpath>

    </field>

</record>


i hope it is help full

0
Avatar
Cancelar
Está gostando da discussão? Não fique apenas lendo, participe!

Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!

Inscreva-se
Publicações relacionadas Respostas Visualizações Atividade
How to allow quotation requests (RFQ) from the eCommerce instead of direct sales
sales
Avatar
Avatar
Avatar
2
dez. 25
1519
Is there a way to sell the same product both as a recurring subscription and as a one-time purchase?
sales
Avatar
Avatar
1
nov. 25
566
Cannot make Sales Quotation to one Customer
sales
Avatar
Avatar
2
nov. 25
667
Products Image
sales
Avatar
Avatar
2
out. 25
690
Edit the Sign & accept quotation button
sales
Avatar
0
out. 25
1664
Comunidade
  • Tutoriais
  • Documentação
  • Fórum
Open Source
  • Baixar
  • Github
  • Runbot
  • Traduções
Serviços
  • Odoo.sh Hosting
  • Suporte
  • Upgrade
  • Desenvolvimentos personalizados
  • Educação
  • Encontre um Contador
  • Encontre um parceiro
  • Torne-se um parceiro
Sobre nós
  • Nossa empresa
  • Ativos da marca
  • Contato
  • Empregos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Legal • Privacidade
  • Segurança
الْعَرَبيّة 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 é um conjunto de aplicativos de negócios em código aberto que cobre todas as necessidades de sua empresa: CRM, comércio eletrônico, contabilidade, estoque, ponto de venda, gerenciamento de projetos, etc.

A proposta de valor exclusiva Odoo é ser, ao mesmo tempo, muito fácil de usar e totalmente integrado.

Site feito com

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