676
edits
Tag: 2017 source edit |
mNo edit summary Tag: 2017 source edit |
||
| Line 10: | Line 10: | ||
Then click on '''New Attribute''' | Then click on '''New Attribute''' | ||
=List of fields for each complementary attribute= | |||
Each attribute has a some fields that need to be set | Each attribute has a some fields that need to be set | ||
[[File:Fields of each complementary attribute.png|thumb]] | [[File:Fields of each complementary attribute.png|thumb]] | ||
==Label or translation key== | |||
* '''Mandatory field''' | * '''Mandatory field''' | ||
* Label of the new field. This can be a translation key (new or existing), then you also need to set the 'language file' field. | * Label of the new field. This can be a translation key (new or existing), then you also need to set the 'language file' field. | ||
==Attribute code== | |||
* '''Mandatory field''' | * '''Mandatory field''' | ||
* Code of the new field. Can only contain alphanumerical and lower case characters without space | * Code of the new field. Can only contain alphanumerical and lower case characters without space | ||
==Type== | |||
* '''String (1 line)''' : Text on one line. | * '''String (1 line)''' : Text on one line. | ||
* '''Long text (n lines)''' : Text on several lines. | * '''Long text (n lines)''' : Text on several lines. | ||
| Line 44: | Line 44: | ||
* '''Separator (not a field)''' : | * '''Separator (not a field)''' : | ||
==Size== | |||
==Position== | |||
==Value== | |||
==Language file== | |||
==Computed field== | |||
==Default value (Database)== | |||
==Unique== | |||
==Required== | |||
==Can always be edited== | |||
==Visibility== | |||
==Display on PDF== | |||
==Totalizable== | |||
==Help text to show on tooltip== | |||
=Tips= | = Tips= | ||
== Computed Fields== | == Computed Fields== | ||
You can enter here a formula using other properties of object or any PHP coding to get a dynamic computed value. You can use any PHP compatible formulas including the "?" condition operator, and following global object: '''$db, $conf, $langs, $mysoc, $user, $object'''. | You can enter here a formula using other properties of object or any PHP coding to get a dynamic computed value. You can use any PHP compatible formulas including the "?" condition operator, and following global object: '''$db, $conf, $langs, $mysoc, $user, $object'''. | ||
edits