Hello,
i try to inherit a view (popup for mail.activity from partner form view) to add a domain to user_id field in order to have only internal user.
Here is my code
<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record model="ir\.ui\.view\"\ id=\"s_mail_activity_view_form_popup\"\>
\ \ \ \ \ \ \ \ \<field\ name=\"name\"\>test.mail.activity.view.form.popup</field>
<field name="model">res.users</field>
<field name="inherit_id" ref="mail.mail_activity_view_form_popup"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='user_id']" position="attributes">
<attribute name="domain">[('share', '=', False)]</attribute>
</xpath>
</field>
</record>
</odoo>
Sorry for the display of the code but i could not paste it without all the \
I could not see any error but i obtain the following error :
"field 'activity_category' does not exist"
I do nothing on this field also i don't understand this error
Do you have an idea ?
Vincent