Browse Source

ville liste evenement

dev-rcn
root 3 years ago
parent
commit
1cf3dbccd3
2 changed files with 4 additions and 1 deletions
  1. +3
    -0
      models/event.py
  2. +1
    -1
      views/event_templates_list.xml

+ 3
- 0
models/event.py View File

@ -67,6 +67,9 @@ class KalachakraEvent(models.Model):
#for event generated from a parent event
parent_event_id=fields.Many2one('event.event',string='parent event', readonly=True)
find_out_more_link=fields.Char('Find out more link')
city=fields.Char('city', related="address_id.city")
def write(self,vals):


+ 1
- 1
views/event_templates_list.xml View File

@ -169,7 +169,7 @@
</t>
</xpath>
<xpath expr="//div[@itemprop='location']" position="replace">
<div itemprop="location" t-field="event.address_id.city"/>
<div itemprop="location" t-field="event.city"/>
</xpath>


Loading…
Cancel
Save