İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
1094 Görünümler
I want to inherit the Timesheets page in the notebook in the project module to add fields:
1. start_time ( Float )
2. pause_time ( Float )
3. stop_time ( Float )
here is my code:

<record id="project_task_timesheet_ids_view_tree_inherit" model="ir.ui.view">

<field name="name">project.task.timesheet.ids.view</field>

<field name="model">account.analytic.line</field>

<field name="inherit_id" ref="hr_timesheet.view_task_form2_inherited"/>

<field name="arch" type="xml">

<xpath expr="//notebook/page[@name='page_timesheets']" position="inside">

<field name="start_time" widget="timesheet_uom"/>

<field name="pouse_time" widget="timesheet_uom"/>

<field name="stop_time" widget="timesheet_uom"/>

</xpath>

</record>

but I get an error

raise ParseError(msg) from None  # Restart with "--log-handler odoo.tools.convert:DEBUG" for complete traceback
    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
odoo.tools.convert.ParseError: while parsing /home/mangandaralam-sakti/odoo/odoo18c/custom_addons/timesheets_timer/views/account_analytic_line_inherit_view.xml:25
Error while validating view near:

<form string="Task" class="o_form_project_tasks" js_class="project_task_form">
                    <field name="recurrence_id" invisible="1"/>
                    <field name="allow_task_dependencies" invisible="1"/>

Field `recurrence_id` does not exist
how to fix it?
Avatar
Vazgeç
En İyi Yanıt

Hello Mangandaralam Sakti,
I hope you are doing well,

Here is an Solution or Implementation to solve your error refer added given below code:



Hope this information helps you.

Thanks & Regards,
Kunjan Patel

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Ağu 19
2554
0
Oca 25
899
1
Ağu 24
4359
1
Kas 22
5114
0
May 17
4027