Site Tools


Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
it:openerp:general

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
it:openerp:general [2026/01/10 08:06]
47.128.41.25 old revision restored (2025/11/04 19:26)
it:openerp:general [2026/01/27 20:20] (current)
47.128.56.179 old revision restored (2025/12/23 05:32)
Line 323: Line 323:
 <code python> <code python>
 #wizard erstellen #wizard erstellen
-class open_ref_wizard(osv.osv_memory):+class open_ref_wizard(wizard.interface):
          
     def open_ref(self, cr, uid, data, context):     def open_ref(self, cr, uid, data, context):
Line 336: Line 336:
             'type': 'ir.actions.act_window',             'type': 'ir.actions.act_window',
             'target': 'new',             'target': 'new',
 +        }
 +        
 +    states = {
 +        'init': {
 +            'actions': [],
 +            'result': {
 +                'type': 'action',
 +                'action': open_ref,
 +                'state':'end',
 +            }
         }         }
     }     }
- +open_ref_wizard('cp_cash.open_ref')
-open_ref_wizard()+
 </code> </code>
  
-===== Old-Style Wizards ===== 
 <code xml> <code xml>
 <!-- wizard definieren --> <!-- wizard definieren -->
Line 350: Line 358:
 <button string="Open Ref" name="%(open_ref)d" type="action" icon="gtk-open" /> <button string="Open Ref" name="%(open_ref)d" type="action" icon="gtk-open" />
 </code> </code>
-===== Message an UI =====+=== Message an UI ===
 <code python> <code python>
 raise osv.osv.except_osv("Message", Values_For_Message, exc_Type) raise osv.osv.except_osv("Message", Values_For_Message, exc_Type)
 </code> </code>
  
-===== Events in Feldern =====+== Events ==
 Felder in Views haben ein "onchange" event Attribut: Felder in Views haben ein "onchange" event Attribut:
 [[http://doc.openerp.com/v6.0/developer/2_6_views_events/events/events.html#on-change]] [[http://doc.openerp.com/v6.0/developer/2_6_views_events/events/events.html#on-change]]
it/openerp/general.1768032384.txt.gz · Last modified: 2026/01/10 08:06 by 47.128.41.25