Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

add field in kanban view, account_invoice_line

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
1 Răspunde
4798 Vizualizări
Imagine profil
GiancaFTx

Good night,

I am trying to replace the view: (o_kanban_mobil) but the change is not applied, it is installed without error but it is not visualized that it may be missing?

release: odoo12, column you want to add: (new_field)

thanks,

   <record model="ir.ui.view" id="e.view_account_invoice_events">

            <field name="name">Cambios en al vista de formulario de Invoice</field>

            <field name="model">account.invoice</field>

            <field name="inherit_id" ref="account.invoice_form"/>

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

                       

                <xpath expr="//kanban[@class='o_kanban_mobile']" position="replace">       

                                    <field name="name"/>

                                    <field name="product_id"/>

                                    <field name="price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>

                                    <field name="price_total" groups="account.group_show_line_subtotals_tax_included"/>

                                    <field name="quantity"/>

                                    <field name="uom_id" groups="uom.group_uom"/>

                                    <field name="price_unit"/>

                                    <field name="new_field" />

                                    <field name="display_type"/>

                                    <templates>

                                        <t t-name="kanban-box">

                                            <div t-attf-class="oe_kanban_card oe_kanban_global_click {{ record.display_type.raw_value ? 'o_is_' + record.display_type.raw_value : '' }}">

                                                <t t-if="!record.display_type.raw_value">

                                                    <div class="row">

                                                        <div class="col-8">

                                                            <strong>

                                                                <span>

                                                                    <t t-esc="record.product_id.value"/>

                                                                </span>

                                                            </strong>

                                                        </div>

                                                        <div class="col-4">

                                                            <strong>

                                                                <span class="float-right text-right">

                                                                    <t t-esc="record.price_subtotal.value" groups="account.group_show_line_subtotals_tax_excluded"/>

                                                                    <t t-esc="record.price_total.value" groups="account.group_show_line_subtotals_tax_included"/>

                                                                </span>

                                                            </strong>

                                                        </div>

                                                    </div>

                                                    <div class="row">

                                                        <div class="col-12 text-muted">

                                                            <span>

                                                                Quantity:

                                                                <t t-esc="record.quantity.value"/>

                                                                <t t-esc="record.uom_id.value"/>

                                                            </span>

                                                        </div>

                                                    </div>

                                                    <div class="row">

                                                        <div class="col-12 text-muted">

                                                            <span>

                                                                Unit Price:

                                                                <t t-esc="record.price_unit.value"/>

                                                            </span>

                                                        </div>

                                                    </div>

                                                 <div class="row">

                                                        <div class="col-12 text-muted">

                                                            <span>

                                                                Descuento:

                                                                <t t-esc="record.new_field.value"/>

                                                            </span>

                                                        </div>

                                                    </div>


                                                </t>

                                                <t t-if="record.display_type.raw_value === 'line_section' || record.display_type.raw_value === 'line_note'">

                                                    <div class="row">

                                                        <div class="col-12">

                                                            <span>

                                                                <t t-esc="record.name.value"/>

                                                            </span>

                                                        </div>

                                                    </div>

                                                </t>

                                            </div>

                                        </t>

                                    </templates>


                </xpath>  

 </record>


0
Imagine profil
Abandonează
Imagine profil
Keval Mehta
Cel mai bun răspuns

If you replace the existing element then you need to start from that element in your view only. For example in your case you replace kanban tag from base then in your custom code you need to start from that tag only. So your code will be something like this : 

<xpath expr="//kanban[@class='o_kanban_mobile']" position="replace">
    <kanban class="o_kanban_mobile">
        // your code
    </kanban>

0
Imagine profil
Abandonează
GiancaFTx
Autor

Hello, I made the change as indicated and it is not reflected, is there another coast that should be done ?, the model to inherit is ?: <field name = "model"> account.invoice </field>

<field name = "inherit_id" ref = "account.invoice_form" />

****************

field add: descuento_unitario

<xpath expr="//kanban[@class='o_kanban_mobile']" position="replace">

<kanban class="o_kanban_mobile">

<field name="name"/>

<field name="product_id"/>

<field name="price_subtotal" groups="account.group_show_line_subtotals_tax_excluded"/>

<field name="price_total" groups="account.group_show_line_subtotals_tax_included"/>

<field name="quantity"/>

<field name="uom_id" groups="uom.group_uom"/>

<field name="price_unit"/>

<field name="descuento_unitario" />

<field name="display_type"/>

<templates>

<t t-name="kanban-box">

<div t-attf-class="oe_kanban_card oe_kanban_global_click {{ record.display_type.raw_value ? 'o_is_' + record.display_type.raw_value : '' }}">

<t t-if="!record.display_type.raw_value">

<div class="row">

<div class="col-8">

<strong>

<span>

<t t-esc="record.product_id.value"/>

</span>

</strong>

</div>

<div class="col-4">

<strong>

<span class="float-right text-right">

<t t-esc="record.price_subtotal.value" groups="account.group_show_line_subtotals_tax_excluded"/>

<t t-esc="record.price_total.value" groups="account.group_show_line_subtotals_tax_included"/>

</span>

</strong>

</div>

</div>

<div class="row">

<div class="col-12 text-muted">

<span>

Quantity:

<t t-esc="record.quantity.value"/>

<t t-esc="record.uom_id.value"/>

</span>

</div>

</div>

<div class="row">

<div class="col-12 text-muted">

<span>

Unit Price:

<t t-esc="record.price_unit.value"/>

</span>

</div>

</div>

<div class="row">

<div class="col-12 text-muted">

<span>

Descuento:

<t t-esc="record.descuento_unitario.value"/>

</span>

</div>

</div>

</t>

<t t-if="record.display_type.raw_value === 'line_section' || record.display_type.raw_value === 'line_note'">

<div class="row">

<div class="col-12">

<span>

<t t-esc="record.name.value"/>

</span>

</div>

</div>

</t>

</div>

</t>

</templates>

</kanban>

</xpath>

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

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

Înscrie-te
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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