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

Remove Currency Symbol in Monetary Fields

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
fieldcurrencyremovemonetarysymbol
6 Respostas
7505 Visualizações
Avatar
ESHANG Harshana

Hi Guys,

I need to remove the currency symbol for a specific monetary field.

Is this possible?


Please note that this is for a form view and not for a QWEB view.


Thank you

Eshan Harshana


0
Avatar
Cancelar
Cybrosys Techno Solutions Pvt.Ltd

https://www.odoo.com/forum/help-1/solved-how-to-remove-currency-symbol-from-monetary-field-qweb-report-98462

Jenish M

@ESHANG Harshana is asked for form view but this link is for QWEB!

Avatar
Cybrosys Techno Solutions Pvt.Ltd
Melhor resposta

Hi,
Try this  code
Edit the XML View:
Find the field you want to modify.
It should look something like this in the XML view: 

<field name="amount_total" />

Add the options attribute to the field definition, specifying the 'currency_no_symbol' option:

<field name="amount_total" options="{'currency_no_symbol': True}" />

 

By adding this attribute with the 'currency_no_symbol' option, you are instructing Odoo to display the monetary value without the currency symbol.

Hope it helps

0
Avatar
Cancelar
Avatar
Rafael Krupinski
Melhor resposta
<span t-field="line.price_subtotal" t-options='{"widget": "float", "precision": 2}'/>


I think form should support the same options


odoo 17

3
Avatar
Cancelar
Avatar
Ufuk Togay
Melhor resposta

I have found another solution. Add below code to your model:

    def formatted_amount(self):

        return self.env['ir.qweb.field.monetary'].value_to_html(

            self.amount,

            {

                'currency': self.currency_id,

                'display_currency': self.currency_id

            }

        ).replace(self.currency_id.symbol, '').strip()

 And then use it like this:

<td class="text-end font-monospace" >

      <t t-esc="record.formatted_amount()" />

</td>​​

A bit tricky but couldn't get other suggestions work.

0
Avatar
Cancelar
Avatar
Ismael C
Melhor resposta

Hi, to remove currency symbols from models, try this solution, it worked.

example for a qweb field model in xml:   

"line.price.replace('€', '')" /> 

( replace  '€' with the currency symbol you use)

0
Avatar
Cancelar
Avatar
Jenish M
Melhor resposta

In the xml use widget="float" in the specific monetary field

example:

       field name="your_field" widget="float"/>

0
Avatar
Cancelar
Avatar
Michael Hofer
Melhor resposta

I have tried the solution from Cybrosys, but it does not work:

span t-field="line.price_total" groups="account.group_show_line_subtotals_tax_included" t-field-options="{'widget': False}"/

Have you ever managed to find a way how to hide the symbol?


Apologies for the weird formatting - Odoo strips all tags in the answer, even when it's formatted as code.

0
Avatar
Cancelar
Michael Hofer

I have seen that there is a `no_symbol` Option: https://github.com/odoo/odoo/blob/c00baa010e7981f16bf3047cee6aaee1fc0f7495/addons/web/static/tests/views/fields/monetary_field_tests.js#L930

However, I haven't found a way to use this in a QWeb view. Does anybody have a working solution?

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 can i display company default currency symbol in my inherited views?
currency symbol
Avatar
Avatar
1
mar. 15
6689
Symbol of local currency AFTER the digits? Resolvido
currency symbol Community
Avatar
Avatar
1
set. 17
7162
How to display Currency Logo After Custom Field in ODOO 10.
currency monetary odoo10
Avatar
Avatar
1
ago. 17
14289
How to show a symbol inside a field like with the monetary widget? Resolvido
widget field monetary
Avatar
Avatar
1
mai. 17
5316
[8.0] Currency position / Symbol Position - left to right Resolvido
currency position symbol
Avatar
Avatar
1
jun. 16
11073
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