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í
    Jídlo a pohostinství
    • Bar a Pub
    • Restaurace
    • Fast Food
    • Penzion
    • Distributor nápojů
    • Hotel
    Nemovitost
    • Realitní kancelář
    • Architektonická firma
    • Stavba
    • Správa nemovitostí
    • Zahradnictví
    • Asociace vlastníků nemovitosti
    Poradenství
    • Účetní firma
    • Odoo Partner
    • Marketingová agentura
    • Právník
    • Akvizice talentů
    • Audit a certifikace
    Výroba
    • Textil
    • Kov
    • Nábytek
    • Jídlo
    • Pivovar
    • Korporátní dárky
    Zdraví a fitness
    • Sportovní klub
    • Prodejna brýli
    • Fitness Centrum
    • Wellness praktikové
    • Lékárna
    • Kadeřnictví
    Transakce
    • Údržbář
    • Podpora IT & hardware
    • Systémy solární energie
    • Výrobce obuvi
    • Úklidové služby
    • Služby HVAC
    Ostatní
    • Nezisková organizace
    • Agentura pro životní prostředí
    • Pronájem billboardů
    • Fotografování
    • Leasing jízdních kol
    • Prodejce softwaru
    Procházet všechna odvětví
  • 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
    • Služby pro partnery
    • 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

State statusbar in form view alligns left

Odebírat

Get notified when there's activity on this post

This question has been flagged
xmlstatestatusbarhelpdesk
1 Odpovědět
7900 Zobrazení
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šit
Avatar
ZEeineb
Nejlepší odpověď

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šit
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!

Přihlásit se
Related Posts Odpovědi Zobrazení Aktivita
File Changes Not Working in OpenERP
xml helpdesk
Avatar
Avatar
Avatar
2
bře 15
8619
Buttons does not appear in the status bar ????
xml statusbar python2.7
Avatar
Avatar
2
bře 15
7250
statusbar refuses to be colored Vyřešeno
stages state statusbar
Avatar
Avatar
Avatar
Avatar
3
led 24
16882
How change the value of statusbar_visible in function of status value ?
xml v7 statusbar
Avatar
0
bře 15
8311
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
led 25
4935
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