예제 #1
0
def migrate(env, version):
    openupgrade.load_data(env.cr, 'website_blog',
                          'migrations/12.0.1.0/noupdate_changes.xml')
    openupgrade_120.convert_field_bootstrap_3to4(
        env,
        'blog.post',
        'content',
    )
예제 #2
0
def migrate(env, version):
    cr = env.cr
    openupgrade.load_data(cr, 'event',
                          'migrations/12.0.1.0/noupdate_changes.xml')
    openupgrade.delete_record_translations(
        cr,
        'event',
        [
            'event_reminder',
            'event_registration_mail_template_badge',
            'event_subscription',
        ],
    )
    openupgrade_120.convert_field_bootstrap_3to4(env, "event.event",
                                                 "description")
예제 #3
0
def migrate(env, version):
    openupgrade_120.convert_field_bootstrap_3to4(
        env,
        'event.type',
        'description',
    )
예제 #4
0
def migrate(env, version):
    openupgrade_120.convert_field_bootstrap_3to4(
        env,
        'im_livechat.channel',
        'website_description',
    )
예제 #5
0
def migrate(env, version):
    openupgrade_120.convert_field_bootstrap_3to4(
        env,
        'res.partner',
        'website_description',
    )
예제 #6
0
def migrate(env, version):
    map_sale_order_require_payment(env.cr)
    map_sale_order_template_require_payment(env.cr)
    set_group_sale_order_template(env.cr)
    openupgrade.load_data(env.cr, 'sale_quotation_builder',
                          'migrations/12.0.1.0/noupdate_changes.xml')
    openupgrade.delete_records_safely_by_xml_id(
        env,
        [
            'sale_quotation_builder.confirmation_mail',
        ],
    )
    openupgrade_120.convert_field_bootstrap_3to4(
        env,
        'product.template',
        'quotation_only_description',
    )
    openupgrade_120.convert_field_bootstrap_3to4(
        env,
        'sale.order',
        'website_description',
    )
    openupgrade_120.convert_field_bootstrap_3to4(
        env,
        'sale.order.line',
        'website_description',
    )
    openupgrade_120.convert_field_bootstrap_3to4(
        env,
        'sale.order.option',
        'website_description',
    )
    openupgrade_120.convert_field_bootstrap_3to4(
        env,
        'sale.order.template',
        'website_description',
    )
    openupgrade_120.convert_field_bootstrap_3to4(
        env,
        'sale.order.template.line',
        'website_description',
    )
    openupgrade_120.convert_field_bootstrap_3to4(
        env,
        'sale.order.template.option',
        'website_description',
    )