Skip to Content
Odoo Menu
  • Prihlásiť sa
  • Vyskúšajte zadarmo
  • Aplikácie
    Financie
    • Účtovníctvo
    • Fakturácia
    • Výdavky
    • Tabuľka (BI)
    • Dokumenty
    • Podpis
    Predaj
    • CRM
    • Predaj
    • POS Shop
    • POS Restaurant
    • Manažment odberu
    • Požičovňa
    Webstránky
    • Tvorca webstránok
    • eShop
    • Blog
    • Fórum
    • Živý chat
    • eLearning
    Supply Chain
    • Sklad
    • Výroba
    • Správa životného cyklu produktu
    • Nákup
    • Údržba
    • Manažment kvality
    Ľudské zdroje
    • Zamestnanci
    • Nábor zamestnancov
    • Voľné dni
    • Hodnotenia
    • Odporúčania
    • Vozový park
    Marketing
    • Marketing sociálnych sietí
    • Email marketing
    • SMS marketing
    • Eventy
    • Marketingová automatizácia
    • Prieskumy
    Služby
    • Projektové riadenie
    • Pracovné výkazy
    • Práca v teréne
    • Helpdesk
    • Plánovanie
    • Schôdzky
    Produktivita
    • Tímová komunikácia
    • Schvalovania
    • IoT
    • VoIP
    • Znalosti
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Priemyselné odvetvia
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Reštaurácia
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Reality
    • Real Estate Agency
    • Architecture Firm
    • Konštrukcia
    • Estate Managament
    • Gardening
    • Property Owner Association
    Poradenstvo
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Jedlo
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware and Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Iní
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Komunita
    Vzdelávanie
    • Tutoriály
    • Dokumentácia
    • Certifikácie
    • Školenie
    • Blog
    • Podcast
    Empower Education
    • Vzdelávací program
    • Scale Up! Business Game
    • Visit Odoo
    Softvér
    • Stiahnuť
    • Porovnanie Community a Enterprise vierzie
    • Releases
    Spolupráca
    • Github
    • Fórum
    • Eventy
    • Preklady
    • Staň sa partnerom
    • Services for Partners
    • Register your Accounting Firm
    Služby
    • Nájdite partnera
    • Nájdite účtovníka
    • Meet an advisor
    • Implementation Services
    • Zákaznícke referencie
    • Podpora
    • Upgrades
    ​Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Získajte demo
  • Cenník
  • Pomoc

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

  • CRM
  • e-Commerce
  • Účtovníctvo
  • Sklady
  • PoS
  • Projektové riadenie
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tagy (View all)
odoo accounting v14 pos v15
About this forum
Pomoc

Error while trying to open a form in my module

Odoberať

Get notified when there's activity on this post

This question has been flagged
errorform
2 Replies
4325 Zobrazenia
Avatar
Andoni

I am trying to create a form on my module, but when i try to open the form  y qet the next error:

Rastreo de error:
Error: [_.sprintf] huh?
    at Function.str_format.parse (http://localhost:8069/web/content/67-9091f7e/web.assets_common.js:192:12)
    at Object.str_format [as sprintf] (http://localhost:8069/web/content/67-9091f7e/web.assets_common.js:174:145)
    at Object.formatFloat [as float] (http://localhost:8069/web/content/68-9c4ee0c/web.assets_backend.js:1025:21)
    at Class._formatValue (http://localhost:8069/web/content/68-9c4ee0c/web.assets_backend.js:900:1237)
    at Class._formatValue (http://localhost:8069/web/content/68-9c4ee0c/web.assets_backend.js:918:20)
    at Class.prototype.<computed> [as _formatValue] (http://localhost:8069/web/content/67-9091f7e/web.assets_common.js:4615:488)
    at Class._prepareInput (http://localhost:8069/web/content/68-9c4ee0c/web.assets_backend.js:913:541)
    at Class._prepareInput (http://localhost:8069/web/content/68-9c4ee0c/web.assets_backend.js:919:98)
    at Class.prototype.<computed> [as _prepareInput] (http://localhost:8069/web/content/67-9091f7e/web.assets_common.js:4615:488)
    at Class._renderEdit (http://localhost:8069/web/content/68-9c4ee0c/web.assets_backend.js:914:105)


This is my view.xml code:

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<data>
<act_window id="action_lead_stage" name="Lead stages" res_model="leads.leads" view_mode="tree,form"/>

<menuitem name="Leads-Woinfi" id="clientes_woinfi_menu_root"/>
<!-- menu categories -->
<menuitem name="Leads" id="clientes_woinfi.leads" parent="clientes_woinfi_menu_root" action="clientes_woinfi.action_lead_stage"/>

<record id="view_form_lead_ui" model="ir.ui.view">
<field name="name">view_form_lead_ui</field>
<field name="model">leads.leads</field>
<field name="arch" type="xml">
<form>
<group>
<field name="nombre"/>
<field name="apellido"/>
<field name="dni"/>
<field name="municipio"/>
<field name="provincia"/>
<field name="email"/>
<field name="telefono"/>
</group>
<group>
<field name="asunto"/>
<field name="cuando"/>
<field name="ip"/>
<field name="procedencia"/>
<field name="tipo"/>
<field name="fecha"/>
</group>
</form>
</field>
</record>
<record id="view_list_lead_ui" model="ir.ui.view">
<field name="name">view_list_lead_ui</field>
<field name="model">leads.leads</field>
<field name="arch" type="xml">
<tree>
<field name="nombre"/>
<field name="apellido"/>
<field name="dni"/>
<field name="municipio"/>
<field name="provincia"/>
<field name="email"/>
<field name="telefono"/>
<field name="asunto"/>
<field name="cuando"/>
<field name="ip"/>
<field name="procedencia"/>
<field name="tipo"/>
<field name="fecha"/>
</tree>
</field>
</record>
</data>
</odoo>
0
Avatar
Zrušiť
Avatar
Saimon
Best Answer

Hi,

You can try to the following way:

<?xml version="1.0" encoding="utf-8"?>

<odoo>

    <data>

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

            <field name="name">view_form_lead_ui</field>

            <field name="model">leads.leads</field>

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

                <form>

                    <group>

                        <field name="nombre"/>

                        <field name="apellido"/>

                        <field name="dni"/>

                        <field name="municipio"/>

                        <field name="provincia"/>

                        <field name="email"/>

                        <field name="telefono"/>

                    </group>

                    <group>

                        <field name="asunto"/>

                        <field name="cuando"/>

                        <field name="ip"/>

                        <field name="procedencia"/>

                        <field name="tipo"/>

                        <field name="fecha"/>

                    </group>

                </form>

            </field>

        </record>

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

            <field name="name">view_list_lead_ui</field>

            <field name="model">leads.leads</field>

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

                <tree>

                    <field name="nombre"/>

                    <field name="apellido"/>

                    <field name="dni"/>

                    <field name="municipio"/>

                    <field name="provincia"/>

                    <field name="email"/>

                    <field name="telefono"/>

                    <field name="asunto"/>

                    <field name="cuando"/>

                    <field name="ip"/>

                    <field name="procedencia"/>

                    <field name="tipo"/>

                    <field name="fecha"/>

                </tree>

            </field>

        </record>


        <record model="ir.actions.act_window" id="action_lead_stage">

            <field name="name">Lead stages</field>

            <field name="res_model">leads.leads</field>

            <field name="view_mode">tree,form</field>

            <field name="help" type="html">

              <p class="oe_view_nocontent_create">

                Click to create Leads.

              </p>

            </field>

        </record>


        <menuitem name="Leads Woinfi" id="clientes_woinfi_menu_root"/>

        <!-- menu categories -->

        <menuitem name="Leads" id="clientes_woinfi.leads" parent="clientes_woinfi_menu_root" action="clientes_woinfi.action_lead_stage"/>


    </data>

</odoo>


Thanks

0
Avatar
Zrušiť
Avatar
Andoni
Autor Best Answer

Thanks men, is working now

0
Avatar
Zrušiť
Enjoying the discussion? Don't just read, join in!

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

Registrácia
Related Posts Replies Zobrazenia Aktivita
Error while adding grid to a form.
error form gridview
Avatar
0
mar 15
4812
?"Your country might be blocked by our hosting provider" error when I create new website
error
Avatar
0
okt 25
509
Payment Page Return Error with Razorpay on Mobile Devices
error
Avatar
0
sep 25
1131
Can i create multiple forms for a single model using studio ? Solved
form
Avatar
Avatar
2
sep 25
1186
Error after installing "purchase" app in Odoo version 18
error
Avatar
Avatar
1
dec 24
6557
Komunita
  • Tutoriály
  • Dokumentácia
  • Fórum
Open Source
  • Stiahnuť
  • Github
  • Runbot
  • Preklady
Služby
  • Odoo.sh hosting
  • Podpora
  • Vyššia verzia
  • Custom Developments
  • Vzdelávanie
  • Nájdite účtovníka
  • Nájdite partnera
  • Staň sa partnerom
O nás
  • Naša spoločnosť
  • Majetok značky
  • Kontaktujte nás
  • Pracovné ponuky
  • Eventy
  • Podcast
  • Blog
  • Zákazníci
  • Právne dokumenty • Súkromie
  • Bezpečnosť
الْعَرَبيّة 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 sada podnikových aplikácií s otvoreným zdrojovým kódom, ktoré pokrývajú všetky potreby vašej spoločnosti: CRM, e-shop, účtovníctvo, skladové hospodárstvo, miesto predaja, projektový manažment atď.

Odoo prináša vysokú pridanú hodnotu v jednoduchom použití a súčasne plne integrovanými biznis aplikáciami.

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