<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<object-views xmlns="http://axelor.com/xml/ns/object-views" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:schemaLocation="http://axelor.com/xml/ns/object-views http://axelor.com/xml/ns/object-views/object-views_5.2.xsd">
  
  <grid name="project-announcement-grid" title="Announcement" model="com.axelor.apps.businesssupport.db.ProjectAnnouncement">
    <field name="title"/>
    <field name="project"/>
    <field name="content"/>
    <field name="date"/>
  </grid>
  
  <form name="project-announcement-form" title="Announcement"
    model="com.axelor.apps.businesssupport.db.ProjectAnnouncement" width="large"
    onNew="action-project-record-project-announcement-onnew,action-business-support-attrs-project-default">
    <panel name="mainPanel">
      <field name="title" colSpan="12"/>
      <field name="project" form-view="project-form" grid-view="project-grid" onSelect="action-project-attrs-project-announcement-project-domain"/>
      <field name="date"/>
      <field name="content" widget="html" colSpan="12"/>
    </panel>
  </form>
  
  <action-attrs name="action-project-attrs-project-announcement-project-domain" >
    <attribute name="domain" for="project" expr="eval: &quot; ${__user__.id} MEMBER OF self.membersUserSet &quot;"/>
  </action-attrs>
  
  <action-record name="action-project-record-project-announcement-onnew" model="com.axelor.apps.businesssupport.db.ProjectAnnouncement">
    <field name="date" expr="eval: __date__"/>
  </action-record>
  
</object-views>