OCA / odoo-module-migrator

Python library to migrate odoo base code from a version to another
GNU Affero General Public License v3.0
123 stars 112 forks source link

[IMP] MIgrate toggle-active button to v13 #46

Closed yajo closed 3 years ago

yajo commented 3 years ago

Will translate this:

<div class="oe_button_box" name="button_box">
    <button
        class="oe_stat_button"
        icon="fa-archive"
        name="toggle_active"
        type="object"
    >
        <field
            name="active"
            options='{"terminology": "archive"}'
            widget="boolean_button"
        />
    </button>
</div>

Into this:


<div class="oe_button_box" name="button_box">
    <field name="active" invisible="1" />
    <widget
        name="web_ribbon"
        title="Archived"
        bg_color="bg-danger"
        attrs="{'invisible': [('active', '=', True)]}"
    />
</div>

Whitespace is bad formatted, but that's a job for #41.

@Tecnativa TT25940

yajo commented 3 years ago

/ocabot merge nobump

OCA-git-bot commented 3 years ago

Hey, thanks for contributing! Proceeding to merge this for you. Prepared branch master-ocabot-merge-pr-46-by-Yajo-bump-nobump, awaiting test results.

OCA-git-bot commented 3 years ago

Congratulations, your PR was merged at 18fe50f39880125a4aa6c07333e3d3f3eb73291d. Thanks a lot for contributing to OCA. ❤️