<?xml version="1.0" encoding="utf-8"?>
<!-- © 2015 Antiun Ingeniería S.L. - Jairo Llopis
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->

<openerp>
<data>

<!-- Hide checkout without signup -->
<template id="suggestion_cart" inherit_id="website_sale_suggest_create_account.cart">
    <xpath expr="//a[@id='anonymous_checkout']" position="replace"/>
</template>

<template id="cart" inherit_id="website_sale.cart" priority="20">
    <xpath expr="//a[@href='/shop/checkout']" position="attributes">
        <attribute name="t-if">(
            user_id != website.user_id and
            not optional_products and
            website_sale_order and
            website_sale_order.website_order_line
        )</attribute>
    </xpath>
</template>

</data>
</openerp>

<?xml version="1.0" encoding="utf-8"?>
<!-- © 2015 Antiun Ingeniería S.L. - Jairo Llopis
     License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). -->

<openerp>
<data>

<!-- Hide checkout without signup -->
<template id="suggestion_cart" inherit_id="website_sale_suggest_create_account.cart">
    <xpath expr="//a[@id='anonymous_checkout']" position="replace"/>
</template>

<template id="cart" inherit_id="website_sale.cart" priority="20">
    <xpath expr="//a[@href='/shop/checkout']" position="attributes">
        <attribute t-translation="off" name="t-if">(
            user_id != website.user_id and
            not optional_products and
            website_sale_order and
            website_sale_order.website_order_line
        )</attribute>
    </xpath>
</template>

</data>
</openerp>

FIX prevent attribute to be translatable
FIX prevent attribute to be translatable

in website_sale_require_login module