版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1Menu22014September3SystemStructureInstallationDeloyment(docker)34WebSiteDevelopmet5ApplicationDevelopmetTechnialStructureDataDriverTechnicalRoadmap2017September3Postgres9.4Python2.7AGPLGTK+QWebSOABPMDocker++++TechnicalStructure2017September3InstallationInstallation2017September31423OnlineDemoSourceInstall(windowslocal)SaaS(Official)Packagedinstallers(windowslocal)5dockerimage6ActivethedevelopermodeInstallation-Demo2017September3/trialInstallation–SaaS(Official)2017September3/trialInstallation–PackageInstall(win)2017September3/page/download/p/29019457OfficialPackageGreenPackageSetup/?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-machinesshmanager1dockernodelsdocker-machinesshmanager1dockerswarminit--listen-addr00:2377--advertise-addr00Deployment–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="http://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.pyir.model.access.csvviews.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"/></record></data></odoo>AppDevelop–Extendexistingapp2017September
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 2025年江西師范高等??茖W(xué)校高職單招語文2018-2024歷年參考題庫頻考點(diǎn)含答案解析
- 2025年武漢電力職業(yè)技術(shù)學(xué)院高職單招語文2018-2024歷年參考題庫頻考點(diǎn)含答案解析
- 航空運(yùn)輸合同集錦
- 人工智能算法開發(fā)與應(yīng)用合同
- 幼兒園植樹節(jié)策劃方案2021【五篇】
- 桉樹造林工程承包合同書
- 新企業(yè)之間借款合同范本
- 采購法務(wù)與合同管理1
- 咨詢培訓(xùn)服務(wù)合同模板
- 校車租賃合同書
- 2025-2030年中國清真食品行業(yè)運(yùn)行狀況及投資發(fā)展前景預(yù)測報(bào)告
- 廣東省茂名市電白區(qū)2024-2025學(xué)年七年級上學(xué)期期末質(zhì)量監(jiān)測生物學(xué)試卷(含答案)
- 數(shù)字化轉(zhuǎn)型中的職業(yè)能力重構(gòu)
- 2025屆高中數(shù)學(xué)一輪復(fù)習(xí)專練:橢圓(含解析)
- 中國服裝零售行業(yè)發(fā)展環(huán)境、市場運(yùn)行格局及前景研究報(bào)告-智研咨詢(2025版)
- 臨床提高膿毒性休克患者1h集束化措施落實(shí)率PDCA品管圈
- 汽車車身密封條設(shè)計(jì)指南
- 2024建安杯信息通信建設(shè)行業(yè)安全競賽題庫(試題含答案)
- JBT 14727-2023 滾動軸承 零件黑色氧化處理 技術(shù)規(guī)范 (正式版)
- 術(shù)后譫妄及護(hù)理
- 醫(yī)藥行業(yè)的市場營銷與渠道拓展
評論
0/150
提交評論