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

How to remove extra labels in product form

By
Simon Lee
on 4/27/16, 12:07 PM 349 views

There are an annoying "False" after the Sale Price and Cost field in my product form. The screen capture is as below:

http://village.photos/images/user/63ed576d-5936-47dd-9dfa-f19b8ce60d08/ad4be703-1499-4ef7-b844-061c0c15e73f.png

Where do they come from? How can I remove them? Please advise. Thanks.

I am using odoo 9 community edition running on ubunt.

Simon Lee

0
Simon Lee
On 4/30/16, 5:47 AM

I finally found what was wrong. I had not set the default currency. To do that I went to Accounting/Settings/Accounting & Finance and change the "Default Company Currency to HKD. The 'false' words went away.

0
Jose Vasquez
On 4/27/16, 3:21 PM

Hi Simon lee

As I see it is currencies. The field is referring to a 'widget' to remove them must inherit the xml model, and remove the widget attributes, as follows:


<record id="ew_product_template_form_view" model="ir.ui.view">
    <field name="name">ew.product.template.form.view</field>
    <field name="model">product.template</field>
    <field name="inherit_id" ref="product.product_template_form_view"/>
    <field name="arch" type="xml">
        <field name="list_price" position="attributes">
            <attribute name="widget"></attribute>
        </field>
    </field>
</record>

or, if this another model

<record id="id_inherit" model="ir.ui.view">
    <field name="name">name_inherit</field>
    <field name="model">product.template</field>
    <field name="inherit_id" ref="stock_account.view_template_property_form"/>
    <field name="arch" type="xml">
        <field name="list_price" position="attributes">
            <attribute name="widget"></attribute>
        </field>
    </field>
</record>


I hope you help, regards.

Thank you for your advise. The code works to remove "False" after list_price. I tried to add similar code to remove False after standard_price as folllowed: ew.product.template.form.view product.template It does not removed the word False after Cost. How to resolve tis? Simon

Simon Lee
on 4/28/16, 1:09 PM

Maybe your field in another module, in my answer make reference to two inheritance, see your view if not having another inheritances. In developer mode, in your form product, next "http://prntscr.com/ay1kna" And see this lash "http://prntscr.com/ay1lca" Here see some inheritances, I hope help you

Jose Vasquez
on 4/28/16, 4:11 PM

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: 4/27/16, 12:07 PM
Seen: 349 times
Last updated: 4/30/16, 5:48 AM