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í
    Food & Hospitality
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Guest House
    • Distributor nápojů
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Trades
    • Údržbář
    • IT hardware a podpora
    • Solar Energy Systems
    • Výrobce obuvi
    • Úklidové služby
    • HVAC Services
    Others
    • Nonprofit Organization
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Browse all Industries
  • 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
    • Services for Partners
    • 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

New Column in Quotation Display

Odebírat

Get notified when there's activity on this post

This question has been flagged
actionconfigurationsales
3 Odpovědi
506 Zobrazení
Avatar
John

How can I add additional column that is not on the option list in the quotation display?

Let say I want to add-in Customer Reference? I'm only restricted to what Odoo can show me in the options when I click the 3 dots.

So in a sense, I'm looking for a way to customize that option list. 

I don't want to use the Studio as much as possible.


Any help will be greatly appreciated.

0
Avatar
Zrušit
Avatar
Fezan Muhammad Ali
Nejlepší odpověď

Navigate to Settings, then Technical.


From the User Interfaces dropdown, select Views.


Click the New button.


Enter the Name: Custom Quotation List with Customer Ref


Set the View Type to: List


Set the Model of the view to: Sale Order


Set the Inherited View to: sale.order.tree


Set the View Inherited Model to: base View


Set the Sequence to: 16


Toggle Active to Green.


In the Architecture editor, input the following code:


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


<field name="client_order_ref" optional="hide"/>


</xpath>


The form should now appear as shown.


Subsequently, return to the Quotations and select Customer Reference from the list by clicking on the three dots.


Hope It will help, Happy Odoo John!

1
Avatar
Zrušit
Avatar
Cybrosys Techno Solutions Pvt.Ltd
Nejlepší odpověď

Hi


To add a custom column like "Customer Reference" to the quotation display in Odoo without using Odoo Studio, you'll need to create a custom module. This approach allows you to implement customizations without directly altering Odoo's core code. The key is to inherit the quotation tree view, which is responsible for displaying quotations. You can identify this view and then, in your custom module's XML file, use <record> and <field> tags to inherit and modify it.


Next, define the custom field (e.g., x_customer_ref) in your module's Python file within the sale.order model. Then, in the inherited tree view, add a <field> tag to include your custom field, specifying the name attribute as the name of your custom field (e.g., x_customer_ref). Finally, ensure that the field is added to the view in a way that it becomes visible in the quotation display. Remember to update your module and the quotation view to reflect these changes.


Python


from odoo import models, fields


class SaleOrder(models.Model):

    _inherit = 'sale.order'


    customer_ref = fields.Char(string='Customer Reference')


XML


<odoo>

    <data>

        <!-- Inherit Sale Order Tree View -->

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

            <field name="name">sale.order.tree.inherit</field>

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

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

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

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

                    <field name="customer_ref" optional="hide"/>

                </xpath>

            </field>

        </record>

    </data>

</odoo>


Hope it helps

0
Avatar
Zrušit
Avatar
John
Autor Nejlepší odpověď

Hi Fezan!

Thank you for this, but for some weird reason, I don't have the View Type: List.

But I managed to make it work! Pointing me the User Interface > Views gave me a clue where to edit it.

Kind regards,

John

0
Avatar
Zrušit
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
How can I edit the Website?
action configuration
Avatar
Avatar
Avatar
2
říj 25
461
Odoo website Products selecetion manadatory
configuration sales
Avatar
Avatar
1
srp 25
721
suppression site web
action configuration
Avatar
Avatar
2
čvc 25
1259
I need to hide Budget button in profit and loss report. Help me, please!
action configuration
Avatar
Avatar
1
čvn 25
1158
How to set project visibility and permissions by department in Odoo?
action configuration
Avatar
Avatar
2
čvn 25
1432
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