Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

Odoo 16 ce: Inheritance of View to move a field from a group to another

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
inheritanceodoo16features
2 Replies
4890 Rodiniai
Portretas
SmithJohn45

i am struggling to modify CRM Lead form view via inheritance. i want to move Mobile field from Extra Info tab to main, below Phone field (from one Group to Another). i have done this successfully but it is exist on its original place (group) where it was in Extra Info tab. how i can actually move or what is better way? please check my code and advise/help how to Move it

record id="view_crm_lead_form_inherit" model="ir.ui.view"
field name="name"CRM Lead Custom Field/field
field name="model"crm.lead/field
field name="type"form/field
field name="inherit_id" ref="crm.crm_lead_view_form"
field name="arch" type="xml"
xpath expr="//group[@name='opportunity_partner']" position="inside"
label for="mobile" class="oe_inline"
div class="o_row o_row_readonly"
button name="phone_action_blacklist_remove" class="fa fa-ban text-danger" title="This phone number is blacklisted for SMS Marketing. Click to unblacklist." type="object" context="{'default_phone': mobile}" groups="base.group_user" attrs="{'invisible': [('mobile_blacklisted', '=', False)]}"
field name="mobile" widget="phone" string="Mobile"

regards



0
Portretas
Atmesti
Portretas
Niyas Raphy (Walnut Software Solutions)
Best Answer

Hi,

You can use position="move" to the field from one position to another. Suppose if you need to move the field mobile, after a field phone, then you can achieve as follows:

field name="phone" position="after"

field name="mobile" position="move"

See more in: Change Position Of Field, Page or Group Using Move Attribute


Thanks

1
Portretas
Atmesti
Portretas
shubham shiroya
Best Answer

Try this way:
record id="view_crm_lead_form_inherit" model="" rel="ugc">ir.ui.view">
field name="name">CRM Lead Custom Field
field name="model">crm.lead
field name="type">form
field name="inherit_id" ref="crm.crm_lead_view_form"/>
field name="arch" type="xml">
xpath expr="//group[@name='lead_detail']" position="inside">
field name="phone" position="after">
field name="mobile" widget="phone" string="Mobile"/>
/field>
/xpath>
xpath expr="//group[@name='opportunity_partner']" position="replace"/>
/field>
/record>

In the above code, we use the xpath expression to target the main group with the name 'lead_detail'. Within this group, we use the position="after" attribute to position the 'Mobile' field after the 'Phone' field.

Additionally, we use another xpath expression to replace the entire group with the name 'opportunity_partner', effectively removing it from the view.

Make sure to adjust the group names ('lead_detail' and 'opportunity_partner') in the code snippet to match the actual group names used in your CRM Lead form view.

After applying these changes and upgrading your custom module, the 'Mobile' field should appear below the 'Phone' field in the main section of the CRM Lead form view, and it will no longer be present in the 'Extra Info' tab.

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

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

Registracija
Related Posts Replies Rodiniai Veikla
Create a module that can be inherited to add a common field in other custom modules Solved
inheritance odoo16features
Portretas
Portretas
Portretas
Portretas
3
lapkr. 24
5349
How to conditionally replace field on inherited document and customer preview Solved
inheritance replace odoo16features
Portretas
Portretas
1
geg. 23
4095
how to inherit form in odoo 16 Solved
form inheritance odoo16features
Portretas
Portretas
1
kov. 23
4366
DeprecationWarning: The longpolling-port is a deprecated alias to the gevent-port option, please use the latter Solved
odoo16features
Portretas
Portretas
Portretas
Portretas
Portretas
5
rugs. 25
24307
How to Add wizard under print button inside the form view.
odoo16features
Portretas
Portretas
Portretas
Portretas
3
rugp. 25
3709
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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