Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Odoo `field_description` is Assigned But Not Applied

I’m successfully creating an Odoo module and now i’m about to get it a finishing touch.

So in my .py files i have a field that named x_show_in_ecommerce and x_description_sale_ecommerce. I’ve assigned it’s field_description, but in Odoo it doesn’t seems to be applied.

I expect this Field Label to be filled with other words as i already assigned in my .py files, but what i get is the same name as the field itself but without space.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

This also affect the fields list available when exporting into excel

enter image description here

Here’s my .py files :

class ProductTemplateInherited(models.Model):
    _inherit = "product.template"

    x_show_in_ecommerce = fields.Boolean(field_description="Show In Ecommerce", store=True, help="If this checkbox filled, this product will show in Central E-Commerce", ttype="boolean")
    x_description_sale_ecommerce = fields.Text(field_description="Description Sale Ecommerce", store=True, help="A description of the Product that you want to communicate to your customers. This description will be pulled to E-Commerce", ttype="text")

Thank you for your help and insight

>Solution :

Try

x_show_in_ecommerce = fields.Boolean(string="Show In Ecommerce", store=True, help="If this checkbox filled, this product will show in Central E-Commerce", ttype="boolean")
x_description_sale_ecommerce = fields.Text(string="Description Sale Ecommerce", store=True, help="A description of the Product that you want to communicate to your customers. This description will be pulled to E-Commerce", ttype="text")
Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading