Migration of all python code, mostly withtout chagnes. And adapting xml files to guidelines. On calendar.py, some changes have been perform to make the migration works : - `_compute` method has been split into `_compute_dates`, `_compute_attendee` and `_compute_display_time`. - remove unused method `onchange_partner_ids`, `check_partners_email` - make `compute_rule_string` use a cache record instead of a value dict to avoid crashes - remove `new_invitation_token` method, and make it a default value on attendee creation - add a default value on `day` field, otherwise the "Please select a proper day of the month" exception is raised during the onchange
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<data noupdate="1">
|
|
|
|
<record id="calendar_event_rule_my" model="ir.rule">
|
|
<field name="name">Own events</field>
|
|
<field ref="model_calendar_event" name="model_id"/>
|
|
<field name="domain_force">[('partner_ids','in',user.partner_id.id)]</field>
|
|
<field name="groups" eval="[(4, ref('base.group_portal'))]"/>
|
|
</record>
|
|
|
|
<record id="calendar_event_rule_employee" model="ir.rule">
|
|
<field ref="model_calendar_event" name="model_id"/>
|
|
<field name="name">All Calendar Event for employees</field>
|
|
<field name="domain_force">[(1,'=',1)]</field>
|
|
<field eval="[(4,ref('base.group_user'))]" name="groups"/>
|
|
</record>
|
|
|
|
<record id="calendar_attendee_rule_my" model="ir.rule">
|
|
<field name="name">Own attendees</field>
|
|
<field ref="model_calendar_attendee" name="model_id"/>
|
|
<field name="domain_force">[(1,'=',1)]</field>
|
|
<field name="groups" eval="[(4, ref('base.group_portal'))]"/>
|
|
</record>
|
|
|
|
</data>
|
|
</odoo>
|