Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4570 Lượt xem

I am trying to add a record for project.worksheet.template. Here's the code:

<?xml version="1.0" encoding="UTF-8" ?>

<odoo>

    <data noupdate="1">

        <record id="fsm_worksheet_template_service" model="project.worksheet.template">

            <field name="name">Service Report</field>

            <field name="color">2</field>

        </record>

</data>

</odoo>



AND I GOT THIS ERROR:

 File "/opt/ODOO/odoo14/odoo/tools/convert.py", line 684, in _tag_root

    etree.tostring(rec, encoding='unicode').rstrip()

odoo.tools.convert.ParseError: while parsing /opt/modules/fsm_custom/data/fsm_report_data.xml:4, near

<record id="fsm_worksheet_template_service" model="project.worksheet.template">

            <field name="name">Service Report</field>

            <field name="color">2</field>

        </record> - - -


Can anybody have an idea about this error?

Ảnh đại diện
Huỷ bỏ

I have the same problem.How did you solve it?

Tác giả

make sure that you install first the module that you depends on

Did you solve the problem, Aurel?

Câu trả lời hay nhất

Hola debes de poner en manifiest esto ,     "depends": ['base','account',],  ya que al hacer una nueva accion , debe de tener algun modulo de depencia a parte de la base----- y asi puedes volver a actualizar el modulo cuando quieras

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 21
2593
0
thg 12 21
2142
0
thg 8 21
1199
1
thg 7 25
2456
2
thg 7 25
7912