Most Powerful Open Source ERP

Latest ERP5 Documents

Guideline Comments Should Be Used Wisely

Don't make unnecessary comments.
0 comment | Share: Facebook logo Twitter Logo |

Guideline Plural Is Not Allowed

They can be amiguous.
0 comment | Share: Facebook logo Twitter Logo |

Guideline Abbreviations Are Not Allowed

Context is lost quickly.
0 comment | Share: Facebook logo Twitter Logo |

Guideline Private Method Starts With Underscore

Consistent patterns.
0 comment | Share: Facebook logo Twitter Logo |

Guideline Use Of JavaScript Id Attribute Is Not Allowed

Duplicate ids will beak a page.
0 comment | Share: Facebook logo Twitter Logo |

Guideline JavaScript Class Name And Id Attribute Are Lowercase With Underscore Separator

General coding convention.
0 comment | Share: Facebook logo Twitter Logo |

Guideline Method Name Is Camelcase Starting With Lowercase Letter

Consistency across languages
0 comment | Share: Facebook logo Twitter Logo |

Guideline JavaScript Constructor Starts With Captial Letter

Consistent Javascript patterns.
0 comment | Share: Facebook logo Twitter Logo |

Guideline A Non Anonymous JavaScript Method Must Be Declared Before Use

Jslint will throw on this, too.
0 comment | Share: Facebook logo Twitter Logo |

Guideline JavaScript Closing Bracket Is At Indent Of Function Call

Consistent coding patterns.
0 comment | Share: Facebook logo Twitter Logo |

Guideline JavaScript Opening Brace Is On Line Of Current Statement

Consistent coding patterns.
0 comment | Share: Facebook logo Twitter Logo |

Guideline Use Two Space Indentation

Consistent code indentation across languages.
0 comment | Share: Facebook logo Twitter Logo |

Guideline Code Must Be Validated With JsLint

To ensure consistent syntax and quality.
0 comment | Share: Facebook logo Twitter Logo |

Guideline Use Of JavaScript Globals Is Discouraged

Better never declare any globals anyway.
0 comment | Share: Facebook logo Twitter Logo |

Guideline FailUnless Should Not Be Used In Python Unit Tests To Test Identity

Use assertEqual.
0 comment | Share: Facebook logo Twitter Logo |

Guideline Never Hardcode If Not Necessary

Hard code is hard to maintain.
0 comment | Share: Facebook logo Twitter Logo |

Guideline Never Hardcode Interactions

Use interaction workflows instead.
0 comment | Share: Facebook logo Twitter Logo |

Guideline Never Use DoActionFor In ERP5

Use transition methods to manually trigger workflow transitions.
0 comment | Share: Facebook logo Twitter Logo |

Guideline Never Access State_change Object In ERP5 Workflow Scripts

Use state_change["attribute_name"].
0 comment | Share: Facebook logo Twitter Logo |

Guideline Never Use Aq_parent To Get Document Parent In Python

Use getParentValue()
0 comment | Share: Facebook logo Twitter Logo |