擅长:python、mysql、java
<p>网站模块不是已经有一个签名页了吗?不管怎样,你可以继承网站布局要自定义网站菜单,请尝试以下操作:</p>
<pre><code><template id="custom_sign_in" customize_show="True" inherit_id="website.layout" name="Custom Sign In">
<xpath expr="//ul[@id='top_menu']" position="inside">
<li groups="base.group_public">
<a t-attf-href="/web/YourSignInPage">
<b>Custom Sign in</b>
</a>
</li>
<li t-if="website.user_id != user_id">
<a t-attf-href="/web/YourAccountPage">
<b>Custom Account</b>
</a>
</li>
</xpath>
</template>
</code></pre>
<p>我用的是奥多8,不确定这是否适合奥多9,如果不起作用请告诉我。在</p>