我的模块继承于Odoo->网站模块。 这是我的代码:
<template id="continue_shopping" inherit_id="website_sale.cart" customize_show="True"
name="Continue Shopping Button">
<xpath expr="//a[@href='/shop']" position="after" groups="sales_team.group_sale_salesman">
<a href="/shop_sales" class="btn btn-default mb32">
<span class="fa fa-long-arrow-left"/>
<span class="hidden-xs">Continue Shopping</span>
<span class="visible-xs-inline">Continue</span>
</a>
<field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
</xpath>
</template>
<record id="menu_shop_sales" model="website.menu">
<field name="name">Shop List</field>
<field name="url">/shop_sales</field>
<field name="parent_id" ref="website.main_menu"/>
<field name="sequence" type="int">21</field>
<field name="groups_id" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
<field name="groups" eval="[(4, ref('sales_team.group_sale_salesman'))]"/>
</record>
对改进此代码有帮助吗?