模块开发: Difference between revisions

Tag: 2017 source edit
 
(16 intermediate revisions by the same user not shown)
Line 11: Line 11:


[[Category:Core]]
[[Category:Core]]
[[Category:开发]]
{{Template用户手册}}
{{Template用户手册}}
{{Template开发文档}}
{{Template开发文档}}
Line 171: Line 172:


<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
// Array to add new pages in new tabs or remove existing one
// 用于在新tabs中添加新页面或删除现有页面的数组
$this->tabs = array('objecttype:+tabname1:Title1:mylangfile@mymodule:$user->rights->mymodule->read:/mymodule/mypagetab1.php?id=__ID__'    // To add a new tab identified by code tabname1
$this->tabs = array('objecttype:+tabname1:Title1:mylangfile@mymodule:$user->rights->mymodule->read:/mymodule/mypagetab1.php?id=__ID__'    // 增加一个由code tabname1标识的新tab
                             'objecttype:+tabname2:Title2:mylangfile@mymodule:$user->rights->mymodule->read:/mymodule/mypagetab2.php?id=__ID__',  // To add a new tab identified by code tabname2
                             'objecttype:+tabname2:Title2:mylangfile@mymodule:$user->rights->mymodule->read:/mymodule/mypagetab2.php?id=__ID__',  // 增加一个由code tabname2标识的新tab
                             'objecttype:-tabname');                                                    // To remove an existing tab identified by code tabname
                             'objecttype:-tabname');                                                    // 删除一个由code tabname标识的现有选项卡
</syntaxhighlight>
</syntaxhighlight>


Line 239: Line 240:


<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
$head        // Array of tabs
$head        // tabs的数组
$head[$h]    // Element to describe one tab.
$head[$h]    // Element to describe one tab.
$head[$h][0] // Url of page to show when you click on tab
$head[$h][0] // Url of page to show when you click on tab
Line 260: Line 261:
<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
dol_fiche_head($links, $active='0', $title='', $notab=0, $picto='')
dol_fiche_head($links, $active='0', $title='', $notab=0, $picto='')
//$links  // Tableau des onglets, appelé $head plus haut.
//$links  // tabs的数组,上面称为$head
//$active // Onglet actif (mettre le nom de l'onglet défini dans votre fichier de module, ou un nom contenu dans $head[$h][2]). Cet onglet sera mis en surbrillance
//$active // 活动选项卡(输入模块文件中定义的选项卡名称,或$head[$h][2]中包含的名称)。此选项卡将突出显示
//$title  // Title to show (shown into a special tab that you can't click)
//$title  // 要显示的标题(显示在无法单击的特殊选项卡中)
//$notab
//$notab
//$picto  // Name of image to show into title. Possible values are:
//$picto  // 要显示到标题中的图片的名称。可能的值为:
//            product
//            product
//            service
//            service
Line 278: Line 279:


===创建原始PHP屏幕页面===
===创建原始PHP屏幕页面===
随后,您可以使用 '''modulebuilder''' 目录中提供的示例模板('''myobject_page.php''')创建基于表数据的PHP页面(有关命令行脚本的开发,请参阅 [[Script development]] )。同样,如果您使用的是 ModuleBuilder,则在初始化对象时会自动创建页面实例(清单、创建页面、Notes选项卡等)。
随后,您可以使用 '''modulebuilder''' 目录中提供的示例模板('''myobject_page.php''')创建基于表数据的PHP页面(有关命令行脚本的开发,请参阅 [[脚本开发]] )。同样,如果您使用的是 ModuleBuilder,则在初始化对象时会自动创建页面实例(清单、创建页面、Notes选项卡等)。


要创建新的用户屏幕页面,请创建特定于模块的 '''htdocs''' 子目录(如果尚未创建)(如 '''htdocs/mymodule''' ),以便在其中放置要创建的页面。
要创建新的用户屏幕页面,请创建特定于模块的 '''htdocs''' 子目录(如果尚未创建)(如 '''htdocs/mymodule''' ),以便在其中放置要创建的页面。
Line 285: Line 286:


<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
// Load Dolibarr environment
// 加载Dolibarr环境
$res=0;
$res=0;
// Try main.inc.php into web root known defined into CONTEXT_DOCUMENT_ROOT (not always defined)
// 尝试include在CONTEXT_DOCUMENT_ROOT(不总是定义的)中定义的已知web根目录中的main.inc.php
if (! $res && ! empty($_SERVER["CONTEXT_DOCUMENT_ROOT"])) $res=@include($_SERVER["CONTEXT_DOCUMENT_ROOT"]."/main.inc.php");
if (! $res && ! empty($_SERVER["CONTEXT_DOCUMENT_ROOT"])) $res=@include($_SERVER["CONTEXT_DOCUMENT_ROOT"]."/main.inc.php");
// Try main.inc.php into web root detected using web root caluclated from SCRIPT_FILENAME
// 尝试include由SCRIPT_FILENAME计算的web根检测到web根的main.inc.php
$tmp=empty($_SERVER['SCRIPT_FILENAME'])?'':$_SERVER['SCRIPT_FILENAME'];$tmp2=realpath(__FILE__); $i=strlen($tmp)-1; $j=strlen($tmp2)-1;
$tmp=empty($_SERVER['SCRIPT_FILENAME'])?'':$_SERVER['SCRIPT_FILENAME'];$tmp2=realpath(__FILE__); $i=strlen($tmp)-1; $j=strlen($tmp2)-1;
while($i > 0 && $j > 0 && isset($tmp[$i]) && isset($tmp2[$j]) && $tmp[$i]==$tmp2[$j]) { $i--; $j--; }
while($i > 0 && $j > 0 && isset($tmp[$i]) && isset($tmp2[$j]) && $tmp[$i]==$tmp2[$j]) { $i--; $j--; }
if (! $res && $i > 0 && file_exists(substr($tmp, 0, ($i+1))."/main.inc.php")) $res=@include(substr($tmp, 0, ($i+1))."/main.inc.php");
if (! $res && $i > 0 && file_exists(substr($tmp, 0, ($i+1))."/main.inc.php")) $res=@include(substr($tmp, 0, ($i+1))."/main.inc.php");
if (! $res && $i > 0 && file_exists(dirname(substr($tmp, 0, ($i+1)))."/main.inc.php")) $res=@include(dirname(substr($tmp, 0, ($i+1)))."/main.inc.php");
if (! $res && $i > 0 && file_exists(dirname(substr($tmp, 0, ($i+1)))."/main.inc.php")) $res=@include(dirname(substr($tmp, 0, ($i+1)))."/main.inc.php");
// Try main.inc.php using relative path
// 尝试include使用相对路径的main.inc.php
if (! $res && file_exists("../main.inc.php")) $res=@include("../main.inc.php");
if (! $res && file_exists("../main.inc.php")) $res=@include("../main.inc.php");
if (! $res && file_exists("../../main.inc.php")) $res=@include("../../main.inc.php");
if (! $res && file_exists("../../main.inc.php")) $res=@include("../../main.inc.php");
Line 443: Line 444:


===修改模块的描述符文件===
===修改模块的描述符文件===
然后,在模块描述符文件中,修改变量 '''config_page_url''' 以指定该PHP页面的名称(不需要路径,因为该页面必须在 admin 中):
然后,在模块描述符文件中,修改变量 '''config_page_url''' 以指定该PHP页面的名称。


<source lang="php">
如果页面在目录 '''admin/''' 中),则:
$this->config_page_url = array("setup.php@mymodule");
</source>


<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
Line 453: Line 452:
</syntaxhighlight>
</syntaxhighlight>


如果页面在目录 '''mymodule/admin/'''中,则:
如果页面在目录 '''mymodule/admin/''' 中,则:


<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
Line 462: Line 461:
前往“主页->设置->模块/应用”页面,您应该会看到一个齿轮图标,允许您访问配置页面,并且您应该能够修改这些选项并将其保存到数据库中。
前往“主页->设置->模块/应用”页面,您应该会看到一个齿轮图标,允许您访问配置页面,并且您应该能够修改这些选项并将其保存到数据库中。


==增加菜单条目 (可选)==
==设置菜单项 (可选)==
'''何时''': 如果您创建了PHP页面,则必须从Dolibarr菜单中的菜单条目中访问这些页面。
'''何时''' :如果您创建了PHP页面,则必须从Dolibarr菜单访问这些屏幕页面。


===增加菜单条目===
===设置菜单项===
For this, you must define into the module descriptor, the array this->menu that declare all menus added by your module.
为此,您需要在模块描述符文件中定义数组 this->menu,该数组用于声明菜单。
This array contains entries that will appear once your module is activated.
 
The example module descriptor file '''modMyModule.class.php''' contains an example to declare a top menu and also its left menu entries.
此数组包含模块激活后将显示在菜单中的所有条目。
 
模块描述符文件的示例文件 '''modMyModule.class.php''' 中有一个声明顶部菜单及其相关的左侧菜单项的示例。
 
以下是描述符文件中菜单项声明的示例:


This is the example of code to declare your own menu entries in a module descriptor file:
<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
// Main menu entries
// Main menu entries
Line 508: Line 510:
</syntaxhighlight>
</syntaxhighlight>


To show menu or not depending on a permission, modify property '''perms''' in array. See chapter on permissions later to see how to add permissions.
若要根据权限限制对菜单的访问,请更改数组的 '''perms''' 属性。有关如何添加权限的更多信息,请参阅后面有关权限的章节。
 
===测试您的菜单项===
在Dolibarr中禁用并重新激活您的模块,然后应该会出现菜单项(如果 “enabled”为真)。


===测试菜单===
==设置您自己的权限 (可选)==
Disable and reenable your module under Dolibarr module setup page, menus entries must appear (if property 'enabled' is declaration array is ok).
'''何时''': 如果要添加新权限。


==新增权限 (可选)==
模块将其管理的权限定义,放在第一步中创建的模块描述符文件中完成。更改行:
'''When''': If you want to add new permissions.


The way to define permissions that will manage your module is done inside the module descriptor created previously.
Modify line
<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
$this->rights_class = 'mymodule'
$this->rights_class = 'mymodule'
</syntaxhighlight>
</syntaxhighlight>
with correct value for mymodule.


Then you must fill the array $this->rights with as many entries than different permissions you need to manage.
录入正确的 myModule 值。
 
然后在 $this->rights 数组中填充与要管理的不同权限一样多的条目。


<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
Line 534: Line 537:
</syntaxhighlight>
</syntaxhighlight>


Into $this->rights[$r][0], put a permission id not already used (See into menu '''System info''' on a working installation of Dolibarr to know list of id already used by standard modules.
在$this->rights[$r][0]中,输入尚未使用的权限ID(请参阅'''系统信息'''菜单,在运行Dolibarr的设备上查看已在使用的ID)。
Into $this->rights[$r][3], put 1 if this permission must be granted automatically by default to any new created user.
 
Into $this->rights[$r][1], put a label by default for permission (This label will be used if no translation can be found into the file '''admin.lang''').
在$this->rights[$r][1]中,输入默认标签(如果在 '''admin.lang''' 文件中找不到您权限标签的翻译字符串,则显示该标签。翻译键值为 “Permission10001=我的超级权限的描述”)。
Into $this->rights[$r][4] and $this->rights[$r][5], put an action and subaction string without spaces. You will be able to test if a user has the permission in your PHP source code with the sequence:
 
在$this>rights[$r][2]中,输入权限类型。有三种类型的权限,“r”表示读取、列出清单或导出权限,“w”表示写入或更新权限,“d”表示删除权限。
 
在$this->rights[$r][3]中,如果任何一个新创建的用户都会被默认自动分配此权限,则输入1。
 
在$this->rights[$r][4]和$this->rights[$r][5]中,输入不带空格的操作和子操作字符串。然后,您可以通过以下命令在PHP代码中测试用户是否具有正确的权限:


<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
Line 543: Line 551:
</syntaxhighlight>
</syntaxhighlight>


==信息窗 (可选)==
==设置您自己的消息框/widget小组件 (可选)==
'''When''': If your module need to provide one or several new boxes to show on home page.
'''何时''':如果您的模块附带提供在主页上展示的一个或多个消息框。
 
===设置您的消息框===
为此,请修改模块描述符文件中的数组 $this->boxes。


===信息窗===
首先为即将在 '''htdocs/mymodule/core/boxes''' 目录中创建的每个box文件添加2行。
For this, modify the array $this->boxes into the module descriptor file.
 
All you have to do is to add 2 lines for each box file you will create into directory '''htdocs/mymodule/core/boxes'''
例如:


''Example:''
<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
$this->boxes[0]['file']='mybox0.php@mymodule'
$this->boxes[0]['file']='mybox0.php@mymodule'
Line 559: Line 569:
</syntaxhighlight>
</syntaxhighlight>


Then create files '''htdocs/mymodule/core/boxes/mybox0.php''', '''htdocs/mymodule/core/boxes/mybox1.php'''... by copying an example from an existing box file (found into directory '''htdocs/core/boxes''').
其次,创建文件'''htdocs/mymodule/core/boxes/mybox0.php'''、'''htdocs/mymodule/core/boxes/mybox1.php'''…,以现有的消息框(在 '''htdocs/core/boxes''' 目录中)为示例。
 
===测试您的消息框是否被 Dolibarr 检测到===
停用并重新激活模块。
 
前往菜单  '''主页 - 设置 - widget小组件''' 。
 
您的消息框必须显示在可激活消息框的清单中。激活它们,然后前往'''主页'''并检查它们是否正确显示。
 
==定义您自己的导出 (可选)==
'''何时''':如果您的模块附带提供预定义的数据导出(针对自己的表或来自另一个Dolibarr模块的现有表)。


===Test if your box is detected by Dolibarr===
===定义导出===
Disable and enabled module.
为此,请取消注释并修改模块描述符文件中的 $this->export_xxx 数组。


Go into menu '''Home - Setup - Boxes'''.
===测试您的导出===
前往菜单 '''工具->导出助手''' 。您的导出应显示在可用的预定义导出清单中(如果您的模块已激活)。选择它,您将看到在上一步时在表中定义的可能字段。选择几个字段并尝试生成导出文件。


Your boxes must appear in the list of boxes you can activated. Activate the box and go on home page to see if the box is showing correctly.
==设置CSS样式 (可选)==
'''何时''':在PHP屏幕页面中,您使用的样式类不是Dolibarr主题的样式类(不推荐)。


==Define your own export (optional)==
===创建并声明您的样式表===
'''When''': If your module provide new predefined database export profiles (for its own tables or for already existing tables of another module).
创建一个名为 '''mymodule.css''' 或 '''mymodule.css.php''' 的CSS样式文件,并将其放在 '''htdocs/mymodule''' 目录中。每个模块只能有一个CSS文件。


===导出===
请记住,最好使用已有的Dolibarr样式(Dolibarr使用的CSS文件是'''themes/mytheme/''themename''.css.php''')。仅当您必须处理不存在的样式时,才创建特定于模块的CSS文件。
For this uncomment and modify arrays $this->export_xxx in your module descriptor file.


===Test your export===
样式表准备就绪后,通过更改 '''$this->modules_parts''' 属性在模块描述符文件中声明样式表。
Go into menu Tools -> Export. Your export will appear in the list of available predefined exports (if your module is enabled).
Choose it, you must see list of all possible fields defined in the export arrays.
Choose on field and try to build an export file. If ok, try again with all fields.


==Define your CSS styles (optional)==
此处要输入的值必须是 CSS 文件 URL 的相对路径。
'''When''': If in your PHP pages, you use class styles that are not defined inside Dolibarr themes CSS (not recommanded).


===Create and declare your style sheet===
例如:
Create a style sheet CSS named '''mymodule.css''' or '''mymodule.css.php''' and put it into directory '''htdocs/mymodule'''. You can have only one CSS file per module.
Remember it's better to use existing styles already available by default into Dolibarr (The CSS file used by Dolibarr is file '''themes/mytheme/''themename''.css.php'''. Create your own CSS file only if you need absolutely to add not already existing styles.


Once your style sheet is ready, declare it into your module descriptor file by modifying the property '''$this->modules_parts'''.
Value to put here must be a relative URL to your CSS file.
For example
<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
$this->module_parts = array('css' => array('/mymodule/css/mymodule.css.php'));
$this->module_parts = array('css' => array('/mymodule/css/mymodule.css.php'));
</syntaxhighlight>
</syntaxhighlight>


===Test your style sheet===
===测试您的样式表===
Disable and enable your module.
停用并重新激活模块。
 
前往Dolibarr的主页。查看页面的HTML源代码。
 
您应该在HTML标头中看到有一行是声明您的样式表。


Go on home page (index.php). Show the HTML source of the page.
==定义Javascript函数 (可选)==
'''何时''':当您在PHP屏幕页面中使用的 javascript 函数不是Dolibarr的标准js函数(在lib_head.js中)。


You should see into the HTML header, a line that declare your style sheet.
如果在PHP屏幕页面上使用 javascript 函数,则必须将在 javascript 文件 '''htdocs/mymodule/js/mymodule.js''' 中声明的函数加载到HTML头中。


==增加JS函数功能 (可选)==
若要求Dolibarr(负责生成 header 部分)包含一个 javascript 文件,必须在页面开头调用的llxHeader()函数的参数中提供包含要包含的JS URL的参数。
'''When''': If in your PHP pages, you use javascript functions not available in Dolibarr (in file lib_head.js)


If you need to use your own javascript functions inside your PHP pages, it is necessary to have your functions, defined into your  javascript file '''htdocs/mymodule/js/mymodule.js''', included into the HTML HEAD section.
页面 /htdocs/mymodule/mypage.php 的示例:
To ask Dolibarr that forge this header to include your own javascript file, you must just provide it to the llxHeader() function called by your page.


Example for page /htdocs/mymodule/mypage.php :
<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
$morejs=array("/mymodule/js/mymodule.js");
$morejs=array("/mymodule/js/mymodule.js");
Line 612: Line 626:
</syntaxhighlight>
</syntaxhighlight>


==执行Dolibarr事件代码 (可选)==
==在Dolibarr事件上触发代码 (可选)==
'''When''': If you want to execute your own code once a common Dolibarr event has occurred (example: I want to update a table in my module when an invoice is created into Dolibarr), you must create a '''triggers'''.
'''何时''':希望在Dolibarr标准操作后触发执行特定操作时(例如:当在Dolibarr中创建发票时,我想更新模块中的表),您需要创建一个 '''triggers''' 文件。
 
See also [[Interfaces_Dolibarr_toward_foreign_systems]]
and [[Interfaces_from_foreign_systems_toward_Dolibarr]]
 
==钩子代码 (可选)==
'''When''': When you want to add code or replace Dolibarr code into another situation than a business event (See previous chapter for adding code during a business event).


See page [[Hooks_system]].
另请参阅 [[Interfaces_Dolibarr_toward_foreign_systems|Dolibarr到外部系统的接口]] 和 [[Interfaces_from_foreign_systems_toward_Dolibarr|外部系统到Dolibarr的接口]]


==在Dolibarr的hooks处插入代码 (可选)==
'''何时''':当您想更改或添加业务事件以外的代码时(请参阅上一章)。


==添加编码规则==
请参阅页面 [[Hooks_system|Hooks系统]].
'''When''': When you need a new rule for generated ref of elements that is not covered by existing rules.
==添加编号模块(可选)==
'''何时''':当您想添加默认模块未涵盖的编号规则时。


See page [[Create numbering module]].
请参阅页面 [[Create numbering module|创建编号模块]] 。


==创建文档模板 (optional)==
==添加新文档模板 (可选)==
'''When''': When you want to personalized your own generated PDF or ODT documents.
'''何时''':需要添加新文档模板时。如想要个性化自己生成的 PDF 或 ODT 文档。


Note: To add this feature you don't need to create a module descriptor.
注意:要添加此功能,您无需创建模块描述符文件。


Documentation to add your own template is available on page [[Create_a_PDF_document_template]] or [[Create_an_ODT_document_template]].
有关如何从模板生成文档的详情,请参阅页面 [[Create_a_PDF_document_template|创建PDF文档模板]] 或 [[Create_an_ODT_document_template|创建ODT文档模板]] 。


==创建主题 (optional)==
==添加主题 (可选)==
'''When''': When you want to personalized your colors/fonts/images.
'''何时''':当您想要根据您的情况定制界面(颜色/字体/图形)时。


Note: To add this feature you don't need to create a module descriptor.
注意:要添加此功能,您无需创建模块描述符。


To add your own skin, read page [[Skins]].
请参阅页面 [[Skins|主题]] 。


==修改开发模块作者名==
==修改开发模块作者名==
Line 648: Line 659:


修改以下变量的值以修改作者名称
修改以下变量的值以修改作者名称
<syntaxhighlight lang="PHP">
<syntaxhighlight lang="PHP">
$this->editor_name = 'Roger@QQ:12464313';
$this->editor_name = 'Roger@QQ:12464313';
Line 653: Line 665:
</syntaxhighlight>
</syntaxhighlight>


=一些编码规则和预定义函数=
=面向开发人员的一些编码规则和函数=
The coding rules to be followed are defined in the [[Developer documentation]], under section "General Information - Language and standards development".
要遵循的编码规则请参阅 [[语言和开发规则|开发语言和编码规范(PHP, SQL, HTML)]] 。


A lot of predefined features for developers are also available and described into page [[Developer documentation]] under section "Technical components of Dolibarr".
要调用 Dolibarr 供开发人员使用的预定义函数,请参阅  [[开发文档]] 的“内部函数”一节。


=创建一个安装包来分发和安装您的模块=
=创建一个安装包来分发和安装您的模块=
This process must be used to generate a package to submit it on the http://www.dolistore.com market place.
必须使用此步骤来制作安装包,以便将其提交到市场 http://www.dolistore.com。
But you can use it to have a package easy to distribute on your on network.


*Go into the directory '''/build''' and copy the file '''makepack-dolibarrmodules.conf''' into '''makepack-mymodule.conf'''. Warning, this directory may not be provided in some packages of stable versions. If so, it can be retrieved from the snapshot available for download on the Dolibarr website in area "Development version" (taken in this case the whole build directory which is autonomous and independent directory).
但您也可以使用它通过自己的分发网络轻松分发模块。


Edit this file to add list of file names for all new files you created for your module (module descriptor, new sql tables files, php page, images, etc...)
*进入 '''/build''' 目录并将文件 '''makepack-dolibarrmodules.conf''' 复制到 '''makepack-mymodule.conf'''。请注意,稳定版本包中可能不提供此目录。如果是这种情况,可以在 Dolibarr 网站的“开发版本”部分供下载的快照中检索(在这种情况下,请获取整个 build 目录,这是一个独立于版本的目录)。


*Run the script via Perl (need the Perl version 5.0 or later):
在此文件中输入为模块创建的新文件的名称清单(模块描述符、新表的SQL文件、PHP页面、图像等)。
 
*通过 Perl 运行脚本(需要Perl 5.0或更高版本):


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
perl makepack-dolibarrmodule.pl
perl makepack-dolibarrmodule.pl
</syntaxhighlight>
</syntaxhighlight>
The script asks you the name of your module, its major and minor version. A file '''mymodule.zip ''' will then be manufactured containing your module ready to be deployed.


*The person who receives your module must then place the file in the root directory of a Dolibarr installation and perform the command:
该脚本将询问模块的名称、主要版本和次要版本。然后将生成一个 '''mymodule.zip '''文件,其中包含准备部署的模块。
 
*接收您的模块的人员必须将该文件放在其 Dolibarr 的安装根目录中,并执行以下命令:


<syntaxhighlight lang="bash">
<syntaxhighlight lang="bash">
Line 679: Line 693:
</syntaxhighlight>
</syntaxhighlight>


*If you want your module to be public, you can submit it (the zip file) on Dolibarr market place web site: {{LinkToPluginDownload}} (you must create an account first and be logged to use the link "Submit a module/product").
*如果您希望您的模块惠及所有人,您可以在插件市场 {{LinkToPluginDownload}} 上提交它(zip文件)(您必须先创建一个帐户并登录,以使用“提交模块/产品”链接)。
**If your module was build correctly, file will be validated later.
**如果您的模块制作正确,文件将很快通过验证。
**If quality is enough and license permits it, code might be added inside main Dolibarr sources (except if you disagree for that).
**如果质量足够好、许可证允许、并且模块的功能被证明是普遍感兴趣的,则可以将代码添加到 Dolibarr 的源代码中(除非您不希望这样做)。


=Dolistor上的外部模块的启用/激活条件=
=Dolistore上外部模块的归档和验证=


See [[Module_Dolistore_Validation_Rules|Validation Rules]]
请参阅 [[Module_Dolistore_Validation_Rules|验证规则]]
715

edits