Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

Value in own settings is not stored

By
birduser
on 5/22/14, 7:46 PM 632 views

I made a settings page for my custom module but when I click the execute button, the value in field "ob_partner_placeholder" is not stored.

XML

<?xml version="1.0" encoding="UTF-8"?>
<openerp>
    <data>
    
        <record id="view_custom_config_settings" model="ir.ui.view">
            <field name="name">Openbird Partner</field>
            <field name="model">ob.partner.settings</field>
            <field name="arch" type="xml">
                <form string="Openbird Partner" version="7.0" class="oe_form_configuration">
                    <sheet>
                            <button string="Speichern" type="object" name="execute" class="oe_highlight"/>
                            
                            <!-- <button string="Cancel" type="object" name="cancel" class="oe_link"/> -->
                        <group>
                            <group>
                                <field name="ob_partner_placeholder"/>
                            </group>
                            <group></group>
                        </group>
                    </sheet>
                </form>
            </field>
        </record>
        
        <record id="action_custom_config" model="ir.actions.act_window">
            <field name="name">Openbird Partner</field>
            <field name="type">ir.actions.act_window</field>
            <field name="res_model">ob.partner.settings</field>
            <field name="view_mode">form</field>
            <field name="target">inline</field>
        </record>
    
        <menuitem id="menu_custom_config" name="OpenBird Partner" parent="base.menu_config" sequence="16" action="action_custom_config"/>

    </data>
</openerp>

 

Py

class ob_partner_settings(osv.osv):
    _name = 'ob.partner.settings'
    _inherit = 'res.config.settings'
    _columns = {
        'ob_partner_placeholder': fields.char('Trennzeichen', size=5),
    }

 

Did I forgot something?

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 5/22/14, 7:46 PM
Seen: 632 times
Last updated: 3/16/15, 8:10 AM