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.
This also affect the fields list available when exporting into excel
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
Try using string
instead of field_description
:
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")