Přejít na obsah
Odoo Menu
  • Přihlásit se
  • Vyzkoušejte zdarma
  • Aplikace
    Finance
    • Účetnictví
    • Fakturace
    • Výdaje
    • Spreadsheet (BI)
    • Dokumenty
    • Podpisy
    Prodej
    • CRM
    • Prodej
    • POS Obchod
    • POS Restaurace
    • Předplatné
    • Pronájem
    Webové stránky
    • Webové stránky
    • E-shop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Dodavatelský řetězec
    • Sklad
    • Výroba
    • PLM
    • Nákup
    • Údržba
    • Kvalita
    Lidské zdroje
    • Zaměstnanci
    • Nábor
    • Volno
    • Hodnocení zaměstnanců
    • Doporučení
    • Vozový park
    Marketing
    • Marketing sociálních sítí
    • Emailový marketing
    • SMS Marketing
    • Události
    • Marketingová automatizace
    • Dotazníky
    Služby
    • Projekt
    • Časové výkazy
    • Práce v terénu
    • Helpdesk
    • Plánování
    • Schůzky
    Produktivita
    • Diskuze
    • Schvalování
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Aplikace třetích stran Odoo Studio Odoo cloudová platforma
  • Branže
    Maloobchod
    • Knihkupectví
    • Obchod s oblečením
    • Obchod s nábytkem
    • Potraviny
    • Obchod s hardwarem
    • Hračkářství
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • Komunita
    Edukační program
    • Tutoriály
    • Dokumentace
    • Certifikace
    • Vzdělávání
    • Blog
    • Podcast
    Podpora vzdělávání
    • Vzdělávací program
    • Scale Up! Hra na firmu
    • Navštivte Odoo
    Získat software
    • Stáhnout
    • Porovnejte edice
    • Verze
    Spolupráce
    • Github
    • Fórum
    • Události
    • Překlady
    • Stát se partnerem
    • Služby pro partnery
    • Registrujte svou účetní firmu
    Získat služby
    • Najít partnera
    • Najít účetní
    • Setkejte se s poradcem
    • Implementační služby
    • Zákaznické reference
    • Podpora
    • Upgrady
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Dohodnout demo
  • Ceník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účetnictví
  • Sklad
  • PoS
  • Projekty
  • MRP
All apps
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
You need to be registered to interact with the community.
All Posts Lidé Odznaky
Štítky (View all)
odoo accounting v14 pos v15
O tomto fóru
Pomoc

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)?

Odebírat

Get notified when there's activity on this post

This question has been flagged
analyticalpurchase_order
3 Odpovědi
13223 Zobrazení
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
Zrušit
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
Nejlepší odpověď

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
Zrušit
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
Nejlepší odpověď

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

Thanks

0
Avatar
Zrušit
Asha

Did you get any solution?

Avatar
mahmood fawzi
Nejlepší odpověď

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
Zrušit
Malik Sikandar Hayat
Autor

True that was mistake. thanks

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
Is there a step by step tutorial about Analytic Accounting in Odoo 18?
analytical
Avatar
Avatar
Avatar
2
kvě 25
6330
importing Purchase Order shown as a RFQ Vyřešeno
purchase_order
Avatar
Avatar
Avatar
2
kvě 25
2926
Create a PO without adding products to stock
purchase_order
Avatar
Avatar
Avatar
Avatar
3
pro 24
8596
How do I replace the default Purchase Order number? Vyřešeno
purchase_order
Avatar
Avatar
1
čvc 24
4342
Purchase Product Description Incorrect Vyřešeno
purchase_order
Avatar
Avatar
1
čvn 24
2736
Komunita
  • Tutoriály
  • Dokumentace
  • Fórum
Open Source
  • Stáhnout
  • Github
  • Runbot
  • Překlady
Služby
  • Odoo.sh hostování
  • Podpora
  • Upgrade
  • Nestandardní vývoj
  • Edukační program
  • Najít účetní
  • Najít partnera
  • Stát se partnerem
O nás
  • Naše společnost
  • Podklady značky
  • Kontakujte nás
  • Práce
  • Události
  • Podcast
  • Blog
  • Zákazníci
  • Právní dokumenty • Soukromí
  • Zabezpečení
الْعَرَبيّة 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 je balíček open-source aplikací, které pokrývají všechny potřeby vaší společnosti: CRM, e-shop, účetnictví, sklady, kasy, projektové řízení a další.

Unikátní nabídka od Odoo poskytuje velmi jednoduché uživatelské rozhraní a vše je integrované na jednom místě.

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