odoo / odoo

Odoo. Open Source Apps To Grow Your Business.
https://www.odoo.com
Other
38.75k stars 25.1k forks source link

[16.0] col and colspan behaviour #109447

Open BT-anieto opened 1 year ago

BT-anieto commented 1 year ago

In the views, the way of rendering groups with col and colspan attributes has changed. There is nothing in the migration notes where it is said that the behaviour has changed.

Impacted versions: v16

Steps to reproduce: In a form view, create a page with the next xml:

<page name="page_mapping">
    <group col="3" colspan="4">
        <button name="remove_unused_mapping_fields" string="Remove unused mapping" type="object"/>
         <button name="add_missing_mapping_fields" string="Add missing mapping"  type="object"/>
         <button name="fill_mapping_fields" string="Reset mapping" type="object" confirm="Are you sure? All the mapping values will be overwritten"/>
     </group>
     <group>
         <field name="edi_mapping_fields_ids" nolabel="1" context="{'default_edi_instance_id': id}" attrs="{'readonly': [('odoo_model_id', '=', False)]}"/>
     </group>
</page>

Current behavior: image

Expected behavior: image

Same behaviour in (at least) v12, v13 and v15

Video/Screenshot link (optional):

Support ticket number submitted via odoo.com/help (optional):

javierjcf commented 1 year ago

I notice that if you want to display a one2Many field inside a page (like before), you need to put it outside a group tag, or within a group tag but with colspan="2". I dont know if it's a bug or a new behavior of bootstrap version.

vava-odoo commented 1 year ago

Hi @BT-anieto and @javierjcf

There were a few changes in 16. You'll probably find your answer by looking at this PR message: https://github.com/odoo/odoo/pull/102119 Hope it helps.

Regards,