Compare commits
5 Commits
985baf2a25
...
ICOP-Mappi
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
18e77dc37e | ||
|
|
fb9c4ff74a | ||
|
|
15ce055b13 | ||
|
|
936c00cda4 | ||
|
|
55e9f4455c |
@@ -0,0 +1,13 @@
|
|||||||
|
<?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="Address" lang="java">
|
||||||
|
|
||||||
|
<many-to-one name="state" ref="com.axelor.apps.crm.db.StateAdministration" title="State" />
|
||||||
|
|
||||||
|
</entity>
|
||||||
|
|
||||||
|
</domain-models>
|
||||||
@@ -16,7 +16,8 @@
|
|||||||
<integer name="rating" title="Rating" selection="crm.partner.potentiality.selection" />
|
<integer name="rating" title="Rating" selection="crm.partner.potentiality.selection" />
|
||||||
|
|
||||||
<many-to-one name="facility" title="Facility" ref="com.axelor.apps.crm.db.Facility"/>
|
<many-to-one name="facility" title="Facility" ref="com.axelor.apps.crm.db.Facility"/>
|
||||||
<!--<many-to-many name="stateAdministrationList" title="State Administration" ref="com.axelor.apps.crm.db.StateAdministration"/>-->
|
<many-to-many name="stateAdministrationList" title="State Administration" ref="com.axelor.apps.crm.db.StateAdministration"/>
|
||||||
|
<one-to-many name="productList" title="Products" ref="com.axelor.apps.base.db.Product" mappedBy="fabriquant"/>
|
||||||
|
|
||||||
<track>
|
<track>
|
||||||
<field name="accountNo"/>
|
<field name="accountNo"/>
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
<?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="Product" lang="java">
|
||||||
|
|
||||||
|
|
||||||
|
<!-- ICOP fields -->
|
||||||
|
<string name="dci" title="DCI"/>
|
||||||
|
<integer name="colisage" title="Colisage"/>
|
||||||
|
<boolean name="isHospitalUsed" title="Is Hospital Used"/>
|
||||||
|
<many-to-one name="fabriquant" title="Fabriquant" ref="com.axelor.apps.base.db.Partner"/>
|
||||||
|
|
||||||
|
<track>
|
||||||
|
<field name="dci"/>
|
||||||
|
<field name="colisage"/>
|
||||||
|
<field name="isHospitalUsed"/>
|
||||||
|
<field name="fabriquant"/>
|
||||||
|
</track>
|
||||||
|
</entity>
|
||||||
|
|
||||||
|
</domain-models>
|
||||||
@@ -0,0 +1,46 @@
|
|||||||
|
<?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="crm" package="com.axelor.apps.crm.db"/>
|
||||||
|
|
||||||
|
<entity name="StateAdministration" lang="java">
|
||||||
|
|
||||||
|
<string name="name" title="Name" required="true"/>
|
||||||
|
<string name="typeSelect" title="Type" selection="state.administration.type.select" required="true"/>
|
||||||
|
|
||||||
|
<many-to-one name="parent" ref="com.axelor.apps.crm.db.StateAdministration"/>
|
||||||
|
|
||||||
|
<string name="fullName" namecolumn="true" title="Full name">
|
||||||
|
<![CDATA[
|
||||||
|
|
||||||
|
String fullName = "";
|
||||||
|
|
||||||
|
com.axelor.apps.crm.db.StateAdministration current = this;
|
||||||
|
|
||||||
|
while (current != null && current.getName() != null) {
|
||||||
|
|
||||||
|
if (current == current.getParent()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (fullName.isEmpty()) {
|
||||||
|
fullName = current.getName();
|
||||||
|
} else {
|
||||||
|
fullName = current.getName() + " - " + fullName;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
current = current.getParent();
|
||||||
|
}
|
||||||
|
|
||||||
|
return fullName;
|
||||||
|
|
||||||
|
]]>
|
||||||
|
</string>
|
||||||
|
|
||||||
|
</entity>
|
||||||
|
|
||||||
|
</domain-models>
|
||||||
Reference in New Issue
Block a user