Skip to content

Instantly share code, notes, and snippets.

@sehrishnaz
Created May 9, 2022 06:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sehrishnaz/5502374da94ebb4202042a23159d9b90 to your computer and use it in GitHub Desktop.
Save sehrishnaz/5502374da94ebb4202042a23159d9b90 to your computer and use it in GitHub Desktop.
How to inherit task form view in Odoo
<record id="inherit_project_task_view_form" model="ir.ui.view">
<field name="name">project.task.view.inherit.form</field>
<field name="model">project.task</field>
<field name="inherit_id" ref="project_enterprise.project_task_view_form"/>
<field name="arch" type="xml">
<xpath expr="//label[@for='planned_date_begin']" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
<xpath expr="//div[hasclass('w-100')]" position="attributes">
<attribute name="invisible">1</attribute>
</xpath>
</field>
</record>
@sehrishnaz
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment