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 there any easy way to have Analytic Account and Analytic Tag 'default' at the PO level (instead of having to add it on each line)?

Inscrever

Seja notificado quando houver atividade nesta publicação

Esta pergunta foi sinalizada
analyticalpurchase_order
3 Respostas
13214 Visualizações
Avatar
Malik Sikandar Hayat

Hi,

Is there a way we can move analytical account and tag in the PO header instead of line. In lengthy PO same values are need to be selected for each line to avoid this if we can move in header or create custom in header and assign value to lines. Kindly share possible solution. thanks

1
Avatar
Cancelar
Kévin Pouilliau

Hello,

It was working perfectly in V12 but does not seem to work anymore in V13?

Any feedback?

Thanks

Ray Carnes (ray)

I just tried this at v13. It still works. Please retrace your steps and if you are having problems, create a NEW question that links to this one, sharing your steps with more detail than "does not seem to work" as it is very challenging to know what the problem is: Does the field show on the screen? Can you select an Account? Does the Analytic Account field show on the line? Does a value get populated? Does the incorrect value get populated? Is there any error? etc.

Kévin Pouilliau

With the same setup ... the field analytic account on the order line does not populate In V13 even if it was well the case in the V12. Same DB just migrated in V13

Kévin Pouilliau

It works in V13 if we do the update directly in the form view of the PO... If I try to do the update the context of the order line via Studio like in V12 it does not work however... Whatever it still works via the form view update.

Avatar
Ray Carnes
Melhor resposta

1. Create a new field on the Purchase Order model to store the Analytic Account Default:



2. Add this new field to the Purchase Order view:

(You would create your own view that inherits the standard view and add the new field at the position you like):

<field name="x_account_analytic_account"/>


3. Set the context for the order_line field so that it picks up the value selected in the new field:

context="{'default_account_analytic_id': x_account_analytic_account,}"


4. As soon as you Add an Item on the Purchase Order, the account_analytic_id field on the Purchase Order Line will be populated:

 


You can do the same for the analytic_tag_ids field.

1
Avatar
Cancelar
Malik Sikandar Hayat
Autor

Hi Ray Carnes,

Excellent demonstration of the point but seems I am missing something as tried on both community and enterprise but getting error when I click in the lines analytic filed as nothing getting defaulted,

Uncaught Error: NameError: name 'x_account_analytic_account' is not defined

View changes,

<field name="partner_ref"/>

<field name="x_account_analytic_account"/>

<field name="currency_id" groups="base.group_multi_currency"/>

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

<field name="account_analytic_id" context="{'default_account_analytic_id': x_account_analytic_account,}" groups="purchase.group_analytic_accounting"/>

Few points need to clear,

1- this filed should be created under which model purchase order or purchase order line?

2 - context="{'default_account_analytic_id': x_account_analytic_account,}" << this comma should be there or should be removed?

3- the field already having one context so how to add another,

<field name="account_analytic_id" context="{'default_partner_id':parent.partner_id}" groups="purchase.group_analytic_accounting"/>

I think I am missing something may be very small change will solve the problem. I have both enterprise and community versions.

thanks

Malik Sikandar Hayat
Autor

I was missing this "Set the context for the order_line field". thanks

Avatar
Daniel Mendez
Melhor resposta

Any idea of how to do this on Odoo enterprise 16?

Thanks

0
Avatar
Cancelar
Asha

Did you get any solution?

Avatar
mahmood fawzi
Melhor resposta

Dear Mr. Sikandar

the context should be in the order_line field not in the analytic_account field the below code should be there:

<field name="order_line" attrs="{'readonly': [('state', 'in', ('done', 'cancel'))]}" context="{'default_account_analytic_id': x_account_analytic_account}">

the code has been tested and its working perfect,

thanks Mr. Ray

                         

0
Avatar
Cancelar
Malik Sikandar Hayat
Autor

True that was mistake. thanks

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
Is there a step by step tutorial about Analytic Accounting in Odoo 18?
analytical
Avatar
Avatar
Avatar
2
mai. 25
6319
importing Purchase Order shown as a RFQ Resolvido
purchase_order
Avatar
Avatar
Avatar
2
mai. 25
2923
Create a PO without adding products to stock
purchase_order
Avatar
Avatar
Avatar
Avatar
3
dez. 24
8590
How do I replace the default Purchase Order number? Resolvido
purchase_order
Avatar
Avatar
1
jul. 24
4340
Purchase Product Description Incorrect Resolvido
purchase_order
Avatar
Avatar
1
jun. 24
2727
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