It is currently Sun Feb 12, 2012 7:16 am

All times are UTC + 2 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Basic question related to Python and XML
PostPosted: Tue Mar 09, 2010 2:26 pm 
Offline

Joined: Tue Mar 09, 2010 12:21 pm
Posts: 13
Location: India
Hi all,

I am very new in the tiny world(not same as like as name tiny) , However from last 15 day I am reading the book (Open ERP tutorial) and Developer Book.

I did one customization tutorial is (School Management System)

class travel_room(osv.osv):
_name = 'travel.room'
_inherit = 'product.product'
_table = 'product_product'
_columns = {
'beds': fields.integer('Nbr of Beds'),
'view': fields.selection([('sea','Sea'),('street','Street')], 'Room View'),
'hostel_id': fields.many2one('travel.hostel', 'Hostel'),
}
travel_room()

From above code reference my understanding is class travel_room is inherited form osv.osv , also class contain _name,_inherit,_table are member variable and _column is dictionary data structure in term of python terminology .

Does my understanding correct or not ?


As i see some *_view.xml file in the module(travel,base_contact,sale,crm ... etc) i don't get how "ir.ui.view" and "ir.actions_act_window" object used to shows GUI,also where this object create?

However "name,model,type,res_model,view_type,view_mode" are default option of the filed tag?

1) <record>
<field>travel.flight</field>
<field>travel.flight</field>
<field>form</field>
<field>

2) <record>
<field>Single rooms</field>
<field>travel.hostel</field>
<field>[('beds','=',1)]</field>
<field>form</field>
<field>tree,form</field>
</record>



Regards,
Shankar


:roll: :cry:

_________________
Shankar


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 21, 2010 11:45 pm 
Offline

Joined: Fri Nov 03, 2006 9:02 am
Posts: 111
Location: BC, Canada
Quote:
As i see some *_view.xml file in the module(travel,base_contact,sale,crm ... etc) i don't get how "ir.ui.view" and "ir.actions_act_window" object used to shows GUI,also where this object create?


'ir' and 'res' are in the 'base' module.

_________________
Regards, Paul Evans


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 24, 2010 6:35 am 
Offline

Joined: Tue Mar 09, 2010 12:21 pm
Posts: 13
Location: India
Hello gemlog,
Thanks for reply.
Now my problem get solved.
Thanks.

_________________
Shankar


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 24, 2010 6:40 am 
Offline

Joined: Fri Nov 03, 2006 9:02 am
Posts: 111
Location: BC, Canada
You're welcome. I couldn't find them for a while either.

_________________
Regards, Paul Evans


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 2 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:

Protected by Anti-Spam ACP