Skip to Content
Odoo Meniu
  • Autentificare
  • Try it free
  • Aplicații
    Finanțe
    • Contabilitate
    • Facturare
    • Cheltuieli
    • Spreadsheet (BI)
    • Documente
    • Semn
    Vânzări
    • CRM
    • Vânzări
    • POS Shop
    • POS Restaurant
    • Abonamente
    • Închiriere
    Site-uri web
    • Constructor de site-uri
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Lanț Aprovizionare
    • Inventar
    • Producție
    • PLM
    • Achiziție
    • Maintenance
    • Calitate
    Resurse Umane
    • Angajați
    • Recrutare
    • Time Off
    • Evaluări
    • Referințe
    • Flotă
    Marketing
    • Social Marketing
    • Marketing prin email
    • SMS Marketing
    • Evenimente
    • Automatizare marketing
    • Sondaje
    Servicii
    • Proiect
    • Foi de pontaj
    • Servicii de teren
    • Centru de asistență
    • Planificare
    • Programări
    Productivitate
    • Discuss
    • Aprobări
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Aplicații Terțe Odoo Studio Platforma Odoo Cloud
  • Industrii
    Retail
    • Book Store
    • Magazin de îmbrăcăminte
    • Magazin de Mobilă
    • Magazin alimentar
    • Magazin de materiale de construcții
    • Magazin de jucării
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Distribuitor de băuturi
    • Hotel
    Proprietate imobiliara
    • Real Estate Agency
    • Firmă de Arhitectură
    • Construcție
    • Estate Managament
    • Grădinărit
    • Asociația Proprietarilor de Proprietăți
    Consultanta
    • Firma de Contabilitate
    • Partener Odoo
    • Agenție de marketing
    • Law firm
    • Atragere de talente
    • Audit & Certification
    Producție
    • Textil
    • Metal
    • Mobilier
    • Mâncare
    • Brewery
    • Cadouri corporate
    Health & Fitness
    • Club Sportiv
    • Magazin de ochelari
    • Centru de Fitness
    • Wellness Practitioners
    • Farmacie
    • Salon de coafură
    Trades
    • Handyman
    • IT Hardware and Support
    • Asigurare socială de stat
    • Cizmar
    • Servicii de curățenie
    • HVAC Services
    Altele
    • Organizație nonprofit
    • Agenție de Mediu
    • Închiriere panouri publicitare
    • Fotografie
    • Închiriere biciclete
    • Asigurare socială
    Browse all Industries
  • Comunitate
    Învăță
    • Tutorials
    • Documentație
    • Certificări
    • Instruire
    • Blog
    • Podcast
    Empower Education
    • Program Educațional
    • Scale Up! Business Game
    • Visit Odoo
    Obține Software-ul
    • Descărcare
    • Compară Edițiile
    • Lansări
    Colaborați
    • Github
    • Forum
    • Evenimente
    • Translations
    • Devino Partener
    • Services for Partners
    • Înregistrează-ți Firma de Contabilitate
    Obține Servicii
    • Găsește un Partener
    • Găsiți un contabil
    • Meet an advisor
    • Servicii de Implementare
    • Referințe ale clienților
    • Suport
    • Actualizări
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obține un demo
  • Prețuri
  • Ajutor

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

  • CRM
  • e-Commerce
  • Contabilitate
  • Inventar
  • PoS
  • Proiect
  • MRP
All apps
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
All Posts Oameni Insigne
Etichete (View all)
odoo accounting v14 pos v15
Despre acest forum
Suport

Action link from view missing in new module

Abonare

Primiți o notificare când există activitate la acestă postare

Această întrebare a fost marcată
actionwizardreportbinding
1 Răspunde
8339 Vizualizări
Imagine profil
Aitzol

I have to create a new report of which content will vary depending on user input: select a finished product in manufacturing orders.

I have though of creating a new wizard for product selection an then generate a report. However I am having issues with the action which makes the call between mrp.production view to the wizard, which has to show a link from the model view. Here is the content I have added to my_module_view.xml

<record id="action_print_manufacturing_order" model="ir.actions.act_window">
        <field name="name">Print Manufacturing Order</field>
        <field name="type">ir.actions.act_window</field>
        <field name="res_model">mymodule.mrp.pruduction.report</field>
            <field name="domain">[('id','in',active_ids)]</field>
        <field name="view_type">form</field>
        <field name="view_mode">form</field>
        <field name="target">new</field>
    </record>

        <ir_set>
        <field name="key" eval="'action'"/>
        <field name="key2" eval="'client_action_multi'"/>
        <field name="models" eval="['mrp.production']"/>
        <field name="name">Print Manufacturing Order</field>
        <field name="value" eval="'ir.actions.act_window,'+str(action_print_manufacturing_order)"/>
        <field name="isobject" eval="True"/>
        <field name="replace" eval="True"/>
    </ir_set>

And my wizard class (unfinished):

class ecocap_mrp_report(osv.osv_memory):
    _name = "ecocap.mrp.pruduction.report"
    _description = "Manufacturing order report"

    _columns = {
                  #Columns
              }

After updating my module, there is no link in the mrp.production view to the newly created action. I have been able to manually create this link in Settings > Customization > Low Level Objects > Actions > Actions Bindings. However I would prefer if I could create the action binding from _view.xml file but obviously there is something missing I can't come up with.

Thanks,

1
Imagine profil
Abandonează
Imagine profil
Sudhir Arya (ERP Harbor Consulting Services)
Cel mai bun răspuns

Try this:

<act_window
    domain="[('id','in',active_ids)]"
    id="act_print_manufacturing_order"
    name="Print Manufacturing Order"
    res_model="mymodule.mrp.pruduction.report"
    src_model="mrp.production"
    view_id="your_wizard_form_view_id"
    target="new"/>

This will add wizard in More of form view.

4
Imagine profil
Abandonează
Aitzol
Autor

It worked, thanks!

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

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

Înscrie-te
Related Posts Răspunsuri Vizualizări Activitate
Problem with opening full composer in send message
action wizard
Imagine profil
0
ian. 25
1995
Change PDF report name on wizard
wizard report
Imagine profil
Imagine profil
2
iul. 24
4100
Blank report PDF from Wizard Rezolvat
wizard report
Imagine profil
Imagine profil
2
apr. 24
3629
How to hide reports from print menu? Rezolvat
action report
Imagine profil
Imagine profil
Imagine profil
Imagine profil
Imagine profil
4
apr. 22
27942
How to add -via xml in a module- an action binding so a custom invoice template report appears in the print menu
action xml report binding odooV8
Imagine profil
0
feb. 22
5224
Comunitate
  • Tutorials
  • Documentație
  • Forum
Open Source
  • Descărcare
  • Github
  • Runbot
  • Translations
Servicii
  • Hosting Odoo.sh
  • Suport
  • Actualizare
  • Custom Developments
  • Educație
  • Găsiți un contabil
  • Găsește un Partener
  • Devino Partener
Despre Noi
  • Compania noastră
  • Active de marcă
  • Contactați-ne
  • Locuri de muncă
  • Evenimente
  • Podcast
  • Blog
  • Clienți
  • Aspecte juridice • Confidențialitate
  • Securitate
الْعَرَبيّة 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 este o suită de aplicații de afaceri open source care acoperă toate nevoile companiei dvs.: CRM, comerț electronic, contabilitate, inventar, punct de vânzare, management de proiect etc.

Propunerea de valoare unică a Odoo este să fie în același timp foarte ușor de utilizat și complet integrat.

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