Hi, I need help with setting up custom fields in the Inventory App.
I created some new columns in my products and I want to add
them to the template for creating new products.
In the product.template.product.form module,
I created a custom view for the inherited views where I set them in XML:
<xpath expr="//page[@name='general_information']" position="inside"> <field name="x_dot" string="DOT" colspan="2" nolabel="False" placeholder="Enter DOT" help="Enter DOT for tire" groups="base.group_user" class="o_row"/> <field name="default_code" string="Vehicle Type" class="o_row"/> <field name="x_znac_pneu" string="Tire Brand" class="o_row"/> <field name="x_rozmer" string="Dimension" class="o_row"/> <field name="x_hlbka" string="Tread Depth" class="o_row"/> <field name="x_regal" string="Shelf" class="o_row"/> <field name="x_typlz" string="Type L/Z" class="o_row"/> <field name="x_pneu_k" string="PNEU/Koleso" class="o_row"/> <field name="x_dpa" string="Typ otubia" class="o_row"/> <field name="x_datum" date="Dátum" class="o_row"/> <field name="x_skladn" string="Uskladnil" class="o_row"/> <field name="x_typ" string="typ" class="o_row"/> </xpath>
The fields have been added there and are also functional,
when I fill them in and add a product, the corresponding
columns in the product list are created and filled in.
The problem is that these fields are not marked in any way,
I do not see their name in the add product tab and any underscore.
So if I did not know that they were there, I would not see them.
Is it necessary to create custom CSS for these fields?
Or where could the problem be? I have Odoo version 18
and it runs on Ubuntu 24.04.
Thanks for the help.