在系统中找不到外部 ID:"report.external_layout_header"
External ID not found in the system: "report.external_layout_header"
我想将模块报告从 odoo 10 迁移到 odoo 11,但 odoo 11 似乎不包含插件中称为报告的模块。你能帮我看看我能用什么代替吗
External ID not found in the system: report.external_layout_header" while parsing None:3, near
<data inherit_id="report.external_layout_header">
<xpath expr="//div[@class='header']" position="replace">
<div class="header">
<div class="row zero_min_height">
<div class="col-xs-12">
<div style="border-bottom: 1px solid black;"/>
</div>
</div>
<div class="row">
<div class="col-xs-6" name="company_address">
<span t-field="company.partner_id" t-field-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}" style="border-bottom: 1px solid black; display:inline-block;"/>
</div>
<div class="col-xs-6 text-right">
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 45px;"/>
</div>
</div>
</div>
</xpath>
</data>```
Second error: Element '<xpath expr="//div[@name='customer_address']/div/div">' cannot be located in parent view
None" while parsing None:3, near
<data inherit_id="stock.report_delivery_document">
<xpath expr="//div[@name='customer_address']/div/div" position="replace">
<span t-if="o.picking_type_id.code=='outgoing'"><strong>Adresse Client:</strong></span>
<span t-if="o.picking_type_id.code=='incoming'"><strong>Adresse Fournisseur:</strong></span>
</xpath>
<xpath expr="//h2" position="replace">
<h2 t-if="o.picking_type_id.code=='outgoing'">
Bon de livraison:
<span t-field="o.name"/>
</h2>
<h2 t-else="">
Bon de réception:
<span t-field="o.name"/>
</h2>
</xpath>
在 Odoo11 中,“report”模块与 "web" 集成模块。
将此report.external_layout_header替换为web.external_layout 并且不要忘记在您的依赖项中添加 'web'
inherit_id="web.external_layout"
你好,奥玛斯
你能不能写下下面的代码:
<data inherit_id="web.external_layout_background">
<xpath expr="//div[hasclass('o_background_header')]" position="replace">
<div class="header">
<div class="row zero_min_height">
<div class="col-xs-12">
<div style="border-bottom: 1px solid black;"/>
</div>
</div>
<div class="row">
<div class="col-xs-6" name="company_address">
<span t-field="company.partner_id" t-field-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}" style="border-bottom: 1px solid black; display:inline-block;"/>
</div>
<div class="col-xs-6 text-right">
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 45px;"/>
</div>
</div>
</div>
</xpath>
</data>```
希望对您有所帮助。
谢谢你。
我想将模块报告从 odoo 10 迁移到 odoo 11,但 odoo 11 似乎不包含插件中称为报告的模块。你能帮我看看我能用什么代替吗
External ID not found in the system: report.external_layout_header" while parsing None:3, near
<data inherit_id="report.external_layout_header">
<xpath expr="//div[@class='header']" position="replace">
<div class="header">
<div class="row zero_min_height">
<div class="col-xs-12">
<div style="border-bottom: 1px solid black;"/>
</div>
</div>
<div class="row">
<div class="col-xs-6" name="company_address">
<span t-field="company.partner_id" t-field-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}" style="border-bottom: 1px solid black; display:inline-block;"/>
</div>
<div class="col-xs-6 text-right">
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 45px;"/>
</div>
</div>
</div>
</xpath>
</data>```
Second error: Element '<xpath expr="//div[@name='customer_address']/div/div">' cannot be located in parent view
None" while parsing None:3, near
<data inherit_id="stock.report_delivery_document">
<xpath expr="//div[@name='customer_address']/div/div" position="replace">
<span t-if="o.picking_type_id.code=='outgoing'"><strong>Adresse Client:</strong></span>
<span t-if="o.picking_type_id.code=='incoming'"><strong>Adresse Fournisseur:</strong></span>
</xpath>
<xpath expr="//h2" position="replace">
<h2 t-if="o.picking_type_id.code=='outgoing'">
Bon de livraison:
<span t-field="o.name"/>
</h2>
<h2 t-else="">
Bon de réception:
<span t-field="o.name"/>
</h2>
</xpath>
在 Odoo11 中,“report”模块与 "web" 集成模块。
将此report.external_layout_header替换为web.external_layout 并且不要忘记在您的依赖项中添加 'web'
inherit_id="web.external_layout"
你好,奥玛斯
你能不能写下下面的代码:
<data inherit_id="web.external_layout_background">
<xpath expr="//div[hasclass('o_background_header')]" position="replace">
<div class="header">
<div class="row zero_min_height">
<div class="col-xs-12">
<div style="border-bottom: 1px solid black;"/>
</div>
</div>
<div class="row">
<div class="col-xs-6" name="company_address">
<span t-field="company.partner_id" t-field-options="{"widget": "contact", "fields": ["address", "name"], "no_marker": true}" style="border-bottom: 1px solid black; display:inline-block;"/>
</div>
<div class="col-xs-6 text-right">
<img t-if="company.logo" t-att-src="'data:image/png;base64,%s' % company.logo" style="max-height: 45px;"/>
</div>
</div>
</div>
</xpath>
</data>```
希望对您有所帮助。 谢谢你。