vtiger crm 模块的创建

Wesley13
• 阅读 1449

1.到\vtlib\ModuleDir 找到你相应的版本的模块原型  复制一份放到桌面,并以你的模块功能命名

2.把Module替换成你的模块功能名,(使用文件夹全文搜索替换),并把带有module的文件名也相应的替换成你的功能名

3.新建一个manifest.xml 里面定义的建表sql,字段的属性,视图显示的字段,相关联的模块名等等。。

例如:

2010-11-14 15:29:23 Accounts Marketing 5.2.0 VB2 vtiger\_account
vtiger\_accountscf
accountname 2 accountname vtiger\_account 1 Account Name 1 0 0 1 100 V~M 0 1 1 BAS 0 accountid account\_id account\_no 4 account\_no vtiger\_account 1 Account No 1 0 0 2 100 V~O 3 1 BAS 0 phone 11 phone vtiger\_account 1 Phone 1 2 0 4 100 V~O 2 2 1 BAS 1 website 17 website vtiger\_account 1 Website 1 2 0 3 100 V~O 2 3 1 BAS 1 fax 11 fax vtiger\_account 1 Fax 1 2 0 6 100 V~O 1 1 BAS 1 tickersymbol 1 tickersymbol vtiger\_account 1 Ticker Symbol 1 2 0 5 100 V~O 1 1 BAS 1 otherphone 11 otherphone vtiger\_account 1 Other Phone 1 2 0 8 100 V~O 1 1 ADV 1 account\_id 51 parentid vtiger\_account 1 Member Of 1 2 0 7 100 I~O 1 1 BAS 0 email1 13 email1 vtiger\_account 1 Email 1 2 0 10 100 E~O 1 1 BAS 1 employees 7 employees vtiger\_account 1 Employees 1 2 0 9 100 I~O 1 1 ADV 1 email2 13 email2 vtiger\_account 1 Other Email 1 2 0 11 100 E~O 1 1 ADV 1 ownership 1 ownership vtiger\_account 1 Ownership 1 2 0 12 100 V~O 1 1 ADV 1 rating 15 rating vtiger\_account 1 Rating 1 2 0 14 100 V~O 1 1 ADV 1 --None-- Acquired Active Market Failed Project Cancelled Shutdown industry 15 industry vtiger\_account 1 industry 1 2 0 13 100 V~O 1 1 ADV 1 --None-- Apparel Banking Biotechnology Chemicals Communications Construction Consulting Education Electronics Energy Engineering Entertainment Environmental Finance Food & Beverage Government Healthcare Hospitality Insurance Machinery Manufacturing Media Not For Profit Recreation Retail Shipping Technology Telecommunications Transportation Utilities Other siccode 1 siccode vtiger\_account 1 SIC Code 1 2 0 16 100 V~O 1 1 ADV 1 accounttype 15 account\_type vtiger\_account 1 Type 1 2 0 15 100 V~O 1 1 ADV 1 --None-- Analyst Competitor Customer Integrator Investor Partner Press Prospect Reseller Other annual\_revenue 71 annualrevenue vtiger\_account 1 Annual Revenue 1 2 0 18 100 I~O 1 1 ADV 1 emailoptout 56 emailoptout vtiger\_account 1 Email Opt Out 1 2 0 17 100 C~O 1 1 ADV 1 notify\_owner 56 notify\_owner vtiger\_account 1 Notify Owner 1 2 0 20 10 C~O 1 1 ADV 1 assigned\_user\_id 53 smownerid vtiger\_crmentity 1 Assigned To 1 0 0 19 100 V~M 0 4 1 BAS 1 createdtime 70 createdtime vtiger\_crmentity 1 Created Time 1 0 0 22 100 T~O 3 2 BAS 0 modifiedtime 70 modifiedtime vtiger\_crmentity 1 Modified Time 1 0 0 21 100 T~O 3 2 BAS 0 bill\_street 21 bill\_street vtiger\_accountbillads 1 Billing Address 1 2 0 1 100 V~O 1 1 BAS 1 ship\_street 21 ship\_street vtiger\_accountshipads 1 Shipping Address 1 2 0 2 100 V~O 1 1 BAS 1 bill\_city 1 bill\_city vtiger\_accountbillads 1 Billing City 1 2 0 5 100 V~O 1 1 BAS 1 ship\_city 1 ship\_city vtiger\_accountshipads 1 Shipping City 1 2 0 6 100 V~O 1 1 BAS 1 bill\_state 1 bill\_state vtiger\_accountbillads 1 Billing State 1 2 0 7 100 V~O 1 1 BAS 1 ship\_state 1 ship\_state vtiger\_accountshipads 1 Shipping State 1 2 0 8 100 V~O 1 1 BAS 1 bill\_code 1 bill\_code vtiger\_accountbillads 1 Billing Code 1 2 0 9 100 V~O 1 1 BAS 1 ship\_code 1 ship\_code vtiger\_accountshipads 1 Shipping Code 1 2 0 10 100 V~O 1 1 BAS 1 bill\_country 1 bill\_country vtiger\_accountbillads 1 Billing Country 1 2 0 11 100 V~O 1 1 BAS 1 ship\_country 1 ship\_country vtiger\_accountshipads 1 Shipping Country 1 2 0 12 100 V~O 1 1 BAS 1 bill\_pobox 1 bill\_pobox vtiger\_accountbillads 1 Billing Po Box 1 2 0 3 100 V~O 1 1 BAS 1 ship\_pobox 1 ship\_pobox vtiger\_accountshipads 1 Shipping Po Box 1 2 0 4 100 V~O 1 1 BAS 1 description 19 description vtiger\_crmentity 1 Description 1 2 0 1 100 V~O 1 1 BAS 1 All true false account\_no 0 accountname 1 bill\_city 2 website 3 phone 4 assigned\_user\_id 5 Prospect Accounts false true accountname 0 phone 1 website 2 rating 3 assigned\_user\_id 4 New This Week false false accountname 0 phone 1 website 2 bill\_city 3 assigned\_user\_id 4 public\_readwritedelete enabled enabled enabled enabled get\_contacts 1 0 add Contacts get\_opportunities 2 0 add Potentials get\_quotes 3 0 add Quotes get\_salesorder 4 0 add SalesOrder get\_invoices 5 0 add Invoice get\_activities 6 0 add Calendar get\_emails 7 0 add Emails get\_history 8 0 add Calendar get\_attachments 9 0 add select Documents get\_tickets 10 0 add HelpDesk get\_products 11 0 select Products get\_campaigns 13 0 select Campaigns get\_dependents\_list 14 0 ADD ServiceContracts get\_related\_list 15 0 SELECT Services get\_dependents\_list 16 0 ADD Assets get\_dependents\_list 17 0 ADD SELECT Project DETAILVIEWBASIC LBL\_ADD\_NOTE 0 DETAILVIEWBASIC LBL\_SHOW\_ACCOUNT\_HIERARCHY 0 DETAILVIEWBASIC Send SMS 0 DETAILVIEWWIDGET DetailViewBlockCommentWidget 0 LISTVIEWBASIC Send SMS 0
这个是你的模块能不能安装成功的主要因素,一定要现在浏览器检查好定义的东西是否完整和正确,相应的函数,方法功能可以在

安装好后在ModuleFile.php的这个文件里去实现你的逻辑。

4.选定文件夹和manfest.xml这两个,并把它们打包成zip文件,就可到后台去安装

5.安装时可先备份数据库,防止安装不成功产生垃圾数据

6.如果安装不成功,则要还原数据库,并删除module下的刚安装的文件夹,在仔细检查先前的1、2、3步,哪里肯定有问题出现了。

点赞
收藏
评论区
推荐文章
blmius blmius
3年前
MySQL:[Err] 1292 - Incorrect datetime value: ‘0000-00-00 00:00:00‘ for column ‘CREATE_TIME‘ at row 1
文章目录问题用navicat导入数据时,报错:原因这是因为当前的MySQL不支持datetime为0的情况。解决修改sql\mode:sql\mode:SQLMode定义了MySQL应支持的SQL语法、数据校验等,这样可以更容易地在不同的环境中使用MySQL。全局s
Jacquelyn38 Jacquelyn38
3年前
2020年前端实用代码段,为你的工作保驾护航
有空的时候,自己总结了几个代码段,在开发中也经常使用,谢谢。1、使用解构获取json数据let jsonData  id: 1,status: "OK",data: 'a', 'b';let  id, status, data: number   jsonData;console.log(id, status, number )
Easter79 Easter79
3年前
sql注入
反引号是个比较特别的字符,下面记录下怎么利用0x00SQL注入反引号可利用在分隔符及注释作用,不过使用范围只于表名、数据库名、字段名、起别名这些场景,下面具体说下1)表名payload:select\from\users\whereuser\_id1limit0,1;!(https://o
Stella981 Stella981
3年前
Nginx配置https
一、开启nginx的ssl模块1.未安装过nginx,编译安装配置参数如下:./configure\prefix/usr/local/nginx\withpcre\withhttp\_ssl\_modulessl模块\withhttp\_stub\_status\_module\wit
Wesley13 Wesley13
3年前
4. Nginx模块
Nginx官方模块1.ngx\_http\_stub\_status\_modulehttp://nginx.org/en/docs/http/ngx\_http\_stub\_status\_module.html。(https://www.oschina.net/action/GoToLink?urlhttp%3A%2
Stella981 Stella981
3年前
Python之time模块的时间戳、时间字符串格式化与转换
Python处理时间和时间戳的内置模块就有time,和datetime两个,本文先说time模块。关于时间戳的几个概念时间戳,根据1970年1月1日00:00:00开始按秒计算的偏移量。时间元组(struct_time),包含9个元素。 time.struct_time(tm_y
Wesley13 Wesley13
3年前
mysql设置时区
mysql设置时区mysql\_query("SETtime\_zone'8:00'")ordie('时区设置失败,请联系管理员!');中国在东8区所以加8方法二:selectcount(user\_id)asdevice,CONVERT\_TZ(FROM\_UNIXTIME(reg\_time),'08:00','0
Stella981 Stella981
3年前
Django中Admin中的一些参数配置
设置在列表中显示的字段,id为django模型默认的主键list_display('id','name','sex','profession','email','qq','phone','status','create_time')设置在列表可编辑字段list_editable
Wesley13 Wesley13
3年前
MySQL部分从库上面因为大量的临时表tmp_table造成慢查询
背景描述Time:20190124T00:08:14.70572408:00User@Host:@Id:Schema:sentrymetaLast_errno:0Killed:0Query_time:0.315758Lock_
Python进阶者 Python进阶者
10个月前
Excel中这日期老是出来00:00:00,怎么用Pandas把这个去除
大家好,我是皮皮。一、前言前几天在Python白银交流群【上海新年人】问了一个Pandas数据筛选的问题。问题如下:这日期老是出来00:00:00,怎么把这个去除。二、实现过程后来【论草莓如何成为冻干莓】给了一个思路和代码如下:pd.toexcel之前把这