add documentation part

This commit is contained in:
Administrator
2022-07-20 15:22:15 +01:00
parent cc4f220066
commit ffedf1cc64
2 changed files with 38 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_5.2.xsd">
<module name="base" package="com.axelor.apps.base.db" />
<entity name="Documentation" lang="java">
<string name="title" title="Title" />
<string name="description" title="Description" />
<string name="url" title="Url" />
<many-to-one name="docFile" ref="com.axelor.meta.db.MetaFile" title="Doc file" />
<binary name="image" title="Photo" />
</entity>
</domain-models>

View File

@@ -0,0 +1,21 @@
<?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="documentation-grid" title="Documentation list" model="com.axelor.apps.base.db.Documentation">
<field name="title"/>
<field name="description"/>
<field name="docFile" widget="binary-link"/>
</grid>
<form name="documentation-form" title="Documentation" model="com.axelor.apps.base.db.Documentation">
<panel title="Overview">
<field name="title"/>
<field name="description" widget="html" colSpan="12"/>
<field name="docFile" title="Document" widget="binary-link" canNew="true" form-view="meta-files-form" grid-view="meta-files-grid"/>
</panel>
</form>
</object-views>