Skip to content

Commit

Permalink
Merge pull request OCA#88 from Tecnativa/9.0-PR-partner_event_onchang…
Browse files Browse the repository at this point in the history
…e_contact

[IMP] Fix pending TODO and add known issue
  • Loading branch information
pedrobaeza committed Aug 8, 2017
2 parents 1ea65f4 + 9411cc2 commit a5b99a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 5 additions & 1 deletion partner_event/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ be created automatically with name, email and phone fields.
If partner already exists and user only fills email, name and phone fields will
be filled with partner's data.

The event registration values email, name and phone will be changed if the
related partner values are changed and the event end date hasn't passed yet.

Usage
=====

Expand All @@ -46,7 +49,8 @@ and welcomed feedback.
Known Issues / Roadmap
======================

* Remove some TODOs if https://github.com/odoo/odoo/pull/12997 is merged.
* In registration contact field has no onchange check so changing the partner
is not going to change any info on the registration.

Credits
=======
Expand Down
6 changes: 2 additions & 4 deletions partner_event/views/event_registration_view.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,12 @@
<field name="model">event.registration</field>
<field name="inherit_id" ref="event.view_registration_search"/>
<field name="arch" type="xml">
<!-- TODO Change expr if https://github.com/odoo/odoo/pull/12997 is merged -->
<xpath expr="//filter[@domain=&quot;[('state', 'in', ['draft', 'open', 'done'])]&quot;]"
position="after">
<filter name="expected" position="after">
<filter
name="done"
domain="[('state', '=', 'done')]"
string="Attended"/>
</xpath>
</filter>
</field>
</record>

Expand Down

0 comments on commit a5b99a5

Please sign in to comment.