Passa al contenuto
Odoo Menu
  • Accedi
  • Provalo gratis
  • App
    Finanze
    • Contabilità
    • Fatturazione
    • Note spese
    • Fogli di calcolo (BI)
    • Documenti
    • Firma
    Vendite
    • CRM
    • Vendite
    • Punto vendita Negozio
    • Punto vendita Ristorante
    • Abbonamenti
    • Noleggi
    Siti web
    • Configuratore sito web
    • E-commerce
    • Blog
    • Forum
    • Live chat
    • E-learning
    Supply chain
    • Magazzino
    • Produzione
    • PLM
    • Acquisti
    • Manutenzione
    • Qualità
    Risorse umane
    • Dipendenti
    • Assunzioni
    • Ferie
    • Valutazioni
    • Referral dipendenti
    • Parco veicoli
    Marketing
    • Social marketing
    • E-mail marketing
    • SMS marketing
    • Eventi
    • Marketing automation
    • Sondaggi
    Servizi
    • Progetti
    • Fogli ore
    • Assistenza sul campo
    • Helpdesk
    • Pianificazione
    • Appuntamenti
    Produttività
    • Comunicazioni
    • Approvazioni
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    App di terze parti Odoo Studio Piattaforma cloud Odoo
  • Settori
    Retail
    • Libreria
    • Negozio di abbigliamento
    • Negozio di arredamento
    • Alimentari
    • Ferramenta
    • Negozio di giocattoli
    Cibo e ospitalità
    • Bar e pub
    • Ristorante
    • Fast food
    • Pensione
    • Grossista di bevande
    • Hotel
    Agenzia immobiliare
    • Agenzia immobiliare
    • Studio di architettura
    • Edilizia
    • Gestione immobiliare
    • Impresa di giardinaggio
    • Associazione di proprietari immobiliari
    Consulenza
    • Società di contabilità
    • Partner Odoo
    • Agenzia di marketing
    • Studio legale
    • Selezione del personale
    • Audit e certificazione
    Produzione
    • Tessile
    • Metallo
    • Arredamenti
    • Alimentare
    • Birrificio
    • Ditta di regalistica aziendale
    Benessere e sport
    • Club sportivo
    • Negozio di ottica
    • Centro fitness
    • Centro benessere
    • Farmacia
    • Parrucchiere
    Commercio
    • Tuttofare
    • Hardware e assistenza IT
    • Ditta di installazione di pannelli solari
    • Calzolaio
    • Servizi di pulizia
    • Servizi di climatizzazione
    Altro
    • Organizzazione non profit
    • Ente per la tutela ambientale
    • Agenzia di cartellonistica pubblicitaria
    • Studio fotografico
    • Punto noleggio di biciclette
    • Rivenditore di software
    Carica tutti i settori
  • Community
    Apprendimento
    • Tutorial
    • Documentazione
    • Certificazioni 
    • Formazione
    • Blog
    • Podcast
    Potenzia la tua formazione
    • Programma educativo
    • Scale Up! Business Game
    • Visita Odoo
    Ottieni il software
    • Scarica
    • Versioni a confronto
    • Note di versione
    Collabora
    • Github
    • Forum
    • Eventi
    • Traduzioni
    • Diventa nostro partner
    • Servizi per partner
    • Registra la tua società di contabilità
    Ottieni servizi
    • Trova un partner
    • Trova un contabile
    • Incontra un esperto
    • Servizi di implementazione
    • Testimonianze dei clienti
    • Supporto
    • Aggiornamenti
    GitHub Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Richiedi una demo
  • Prezzi
  • Aiuto

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

  • CRM
  • e-Commerce
  • Contabilità
  • Magazzino
  • PoS
  • Progetti
  • MRP
All apps
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
È necessario essere registrati per interagire con la community.
Tutti gli articoli Persone Badge
Etichette (Mostra tutto)
odoo accounting v14 pos v15
Sul forum
Assistenza

How to add approval workflow OpenERP 7

Iscriviti

Ricevi una notifica quando c'è un'attività per questo post

La domanda è stata contrassegnata
securityworkflowpythonxml
1 Rispondi
10394 Visualizzazioni
Avatar
priyankahdp

Here shows my model class which i need to add approval work flow.

class bpl_work_update(osv.osv):
    _name = "bpl.work.update"
    _description = "BPL Work Update"
    _columns = {
        'bpl_company_id':fields.many2one('res.company', 'Company', help='Company'),
        'ref_no': fields.char('Reference No', size=10,),
        'offered_date': fields.date('Offered Date'),
        # below lines are related to work update approve Workflow (i refer hr.holidays model for )
        'state': fields.selection([('draft', 'To Submit'), ('cancel', 'Cancelled'), ('confirm', 'To Approve'), ('refuse', 'Refused'), ('validate1', 'Second Approval'), ('validate', 'Approved')],
            'Status', readonly=True, track_visibility='onchange'),
        'user_id': fields.many2one('hr.employee', 'Add records', invisible=False, readonly=True),
        'manager_id': fields.many2one('hr.employee', 'First Approval', invisible=False, readonly=True),

     }
    _defaults = {
                 'bpl_company_id':_default_company,
                 'offered_date':fields.date.context_today,
                 'state': 'draft',
                 'user_id': lambda obj, cr, uid, context: uid,
                 }

bpl_work_update()

Here shows my view.xml file (i got only lines here which are related to work flow handling )

<header>
    <button string="Approve" name="validate" states="confirm"
        type="workflow" groups="group_checkroll_user" class="oe_highlight" />
    <button string="Validate" name="second_validate" states="validate1"
        type="workflow" groups="group_checkroll_manager" class="oe_highlight" />
    <button string="Refuse" name="refuse" states="confirm,validate,validate1"
        type="workflow" groups="group_checkroll_manager" />
    <button string="Reset to New" name="set_to_draft" states="cancel,refuse"
        type="object" groups="group_checkroll_manager" />
    <field name="state" widget="statusbar" statusbar_visible="draft,confirm,validate"
        statusbar_colors='{"confirm":"blue","validate1":"blue","refuse":"red"}' />
</header>

i have no idea for how to implement this approval type work flow. i refer hr.holidays model class but unable to got clear idea about it. please help me to add level to approve my work order request. & please give me a link to refer regarding this type of work flow creating..

now that workflow buttons added to form and shows correctly.but how to handle those.? here is my screen photo

1
Avatar
Abbandona
Avatar
Priyesh Solanki (pso)
Risposta migliore

You can refer this link :

http://doc.openerp.com/v6.1/developer/07_workflows.html

You need to create a new workflow.xml file where you need to define first Workflow for which object you are creating, Different Activities that you want to show in that workflow and Different Transitions between Activities. First you refer above link, understand it and after go for developing it.

You did right thing by assigning type="workflow" in button. Here, name of button is working as a signal in transition. It means that If your flow will get the signal, It will go for checking it in transition and from transition, it will trigger the function of that activity for which, transition is created.

1
Avatar
Abbandona
samba

Thank you proyesh, It's help me alot..

Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!

Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!

Registrati
Post correlati Risposte Visualizzazioni Attività
How to get state value when workflow tagged in Openerp?
workflow python xml
Avatar
0
mar 15
4590
Issue with Access Rules for Attachments / odoo 17 Risolto
security python xml odoo17
Avatar
Avatar
Avatar
Avatar
Avatar
4
giu 25
3949
HR Module 'Regularised Attendances' & 'Leave Requests' Appprval flow Issue..
hr workflow python xml
Avatar
0
dic 17
6327
OpenERP Workflow (ver 7)
workflow python xml button
Avatar
Avatar
1
mar 15
9894
How to hide view.xml fields group in Account module with attr
python xml
Avatar
Avatar
Avatar
2
dic 23
13887
Community
  • Tutorial
  • Documentazione
  • Forum
Open source
  • Scarica
  • Github
  • Runbot
  • Traduzioni
Servizi
  • Hosting Odoo.sh
  • Supporto
  • Aggiornamenti
  • Sviluppi personalizzati
  • Formazione
  • Trova un contabile
  • Trova un partner
  • Diventa nostro partner
Chi siamo
  • La nostra azienda
  • Branding
  • Contattaci
  • Lavora con noi
  • Eventi
  • Podcast
  • Blog
  • Clienti
  • Note legali • Privacy
  • Sicurezza
الْعَرَبيّة 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 è un gestionale di applicazioni aziendali open source pensato per coprire tutte le esigenze della tua azienda: CRM, Vendite, E-commerce, Magazzino, Produzione, Fatturazione elettronica, Project Management e molto altro.

Il punto di forza di Odoo è quello di offrire un ecosistema unico di app facili da usare, intuitive e completamente integrate tra loro.

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