2
0
forked from Wavyzz/dolibarr

Review of module asset (#33847)

* Fixed Asset - Update translation of the module

* Fix asset create name

* Fix ref field

* Update module Asset

* Fix CI

* Fix CI

* Fix comment
This commit is contained in:
Alexandre SPANGARO
2025-04-15 17:21:45 +02:00
committed by GitHub
parent f0bd86c8a4
commit ab0ce1d645
10 changed files with 276 additions and 48 deletions

View File

@@ -58,9 +58,9 @@ class modAsset extends DolibarrModules
// Module label (no space allowed), used if translation string 'ModuleAssetsName' not found (MyModue is name of module).
$this->name = preg_replace('/^mod/i', '', get_class($this));
// Module description, used if translation string 'ModuleAssetsDesc' not found (MyModue is name of module).
$this->description = "Asset module";
$this->description = "Fixed asset management";
// Used only if file README.md and README-LL.md not found.
$this->descriptionlong = "Asset module to manage assets module and depreciation charge on Dolibarr";
$this->descriptionlong = "Asset module to manage fixed asset module and depreciation charge";
// Possible values for version are: 'development', 'experimental', 'dolibarr', 'dolibarr_deprecated' or a version string like 'x.y.z'
$this->version = 'experimental';
@@ -113,6 +113,16 @@ class modAsset extends DolibarrModules
1
);
$this->const[2] = array(
"ASSET_ASSET_ADDON",
"chaine",
"mod_asset_standard",
"Name of numbering rules for fixed asset",
0,
'current',
1
);
if (!isModEnabled('asset')) {
$conf->asset = new stdClass();