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

Why check box value not residing correctly in settings -> Configuration -> Accounting?

By
samba
on 7/30/14, 5:50 AM 1,141 views

I have inherit this  Settings-> Configuration -> Accounting. I have added one check box. when i mark this check box to true, after click on "apply" button, this check box showing like uncheked check box. But the value storing in database is "True".

.py file.

class account_config_settings_extension(osv.osv):
    _inherit = "account.config.settings"
    _columns = {
    'threelevelinvoiceapproval': fields.boolean('Three level checking for invoices'),
    }
    _defaults = {
        'threelevelinvoiceapproval':False
         }

.xml record:

 

<record id="account_config_settings_extension_form" model="ir.ui.view">
        <field name="name">account.config.settings.form</field>
        <field name="model">account.config.settings</field>
        <field name="type">form</field>
        <field name="inherit_id" ref="account.view_account_config_settings"/>
        <field name="arch" type="xml">
            <field name="default_sale_tax" position="after">  
                <br></br>
                <field name="threelevelinvoiceapproval"/>
                <label for="threelevelinvoiceapproval"/>
            </field>
        </field>
    </record>

 

I have tried without _defaults{ } also... but it's always showing uncheck check box, irrespective of the database value. Please tell me how can i overcome this problem?

Hi samba, I have the same issue. How did you solve it?

OdooTec, Hesham ELMAHDY
on 5/29/15, 4:37 PM
Still facing this issue, No one given solution for this. So i have changed my field place to company form.

On Sat, May 30, 2015 at 2:07 AM, Hesham ELMAHDY <hesham.elmahdy@odootec.com> wrote:

Hi samba, I have the same issue. How did you solve it?



Regards,

Hesham ELMAHDY

Sent by Odoo S.A. using Odoo about Forum Post Why check box value not residing correctly in settings -> Configuration -> Accounting?



--
--

Thanks and Regards,

Sambasiva rao,

Skype: samba.guduru2(skype)
samba
on 5/30/15, 7:02 AM
1
Matt Seymour
On 8/13/14, 9:50 AM

I'm also having a similar problem, any one know how to over come this?

Hi Matt, I have the same issue. How did you solve it?

OdooTec, Hesham ELMAHDY
on 5/29/15, 4:36 PM
0

Grover Menacho

--Grover Menacho--
2523
| 5 7 8
La Paz, Bolivia
--Grover Menacho--

Systems Engineer + MBA

Grover Menacho
On 5/29/15, 5:30 PM

Hello guys. Please refer to my answer: How can I save/load my own configuration/settings

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: 7/30/14, 5:50 AM
Seen: 1141 times
Last updated: 5/30/15, 7:02 AM