Line 324... |
Line 324... |
324 |
/**
|
324 |
/**
|
325 |
* @return the template id for this template (ex: "sales.quote")
|
325 |
* @return the template id for this template (ex: "sales.quote")
|
326 |
*/
|
326 |
*/
|
327 |
public String getTemplateId() {
|
327 |
public String getTemplateId() {
|
328 |
if (this.row != null && this.row.getTable().getFieldsName().contains("ID_MODELE")) {
|
328 |
if (this.row != null && this.row.getTable().getFieldsName().contains("ID_MODELE")) {
|
329 |
if (row.isForeignEmpty("ID_MODELE")) {
|
329 |
if (row.getObject("ID_MODELE") == null || row.isForeignEmpty("ID_MODELE")) {
|
330 |
TypeModeleSQLElement typeModele = Configuration.getInstance().getDirectory().getElement(TypeModeleSQLElement.class);
|
330 |
TypeModeleSQLElement typeModele = Configuration.getInstance().getDirectory().getElement(TypeModeleSQLElement.class);
|
331 |
String modele = typeModele.getTemplateMapping().get(this.row.getTable().getName());
|
331 |
String modele = typeModele.getTemplateMapping().get(this.row.getTable().getName());
|
332 |
if (modele == null) {
|
332 |
if (modele == null) {
|
333 |
System.err.println("No default modele in table TYPE_MODELE for table " + this.row.getTable().getName());
|
333 |
System.err.println("No default modele in table TYPE_MODELE for table " + this.row.getTable().getName());
|
334 |
Thread.dumpStack();
|
334 |
Thread.dumpStack();
|