Odoo 在系统中找不到外部ID:“;报告.外部“U布局”标题;
我想将模块报告从odoo 10迁移到odoo 11,但似乎odoo 11在名为report的插件中不包含模块。你能帮我告诉我什么可以代替它吗Odoo 在系统中找不到外部ID:“;报告.外部“U布局”标题;,odoo,odoo-10,odoo-11,Odoo,Odoo 10,Odoo 11,我想将模块报告从odoo 10迁移到odoo 11,但似乎odoo 11在名为report的插件中不包含模块。你能帮我告诉我什么可以代替它吗 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="//di
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>
分析无时在系统中找不到外部ID:report.External\u layout\u header“3,靠近
```
第二个错误:在父视图中找不到元素“”
分析None时为“None”:3,靠近
地址客户:
Adresse FOURNISEUR:
利夫莱森之家:
邦德·雷耶夫:
在Odoo11中,“报告”模块与“web”模块集成
将此报告。外部布局\u标题替换为web。外部布局,不要忘记在依赖项中添加“web”
inherit_id="web.external_layout"
你好,omas 你能写下面的代码吗
<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>```
```
我希望这对你有帮助。
多谢各位 是的,谢谢。这对我很有帮助。但在同一模块中,我看到了另一个错误。在父视图中找不到元素“”。我将更新我的问题,以便您可以看到完整的错误,如果您能帮助我,请您提供类似于://div[@name='customer\u address']//div[hasclass('col-xs-4')]/div的xpath并检查。再次感谢您的回复。在父视图中找不到元素“”。11版中不存在“customer_address”。现在,您必须替换customer_address的所有div,而不是仅替换一个div。因为此div还继承到另一个模块中。