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
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Managament
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Výroba
    • Textile
    • Metal
    • Furnitures
    • Food
    • 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
    Others
    • 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
  • Help

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

State statusbar in form view alligns left

Odoberať

Get notified when there's activity on this post

This question has been flagged
xmlstatestatusbarhelpdesk
1 Odpoveď
7869 Zobrazenia
Avatar
Kris Coenen

I've added alternet statusbar in the form view for helpdesk. The Statusbar works perfactly but it is alligned to the left after the buttuns and not on the right side of the header how do i solve this. Here is my code

helpdesk.py

from openerp.osv import osv, fields

class helpdesk(osv.Model):

_inherit = 'crm.helpdesk'

_columns = {
    'category' : fields.selection([('opsturen','Opsturen'),('ter_plaatse','Ter plaatse herstellen')],'categorie',states={'draft': [('readonly', False)], 'verwacht': [('readonly', True)], 'inplannen': [('readonly', True)], 'toegekomen': [('readonly', True)], 'ingepland': [('readonly', True)], 'offerte': [('readonly', True)], 'afgekeurd': [('readonly', True)], 'pending': [('readonly', True)], 'hersteld': [('readonly', True)], 'done': [('readonly', True)], 'cancel': [('readonly', True)]}),
    'dienst' : fields.many2one('sn_helpdesk.dienst','Dienst'),
    'state': fields.selection((('draft','Concept'),('verwacht','Toestel wordt verwacht'),('inplannen','Inplannen technieker'),('toegekomen','Toestel toegekomen'),('ingepland','Technieker ingepland'),('offerte','Offerte'),('afgekeurd','Afgekeurd'),('pending','In herstelling'),('hersteld','Hersteld'),('afgeleverd','Afgeleverd'),('factuur','Factureren'),('done','afgehandeld'),('cancel','geannuleerd')),'status helpdesk'),
    'offerte_id': fields.many2one('sale.order','offerte'),
    'invoice_id': fields.many2one('account.invoice','factuur'),
    'calendar_id': fields.many2one('crm.meeting','inplannen', states={'draft': [('invisible', True)], 'verwacht': [('invisible', True)], 'inplannen': [('invisible', False)], 'toegekomen': [('invisible', True)], 'ingepland': [('invisible', False)], 'offerte': [('invisible', False)], 'afgekeurd': [('invisible', False)], 'pending': [('invisible', False)], 'hersteld': [('invisible', False)], 'done': [('invisible', False)], 'cancel': [('invisible', False)]}),
    'tel_from': fields.char('Telefoon'),
    }

helpdesk()

helpdesk.xml

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

<openerp> <data>

    <record id="base_helpdesk_category_view" model="ir.ui.view">
        <field name="name">helpdesk categorie</field>
        <field name="model">crm.helpdesk</field>
        <field name="inherit_id" ref="crm_helpdesk.crm_case_form_view_helpdesk"/>
        <field name="arch" type="xml">

            <header position="replace">

                <button string="toestel verwacht" type="object" name="action_helpdesk_verwacht" class="oe_highlight" states="draft"/>
                <button string="technieker inplannen" type="object" name="action_helpdesk_inplannen" class="oe_highlight" states="draft"/>
                <button string="toegekomen" type="object" name="action_helpdesk_toegekomen" class="oe_highlight" states="verwacht"/>
                <button string="technieker ingepland" type="object" name="action_helpdesk_ingepland" class="oe_highlight" states="inplannen"/>
                <button string="Offerte" type="object" name="action_helpdesk_offerte" class="oe_highlight" states="toegekomen,ingepland"/>
                <button string="In herstelling" type="object" name="action_helpdesk_herstelling" class="oe_highlight" states="offerte"/>
                <button string="hersteld" type="object" name="action_helpdesk_hersteld" class="oe_highlight" states="pending"/>
                <button string="Afgeleverd" type="object" name="action_helpdesk_afgeleverd" class="oe_highlight" states="hersteld"/>
                <button string="Factureren" type="object" name="action_helpdesk_factureer" class="oe_highlight" states="afgeleverd"/>
                <button string="Afgehandeld" type="object" name="action_helpdesk_done" class="oe_highlight" states="factuur"/>
                <button string="terug naar Concept" type="object" name="action_helpdesk_draft" class="oe_highlight" states="cancel"/>

                <button string="annuleren" type="object" name="action_helpdesk_annuleren" states="draft,verwacht,inplannen,toegekomen,ingepland,offerte,afgekeurd,pending,hersteld,afgeleverd,done"/>


                <field name="state" nolabel="1" widget="statusbar" statusbar_visible="draft,offerte,done"/>
            </header>


            <field name="channel_id" position="after">
                <field name="category"/>
            </field>

            <field name="section_id" position="replace">
                <field name="dienst"/>
                <field name="offerte_id" states="toegekomen,ingepland,offerte,pending,hersteld,afgeleverd,done"/>
                <field name="invoice_id" states="hersteld,afgeleverd,done"/>
            </field>

            <field name="partner_id" position="replace">
                <field name="partner_id" on_change="onchange_partner_id_helpdesk(partner_id,email_from,tel_from)"/>
            </field>

            <field name="email_from" position="after">µ
                <field name="tel_from"/>
                <field name="calendar_id"/>
            </field>

        </field>
    </record>

</data>

</openerp>

how do i resolve the issue with the statusbar

sincerily

Kris

0
Avatar
Zrušiť
Avatar
ZEeineb
Best Answer

Hi Kris,

Try to do so:

in your xml file:

<xpath expr="//form/sheet" position="before">
        <header>
            <button string="toestel verwacht" type="object"
            name="action_helpdesk_verwacht" class="oe_highlight" states="draft" />
            <button string="technieker inplannen" type="object"
            name="action_helpdesk_inplannen" class="oe_highlight" states="draft" />
            <button string="toegekomen" type="object"
            name="action_helpdesk_toegekomen" class="oe_highlight" states="verwacht" />
            <button string="technieker ingepland" type="object"
            name="action_helpdesk_ingepland" class="oe_highlight" states="inplannen" />
            <button string="Offerte" type="object" name="action_helpdesk_offerte"
            class="oe_highlight" states="toegekomen,ingepland" />
            <button string="In herstelling" type="object"
            name="action_helpdesk_herstelling" class="oe_highlight" states="offerte" />
            <button string="hersteld" type="object" name="action_helpdesk_hersteld"
            class="oe_highlight" states="pending" />
            <button string="Afgeleverd" type="object"
            name="action_helpdesk_afgeleverd" class="oe_highlight" states="hersteld" />
            <button string="Factureren" type="object"
            name="action_helpdesk_factureer" class="oe_highlight" states="afgeleverd" />
            <button string="Afgehandeld" type="object" name="action_helpdesk_done"
            class="oe_highlight" states="factuur" />
            <button string="terug naar Concept" type="object"
            name="action_helpdesk_draft" class="oe_highlight" states="cancel" />
            <button string="annuleren" type="object" name="action_helpdesk_annuleren"  states="draft,verwacht,inplannen,toegekomen,ingepland,offerte,afgekeurd,pending,hersteld,afgeleverd,done" />
            <field name="state" nolabel="1" widget="statusbar" statusbar_visible="draft,offerte,done" />
        </header>
</xpath>

in your python file:

'state': fields.selection([
                            ('draft', 'Concept'),
                            ('verwacht', 'Toestel wordt verwacht'),
                            ('inplannen', 'Inplannen technieker'),
                            ('toegekomen', 'Toestel toegekomen'),
                            ('ingepland', 'Technieker ingepland'),
                            ('offerte', 'Offerte')
                            , ('afgekeurd', 'Afgekeurd'),
                            ('pending', 'In herstelling'),
                            ('hersteld', 'Hersteld'),
                            ('afgeleverd', 'Afgeleverd'),
                            ('factuur', 'Factureren'),
                            ('done', 'afgehandeld'),
                            ('cancel', 'geannuleerd'), ], 'status helpdesk'),
1
Avatar
Zrušiť
ZEeineb

See more at: [http://www.zbeanztech.com/blog/tags-used-openerp-70#sthash.VfgiA

Kris Coenen
Autor

Didn't work for me statusbar is still on the left

ZEeineb

Hi Kris , I have edited the answer . Try to follow it. I hope it works now.

Kris Coenen
Autor

now it works thanks

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
File Changes Not Working in OpenERP
xml helpdesk
Avatar
Avatar
Avatar
2
mar 15
8579
Buttons does not appear in the status bar ????
xml statusbar python2.7
Avatar
Avatar
2
mar 15
7203
statusbar refuses to be colored Solved
stages state statusbar
Avatar
Avatar
Avatar
Avatar
3
jan 24
16807
How change the value of statusbar_visible in function of status value ?
xml v7 statusbar
Avatar
0
mar 15
8266
How to change the order of status bar states in Odoo 18 after adding a new state, without override the field?
state statusbar Selection selectionfield
Avatar
1
jan 25
4807
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