




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
odoo技术指南1Menu22014September3SystemStructureInstallationDeloyment(docker)34WebSiteDevelopmet5ApplicationDevelopmetTechnialStructureDataDriverTechnicalRoadmap2017September3Postgres9.4Python2.7AGPLGTK+QWebSOABPMDocker++++TechnicalStructure2017September3InstallationInstallation2017September31423OnlineDemoSourceInstall(windowslocal)SaaS(Official)Packagedinstallers(windowslocal)5dockerimage6ActivethedevelopermodeInstallation-Demo2017September3Installation–SaaS(Official)2017September3Installation–PackageInstall(win)2017September3OfficialPackageGreenPackageSetup/?target=http%3A//localhost%3A8069/Installation–Sourceinstall(win)2017September31423InstallingPython2.7pythonodoo-bin-wodoo-rodoo--addons-path=addons,../mymodules--db-filter=mydb$InstallingPostgreSQL9.4gitclone/odoo/odoo/tree/10.05http://localhost:8069Installation–dockerimage2017September312InstallingDocker-tools(win7)/Docker-for-windows(win10)Createavm(runinQT)VisualBoxKetimaticQuickstartTerminalInstallation–dockerimage2017September33RemotetovmRemotebyenvcommandRemotebysshcommandInstallation–dockerimage2017September34installimages5Startinstance$dockerrun-d-ePOSTGRES_USER=odoo-ePOSTGRES_PASSWORD=odoo--namedbpostgres:9.4$dockerrun-p8069:8069--nameodoo--linkdb:db-todooInstallation–dockerimage2017September36Visitodoo“Id”:”sha256…Inspectodoo:10.0“8071/tcp”:{}“8069/tcp”:{}/etc/odoo/odoo.conf/mnt/extra-addons/var/lib/odoo02:8069Installation–Activedevelopermode2017September3DeploymentDeployment–dockercompose2017September3DockerDockerMachineDockerComposeDockerSwarmDockerHubDeployment–deploystructure2017September3HOSTmanagernodeImageOdoo10.0ImagePostgres9.4ContainerOdooContainerdbaddonsdataOdoo.conf/path/to/addonsodoo_db_.*/path/to/configWorknodeImageOdoo10.0ContainerOdooWorknodeImageOdoo10.0ContainerOdooWorknodeImagePostgres9.4ContainerdbWorknodeImagePostgres9.4ContainerdbDockerSwarmdockerFileDeployment–dockerswarm2017September3Toaddaworkertothisswarm,runthefollowingcommand:dockerswarmjoin\--tokenSWMTKN-1-3z5rzoey0u6onkvvm58f7vgkser5d7z8sfshlu7s4oz2gztlvj-c036gwrakjejql06klrfc585r\00:2377Toaddamanagertothisswarm,run'dockerswarmjoin-tokenmanager'andfollowtheinstructions.docker-machinesshmanager1dockernodelsDeployment–dockerrun2017September3dockerrun-v/path/to/config:/etc/odoo-p8069:8069--nameodoo--linkdb:db-todoo
dockerrun-v/path/to/addons:/mnt/extra-addons-p8069:8069--nameodoo--linkdb:db-todoodockerrun-p8069:8069--nameodoo--linkdb:db-todoo----db-filter=odoo_db_.*Deployment–dockerrun2017September3dockerrun-v/path/to/config:/etc/odoo-p8069:8069--nameodoo--linkdb:db-todoo
dockerrun-v/path/to/addons:/mnt/extra-addons-p8069:8069--nameodoo--linkdb:db-todoodockerrun-p8069:8069--nameodoo--linkdb:db-todoo----db-filter=odoo_db_.*Deployment–dockercompose2017September3docker-compose.ymldocker-composeup-d
docker-composepsDocker-composelogshttp://server_ip:8069WebSiteDevelopmentWebsiteDevelopment2017September3413CreatecustomizeThemepagestructureCreateanewpage5CreatecustomizeSnippet2ThememodulestructureDevelopment–pagestructure2017September3OdooPagecrosssuniquethemesHeaderFooterSnippetStructureFeatureEffectContentlayoutcolorfontMainSnippettemplateDevelopment–modulestructure2017September3__manifest__.py__init__.pyviewslayout.xmlpage.xmlsnippets.xmlThememodulestaticimageDevelopment–createanewpage2017September301:8069/page/mypageDevelopment–customizesnippet2017September3{'name':'Tutorialtheme','version':'1.0','author':'jiangzhou','data':['views/layout.xml','views/pages.xml','views/snippets.xml'],'category':'Theme/Creative','depends':['website'],}__manifest__.py<templateid="snippet_testimonial"name="Testimonialsnippet"><sectionclass="snippet_testimonial">…</section></template><templateid="place_into_bar"inherit_id="website.snippets"name="Placeintobar"><xpathexpr="//div[@id='snippet_content']/div[@class='o_panel_body']"position="inside"></xpath></template>__manifest__.pyDevelopment–customizesnippet2017September3AppDevelopmentAppDevelopment2017September3312ExtendexistingappmodulestructureCreateanewappAppDevelop–modulestructure2017September3__manifest__.py__init__.pymodelsviewscontrollerssecuritydemo__init__.pycontrollers.pydemo.xml__init__.pymodels.pyviews.xmltemplates.xmlAppmoduleAppDevelop–createnewapp2017September3'depends':['base'],'data':['views/views.xml','views/templates.xml',],__manifest__.py<menuitemname="List"id="qingjia.menu_1_list"parent="qingjia.menu_1"action="qingjia.action_window"/><recordmodel="ir.actions.act_window"id="qingjia.action_window"><fieldname="name">qingjiawindow</field><fieldname="res_model">qingjia.qingjia</field><fieldname="view_mode">tree,form</field></record>View.xml<templateid="listing"><ul><lit-foreach="objects"t-as="object"><at-attf-href="#{root}/objects/#{object.id}"><tt-esc="object.display_name"/></a></li></ul></template>Templates.xml@http.route('/qingjia/qingjia/objects/',auth='public')deflist(self,**kw):returnhttp.request.render('qingjia.listing',{'root':'/qingjia/qingjia','objects':http.request.env['qingjia.qingjia'].search([]),})Controller.pyclassqingjia(models.Model):_name='qingjia.qingjia'name=fields.Char()value=fields.Integer()Model.pyAppDevelop–Extendexistingapp2017September3<odoo><data><recordmodel="product.public.category"id="category_courses"><fieldname="name">Courses</field><fieldname="parent_id"ref="website_sale.categ_others"/>
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 家庭经济贫困申请书
- 2025新版货物报价和销售合同7篇
- 机器人眼部追踪电机企业制定与实施新质生产力战略研究报告
- 成品片烟企业ESG实践与创新战略研究报告
- 夜光帖纸企业ESG实践与创新战略研究报告
- 窗帘、布艺类产品企业县域市场拓展与下沉战略研究报告
- 铁路运输设备批发企业ESG实践与创新战略研究报告
- 卫浴地垫企业数字化转型与智慧升级战略研究报告
- 铅笔盒百货企业ESG实践与创新战略研究报告
- 大学宿舍申请书
- 阿里巴巴管理精髓管理者必修的24招
- 医务科轮转人员规定
- 统编版一年级语文下册 口语交际 听故事讲故事 小猫种鱼 一等奖创新教学设计
- 普通地质学教材
- 《工业控制网络及组态技术》教案
- 多重耐药菌相关知识
- 2021年云南省中考地理试卷(附答案详解)
- 物业管理工作流程图全套2
- 防蝇防鼠防虫害情况记录表
- 广东省五年一贯制语文试卷
- 世界主要河流与湖泊(超好)
评论
0/150
提交评论