how is action id converted to number?

Asked by Cuong

Hi,

In definition of action window, I wonder how the id 'action_picking_tree4' is converted to number (in database, it is 324)? How does OpenERP know mapping between 'action_picking_tree4' and 324?

==========
<record id="action_picking_tree4" model="ir.actions.act_window">
            <field name="name">Incoming Shipments</field>
            <field name="res_model">stock.picking</field>
            <field name="type">ir.actions.act_window</field>
            <field name="view_type">form</field>
            <field name="view_mode">tree,form,calendar</field>
            <field name="domain">[('type','=','in')]</field>
            <field name="context">{'contact_display': 'partner_address',"search_default_availab
le":1}</field>
            <field name="search_view_id" ref="view_picking_in_search"/>
            <field name="help">The Incoming Shipments is the list of all orders you will receiv
e from your supplier. An incoming shipment contains a list of products to be received according
 to the original purchase order. You can validate the shipment totally or partially.</field>
        </record>

==========

Regards,

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Riken Bhorania (OpenERP)
Solved:
Last query:
Last reply:
Revision history for this message
Best Riken Bhorania (OpenERP) (rch-openerp) said :
#1

Hello Cuong ,

Please fire the following query on your corresponding database:

select * from ir_model_data where name='action_picking_tree4'

And check both column 'name' ('action_picking_tree4') and 'res_id' (324).

Hope this will help you.

Revision history for this message
Cuong (bhcuong2008) said :
#2

Hi,

I've seen the relationship between these.

One more question is that this number (324) is randomly created by OpenERP?

Thank you very much.

Revision history for this message
Riken Bhorania (OpenERP) (rch-openerp) said :
#3

Yes , because in my database that number is 292

Revision history for this message
Cuong (bhcuong2008) said :
#4

Thanks Riken Bhorania (Open ERP), that solved my question.