首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从odoo 9中的西班牙语odoo本地化安装模块l10n_es_aeat_mod303时出错

从odoo 9中的西班牙语odoo本地化安装模块l10n_es_aeat_mod303时出错
EN

Stack Overflow用户
提问于 2017-03-28 16:22:39
回答 1查看 893关注 0票数 1

在odoo 9中,通过西班牙语本地化安装模块l10n_es_aeat_mod303给出了以下错误:

代码语言:javascript
复制
(...)File "/etc/odoo/server/openerp/addons/base/ir/ir_model.py", line 995, in xmlid_lookup
raise ValueError('External ID not found in the system: %s' % (xmlid))
ParseError: ""External ID not found in the system: l10n_es.account_tax_template_s_iva4b" while evaluating
"[(6, False, [ref('l10n_es.account_tax_template_s_iva4b'), ref('l10n_es.account_tax_template_s_iva4s')])]"" while parsing /etc/odoo/server/addons_extra/l10n_es_aeat_mod303/data/tax_code_map_mod303_data.xml:9, near
<record id="aeat_mod303_map_line_01" model="l10n.es.aeat.map.tax.line">
    <field name="map_parent_id" ref="aeat_mod303_map"/>
    <field name="field_number">01</field>
    <field name="name">R&#233;gimen General - Base imponible 4%</field>
    <field name="to_regularize" eval="False"/>
    <field name="move_type">regular</field>
    <field name="field_type">base</field>
    <field name="sum_type">both</field>
    <field name="inverse" eval="False"/>
<!-- Base facturas de venta (haber) - Descuentos en facturas de venta(debe):
     S_IVA4B, S_IVA4S -->
<field name="tax_ids" eval="[(6, False, [ref('l10n_es.account_tax_template_s_iva4b'), ref('l10n_es.account_tax_template_s_iva4s')])]"/>

它似乎找不到标识符"account_tax_template_s_iva4b“。

安装模块之前必须安装一些依赖项,或者如何解决此错误?

EN

回答 1

Stack Overflow用户

发布于 2017-03-28 17:43:51

问题与依赖关系无关,但问题在数据中。

在模块中,可以使用l10n_es_aeat_mod303/data/tax_code_map_mod303_data.xml文件。

代码语言:javascript
复制
   <field name="tax_ids" eval="[(6, False, [ref('l10n_es.account_tax_template_s_iva4b'), ref('l10n_es.account_tax_template_s_iva4s')])]"/>

在odoo模块中找不到l10n_es.account_tax_template_s_iva4b外部id。

您可以在xml文件中手动更改tax_ids,或者在openerp.py文件中添加xml文件,在该模块工作之后。

这可能对你有帮助。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/43074881

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档