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 [2025/12/03 17:31]
47.128.44.9 old revision restored (2025/11/08 23:07)
it:openerp:general [2025/12/03 17:52] (current)
47.128.49.18 old revision restored (2025/10/27 15:55)
Line 318: Line 318:
  
  
-===== Aus einem Tree oder From View einen anderen View per Python-Code öffnen ===== +===== View Ebene ===== 
 +=== View öffnen === 
 +Aus einem Tree oder From View einen anderen View öffnen
  
 <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 337:
             '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>
  
Line 349: Line 359:
 <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.1764783093.txt.gz · Last modified: 2025/12/03 17:31 by 47.128.44.9