合并企业版代码(未测试,先提交到测试分支)
This commit is contained in:
17
web_enterprise/views/partner_view.xml
Normal file
17
web_enterprise/views/partner_view.xml
Normal file
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<record model="ir.actions.server" id="download_contact">
|
||||
<field name="name">Download (vCard)</field>
|
||||
<field name="model_id" ref="model_res_partner"/>
|
||||
<field name="binding_model_id" ref="model_res_partner"/>
|
||||
<field name="binding_view_types">form</field>
|
||||
<field name="state">code</field>
|
||||
<field name="code">
|
||||
action = {
|
||||
'type': 'ir.actions.act_url',
|
||||
'url': '/web_enterprise/partner/%d/vcard' % record.id,
|
||||
'target': 'self',
|
||||
}
|
||||
</field>
|
||||
</record>
|
||||
</odoo>
|
||||
9
web_enterprise/views/webclient_templates.xml
Normal file
9
web_enterprise/views/webclient_templates.xml
Normal file
@@ -0,0 +1,9 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<odoo>
|
||||
<template id="webclient_login" inherit_id="web.login_layout">
|
||||
<xpath expr="//t[@t-call='web.frontend_layout']/t[last()]" position="after">
|
||||
<t t-set="body_classname" t-value="'o_home_menu_background'"/>
|
||||
<t t-set="login_card_classes" t-value="'rounded-0 shadow-sm bg-white'"/>
|
||||
</xpath>
|
||||
</template>
|
||||
</odoo>
|
||||
Reference in New Issue
Block a user