OCA / maintainer-tools

Odoo Maintainers Tools & conventions for OCA members which evaluate and maintain repositories.
GNU Affero General Public License v3.0
277 stars 460 forks source link

Wiki migration 17.0: New Settings format #594

Closed AntoniRomera closed 11 months ago

AntoniRomera commented 11 months ago

The <div> tag with class "o_settings_container" now is <block>. The <h2> Title is now attribute called "title" inside <block>. The <div> tag with class "o_setting_box" now is <setting>. Now is not neccessary the divs "o_setting_right_pane" or "o_setting_left_pane". Inside <setting> now you fill with the fields and neccessary buttons

Old Format

<h2>Setting Block Title</h2>
<div class="row mt16 o_settings_container" name="partner_names_order">
    <div class="col-xs-12 col-md-6 o_setting_box">
        <div class="o_setting_right_pane">
            <field name="partner_names_order" />
            <field name="partner_names_order_changed" invisible="1" />
            <button
                name="action_recalculate_partners_name"
                string="Recalculate names"
                icon="fa-play"
                type="object"
                help="Recalculate names for all partners. This process could take so much time if there are more than 10,000 active partners"
                invisible="not partner_names_order_changed"
            />
        </div>
    </div>
</div>

New Format

<block title="Setting Block Title">
    <setting>
        <field name="partner_names_order"  nolabel="1"/>
        <field name="partner_names_order_changed" invisible="1" />
        <button
            name="action_recalculate_partners_name"
            string="Recalculate names"
            icon="fa-play"
            type="object"
            help="Recalculate names for all partners. This process could take so much time if there are more than 10,000 active partners"
            invisible="not partner_names_order_changed"
        />
    </setting>
</block>
pedrobaeza commented 11 months ago

Included in https://github.com/OCA/maintainer-tools/wiki/Migration-to-version-17.0/_compare/29568bc42a6ba5c127d06321b75c0e7f530df98a...865e82e80d8fbcfa3b0cc9b3a8986a7a95e4c2b8

Thanks for the guidelines.