Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Configuration settings - creates a new record every time.

by
manuel
- 09/26/2014 23:46:18
Le 26/09/14 09:39, Maxim Litnitskiy a écrit :
<blockquote cite="mid:CACA3pe-VAa4xhBLTUp9CA=KWsGFS6PkYsD+LgaoMQJqa_Zcckg@mail.gmail.com" type="cite">
        <record id="asterisk_server_settings" model="ir.actions.act_window">
            <field name="name">Asterisk Dialer</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">asterisk.server.settings</field>
            <field name="view_id" ref="view_asterisk_server_settings"/>
            <field name='view_type'>form</field>
            <field name="view_mode">form</field>
            <field name="target">inline</field>
<field name="res_id">1</field>
        </record>
I'm not an expert, but it would not be best to this:

    <field name="res_id" ref="your_res_id_xml_id"/>

?