python3 xpath解析html並修改後輸出

前言:

平時我們都是對html文件進行解析後再取數據,用來做數據清洗。網上的xpath教程也很好有講到怎麼對html文件進行修改

這裏我給出一個例子,保證簡單易懂,擺脫手敲re正則表達式的煩惱.

demo的html文件。這裏我暫且取名爲111.html

<section class="oe_container app"> <div class="oe_row oe_spaced" style="max-width: 95%;"> <div class="oe_span12"> <h2 class="oe_slogan">App Odoo Customize</h2> <h4 class="mt8"> If you are using odoo enterprise, you can <a href="https://www.odoo.com/apps/modules/12.0/app_web_enterprise/" target="_blank"> get this app for more customize </a> </h4> <h2 class="mt32 mb32"> If you like to grow your business in Great China. Welcome to <a href="https://www.sunpop.cn" target="_blank" class="text-danger"> contact odoo offical partner Sunpop.cn </a> </h2> <h4 class="mt8"> Also you can <a href="https://www.odoo.com/apps/modules/browse?author=Sunpop.cn" target="_blank"> get more powerful odoo apps from us. </a>. like [superbar widget] </h4> <div class="oe_demo oe_screenshot"> <a href="https://www.odoo.com/apps/modules/browse?author=Sunpop.cn" target="_blank"> <img oe_demo oe_screenshot src="http://www.odoo.com/apps/modules/12.0/app_web_superbar/banner.gif"/> </a> </div> <div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;"> <p>This moduld allows user to quickly customize and debranding Odoo. Quick debug, Language Switcher, Online Documentation Access,Quick Data Clear. </p> <p class="mb16">Support Odoo 13, 12, 11, 10, 9. Including communicate and enterprise version. </p> <h3>Update: v12.19.06.02</h3> <p>27. Add odoo 13 support, Just install this app on odoo 13, master branch of odoo github.</p> <p> If you are using windows, you can get odoo 13 from <a href="http://github.com/guohuadeng/odoo13-x64" target="_blank">http://github.com/guohuadeng/odoo13-x64</a> </p> <h3>Update: v12.19.04.30</h3> <p>26. Add multi uninstall modules</p> <h3>Update: v12.19.04.18</h3> <p>25. Add remove expense data</p> <h3>Update: v12.19.04.17</h3> <p>Add Customize Odoo Native Module(eg. Enterprise) Url</p> <h3>Update: v12.19.3.15</h3> <p>Add reset or clear website blog data</p> <h3>Update: v12.19.3.12</h3> <p>Optimize chinese translate and document.</p> <p>Fix bug: Data reset.</p> <h3>Update: v12.19.1.20</h3> <p>Fix bug: Save config error.</p> <h3>Update: v12.19.1.05</h3> <p>Fix bug: If you install Muk moudle, odooapp customize would pop error like "attachment_location". Sometime you need to uninstall this app and restart odoo, install again to take affect.</p> <h3>Update: v12.0.12.25</h3> <p>add 22. Update online manual and developer document to odoo12.</p> <h3>Update: v12.0.11.08</h3> <p>Add 21. Reset Account Chart.</p> <h3>Update: v12.0.9.30</h3> <p>Add 20. Show quick upgrade in app dashboard</p> <h3>Update: v12.0.9.25</h3> <p>Now ready for odoo 12, please email to me. [email protected]</p> <h3>Update: v12.0.7.23</h3> <p>Fix Login bug when install website.</p> <p>Add 19. One Click to clear all data (Sometime pls click twice)</p> <p>Add 18. Show/Hide Author and Website in Apps Dashboard</p> <h1 class="text-primary">More Powerful addons:</h1> <p class=""> <a class="btn btn-block btn-success mt16 mb16" href="http://www.odoo.com/apps/modules/browse?author=Sunpop.cn">Sunpop.cn Awesome Odoo Addons</a> </p> <br> <h3>Add Odoo 12, 11 Support</h3> <ul class="list-group"> <li class="list-group-item">1. Deletes Odoo label in footer</li> <li class="list-group-item">2. Replaces "Odoo" in Windows title</li> <li class="list-group-item">3. Customize Documentation, Support, About links and title in usermenu</li> <li class="list-group-item">4. Adds "Developer mode" link to the top right-hand User Menu.</li> <li class="list-group-item">5. Adds Quick Language Switcher to the top right-hand User Menu.</li> <li class="list-group-item">6. Adds Country flags to the top right-hand User Menu.</li> <li class="list-group-item">7. Adds English and Chinese user documentation access to the top right-hand User Menu.</li> <li class="list-group-item">8. Adds developer documentation access to the top right-hand User Menu.</li> <li class="list-group-item">9. Customize "My odoo.com account" button</li> <li class="list-group-item">10. Standalone setting panel, easy to setup.</li> <li class="list-group-item">11. Provide 236 country flags.</li> <li class="list-group-item">12. Multi-language Support.</li> <li class="list-group-item">13. Change Powered by Odoo in login screen.(Please change '../views/app_odoo_customize_view.xml' #15)</li> <li class="list-group-item">14. Quick delete test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Project/Base Models.</li> <li class="list-group-item">15. Reset All the Sequence to beginning of 1: SO/PO/MO/Invoice...</li> <li class="list-group-item">16. Fix odoo reload module translation bug while enable english language</li> <li class="list-group-item">17. Stop Odoo Auto Subscribe(Performance Improve)</li> <li class="list-group-item">18. Show/Hide Author and Website in Apps Dashboard (odoo 11 only)</li> <li class="list-group-item">19. One Click to clear all data (Sometime pls click twice)</li> <li class="list-group-item">20. Show quick upgrade in app dashboard, click to show module info not go to odoo.com</li> <li class="list-group-item">21. Can clear and reset account chart. Be cautious.</li> <li class="list-group-item">22. Update online manual and developer document to odoo12.</li> <li class="list-group-item">23. Add reset or clear website blog data</li> <li class="list-group-item">24. Customize Odoo Native Module(eg. Enterprise) Url</li> <li class="list-group-item">25. Add remove expense data</li> <li class="list-group-item">26. Add multi uninstall modules</li> <li class="list-group-item">27. Add odoo 13 support, Just install this app on odoo 13, master branch of odoo github.</li> </ul> <p> This module can help to white label the Odoo. Also helpful for training and support for your odoo end-user.<br/> The user can get the help document just by one click. </p> </div> <div class="oe_demo oe_screenshot"> <img src="cnreadme.png" style="border:1px solid black"/> <br/> </div> </div> </div> <div class="oe_row oe_spaced" style="max-width: 95%;"> <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;"> <h2 class='oe_mt32'>Odoo Customize(Debranding Title,Language,Documentation,Quick Debug)</h2> </div> <div class="oe_demo oe_screenshot"> <img src="banner.gif" style="border:1px solid black"/> <br/> </div> <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;"> <h2 class='oe_mt32'>odoo 13 Ready for communicate and enterprise edition</h2> </div> <div class="oe_demo oe_screenshot"> <img src="odoo13ready.jpg" style="border:1px solid black"/> <br/> </div> <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;"> <h2 class='oe_mt32'>Easy data cleanup</h2> </div> <div class="oe_demo oe_screenshot"> <img src="set3.jpg" style="border:1px solid black"/> <br/> </div> <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;"> <h2 class='oe_mt32'>Multi-language support: Chinese ready</h2> </div> <div class="oe_demo oe_screenshot"> <img src="set11.png" style="border:1px solid black"/> </br> <img src="set12.png" style="border:1px solid black"/> <br/> </div> </div> <div class="oe_row oe_spaced" style="max-width: 95%;"> <div class="oe_demo" style=" argin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%; "> <h2 class='oe_mt32'>How to use: Go to Settings -> odooApp Settings</h2> </div> <div class="oe_demo oe_screenshot"> <img src="set1.jpg" style="border:1px solid black"/> <br/> </div> </div> <div class="oe_row oe_spaced" style="max-width: 95%;"> <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%; "> <h2 class='oe_mt32'>Set System Icon (odoo 10 only)</h2> </div> <div class="oe_demo oe_screenshot"> <img src="set19.jpg" style="border:1px solid black"/> <br/> </div> </div> <div class="oe_row oe_spaced" style="max-width: 95%;"> <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;"> <h2 class='oe_mt32'>Show/Hide Author and Website in Apps Dashboard</h2> </div> <p>Before</p> <div class="oe_demo oe_screenshot"> <img src="set18-1.jpg" style="border:1px solid black"/> <br/> </div> <p>After uncheck "Show Author in Apps Dashboard"</p> <div class="oe_demo oe_screenshot"> <img src="set18-2.jpg" style="border:1px solid black"/> <br/> </div> </div> <div class="oe_row oe_spaced" style="max-width: 95%;"> <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;"> <h2 class='oe_mt32'>Show quick upgrade in app dashboard, click to show module info not go to odoo.com</h2> </div> <p>No more redirect to odoo.com</p> <div class="oe_demo oe_screenshot"> <img src="set20.jpg" style="border:1px solid black"/> <br/> </div> </div> <div class="oe_row oe_spaced" style="max-width: 95%;"> <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;"> <h2 class='oe_mt32'>Setup more flags: just rename the flag pic to locale code of the country</h2> <p>You can find the pictures in "\app-odoo\app_odoo_customize\static\src\img\flags"</p> </div> <div class="oe_demo oe_screenshot"> <img src="set2.png" style="border:1px solid black"/> <br/> </div> </div> <div class="oe_row oe_spaced" style="max-width: 95%;"> <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;"> <h2 class='oe_mt32'>Customize Module Url(eg. Enterprise).</h2> </div> <div class="oe_demo oe_screenshot"> <img src="set21.jpg" style="border:1px solid black"/> <br/> </div> </div> <div class="oe_row oe_spaced" style="max-width: 95%;"> <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;"> <h2 class='oe_mt32'>Quick Delete test Data.</h2> <p>You can quickly delete all the test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Message/Workflow etc.</p> </div> <div class="oe_demo oe_screenshot"> <img src="set3.jpg" style="border:1px solid black"/> <br/> </div> </div> </section> <section class="oe_container oe_dark"> <div class="oe_row oe_spaced text-center"> <div class="oe_span12"> <h2 class="oe_slogan">Technical Help & Support</h2> </div> <div class="col-md-12 pad0"> <div class="oe_mt16"> <p><h4> For any type of technical help & support requests, Feel free to contact us</h4></p> <a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;" class="btn btn-warning btn-lg" rel="nofollow" href="mailto:[email protected]"><span style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span> <i class="fa fa-envelope"></i> [email protected]</a> <p><h4> Via QQ: 300883</h4></p> <a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;" class="btn btn-warning btn-lg" rel="nofollow" href="mailto:[email protected]"><span style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span> <i class="fa fa-envelope"></i> [email protected]</a> </div> <div class="oe_mt16"> <p><h4> Visit our website for more support.</h4></p> <a style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;" class="btn btn-warning btn-lg" rel="nofollow" href="https://www.sunpop.cn" target="_blank"><span style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;" class="o_ripple"></span> <i class="fa fa-web"></i>https://www.sunpop.cn</a> </div> </div> </div> </section>

py代碼:

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# File  : html解析.py
# Author: DaShenHan&道長-----先苦後甜,任憑晚風拂柳顏------
# Date  : 2020/6/16
#Refrence http://www.voidcn.com/article/p-ouvjtcvz-bty.html

from bs4 import BeautifulSoup
# from lxml import etree
from lxml import html

def main_func(out_file="ret.html"):
    with open("111.html", encoding="utf-8") as f:
        html_str = f.read()
    html_str = BeautifulSoup(html_str, "html.parser").prettify()
    html_xp = html.fromstring(html_str)
    for src in html_xp.xpath("//img[not(contains(@src,'http'))]"):
        old_src = src.xpath('./@src')[0]
        new_src = f'un_path/name_dir/static/description/{old_src}'
        src.attrib['src'] = new_src
    ret = html.tostring(html_xp)
    with open(out_file,mode='wb+') as f:
        f.write(ret)
    print(f"處理完畢,輸出文件爲{out_file}")

if __name__ == '__main__':
    main_func()

想要的效果:

將原html裏面img標籤下面的src沒有http地址的鏈接,全部在前面加上我指定的路徑進行修改後輸出一個新的html文件

最後的得到的效果:  ret.html

<div><section class="oe_container app">
 <div class="oe_row oe_spaced" style="max-width: 95%;">
  <div class="oe_span12">
   <h2 class="oe_slogan">
    App Odoo Customize
   </h2>
   <h4 class="mt8">
    If you are using odoo enterprise, you can
    <a href="https://www.odoo.com/apps/modules/12.0/app_web_enterprise/" target="_blank">
     get this app for more customize
    </a>
   </h4>
   <h2 class="mt32 mb32">
    If you like to grow your business in Great China. Welcome to
    <a class="text-danger" href="https://www.sunpop.cn" target="_blank">
     contact odoo offical partner Sunpop.cn
    </a>
   </h2>
   <h4 class="mt8">
    Also you can
    <a href="https://www.odoo.com/apps/modules/browse?author=Sunpop.cn" target="_blank">
     get more powerful odoo apps from us.
    </a>
    . like [superbar widget]
   </h4>
   <div class="oe_demo oe_screenshot">
    <a href="https://www.odoo.com/apps/modules/browse?author=Sunpop.cn" target="_blank">
     <img oe_demo="" oe_screenshot="" src="http://www.odoo.com/apps/modules/12.0/app_web_superbar/banner.gif">
    </a>
   </div>
   <div class="oe_demo" style=" margin: 30px auto 0; padding: 0 15px 0 0; border:none; width: 96%;">
    <p>
     This moduld allows user to quickly customize and debranding Odoo. Quick debug, Language Switcher, Online Documentation Access,Quick Data Clear.
    </p>
    <p class="mb16">
     Support Odoo 13, 12, 11, 10, 9. Including communicate and enterprise version.
    </p>
    <h3>
     Update: v12.19.06.02
    </h3>
    <p>
     27. Add odoo 13 support, Just install this app on odoo 13, master branch of odoo github.
    </p>
    <p>
     If you are using windows, you can get odoo 13 from
     <a href="http://github.com/guohuadeng/odoo13-x64" target="_blank">
      http://github.com/guohuadeng/odoo13-x64
     </a>
    </p>
    <h3>
     Update: v12.19.04.30
    </h3>
    <p>
     26. Add multi uninstall modules
    </p>
    <h3>
     Update: v12.19.04.18
    </h3>
    <p>
     25. Add remove expense data
    </p>
    <h3>
     Update: v12.19.04.17
    </h3>
    <p>
     Add Customize Odoo Native Module(eg. Enterprise) Url
    </p>
    <h3>
     Update: v12.19.3.15
    </h3>
    <p>
     Add reset or clear website blog data
    </p>
    <h3>
     Update: v12.19.3.12
    </h3>
    <p>
     Optimize chinese translate and document.
    </p>
    <p>
     Fix bug: Data reset.
    </p>
    <h3>
     Update: v12.19.1.20
    </h3>
    <p>
     Fix bug: Save config error.
    </p>
    <h3>
     Update: v12.19.1.05
    </h3>
    <p>
     Fix bug: If you install Muk moudle, odooapp customize would pop error like "attachment_location". Sometime you need to uninstall this app and restart odoo, install again to take affect.
    </p>
    <h3>
     Update: v12.0.12.25
    </h3>
    <p>
     add 22. Update online manual and developer document to odoo12.
    </p>
    <h3>
     Update: v12.0.11.08
    </h3>
    <p>
     Add 21. Reset Account Chart.
    </p>
    <h3>
     Update: v12.0.9.30
    </h3>
    <p>
     Add 20. Show quick upgrade in app dashboard
    </p>
    <h3>
     Update: v12.0.9.25
    </h3>
    <p>
     Now ready for odoo 12, please email to me. [email protected]
    </p>
    <h3>
     Update: v12.0.7.23
    </h3>
    <p>
     Fix Login bug when install website.
    </p>
    <p>
     Add 19. One Click to clear all data (Sometime pls click twice)
    </p>
    <p>
     Add 18. Show/Hide Author and Website in Apps Dashboard
    </p>
    <h1 class="text-primary">
     More Powerful addons:
    </h1>
    <p class="">
     <a class="btn btn-block btn-success mt16 mb16" href="http://www.odoo.com/apps/modules/browse?author=Sunpop.cn">
      Sunpop.cn Awesome Odoo Addons
     </a>
    </p>
    <br>
    <h3>
     Add Odoo 12, 11 Support
    </h3>
    <ul class="list-group">
     <li class="list-group-item">
      1. Deletes Odoo label in footer
     </li>
     <li class="list-group-item">
      2. Replaces "Odoo" in Windows title
     </li>
     <li class="list-group-item">
      3. Customize Documentation, Support, About links and title in usermenu
     </li>
     <li class="list-group-item">
      4. Adds "Developer mode" link to the top right-hand User Menu.
     </li>
     <li class="list-group-item">
      5. Adds Quick Language Switcher to the top right-hand User Menu.
     </li>
     <li class="list-group-item">
      6. Adds Country flags to the top right-hand User Menu.
     </li>
     <li class="list-group-item">
      7. Adds English and Chinese user documentation access to the top right-hand User Menu.
     </li>
     <li class="list-group-item">
      8. Adds developer documentation access to the top right-hand User Menu.
     </li>
     <li class="list-group-item">
      9. Customize "My odoo.com account" button
     </li>
     <li class="list-group-item">
      10. Standalone setting panel, easy to setup.
     </li>
     <li class="list-group-item">
      11. Provide 236 country flags.
     </li>
     <li class="list-group-item">
      12. Multi-language Support.
     </li>
     <li class="list-group-item">
      13. Change Powered by Odoo in login screen.(Please change '../views/app_odoo_customize_view.xml' #15)
     </li>
     <li class="list-group-item">
      14. Quick delete test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Project/Base Models.
     </li>
     <li class="list-group-item">
      15. Reset All the Sequence to beginning of 1: SO/PO/MO/Invoice...
     </li>
     <li class="list-group-item">
      16. Fix odoo reload module translation bug while enable english language
     </li>
     <li class="list-group-item">
      17. Stop Odoo Auto Subscribe(Performance Improve)
     </li>
     <li class="list-group-item">
      18. Show/Hide Author and Website in Apps Dashboard (odoo 11 only)
     </li>
     <li class="list-group-item">
      19. One Click to clear all data (Sometime pls click twice)
     </li>
     <li class="list-group-item">
      20. Show quick upgrade in app dashboard, click to show module info not go to odoo.com
     </li>
     <li class="list-group-item">
      21. Can clear and reset account chart. Be cautious.
     </li>
     <li class="list-group-item">
      22. Update online manual and developer document to odoo12.
     </li>
     <li class="list-group-item">
      23. Add reset or clear website blog data
     </li>
     <li class="list-group-item">
      24. Customize Odoo Native Module(eg. Enterprise) Url
     </li>
     <li class="list-group-item">
      25. Add remove expense data
     </li>
     <li class="list-group-item">
      26. Add multi uninstall modules
     </li>
     <li class="list-group-item">
      27. Add odoo 13 support, Just install this app on odoo 13, master branch of odoo github.
     </li>
    </ul>
    <p>
     This module can help to white label the Odoo. Also helpful for training and support for your odoo end-user.
     <br>
      The user can get the help document just by one click.
     
    </p>
   </div>
   <div class="oe_demo oe_screenshot">
    <img src="un_path/name_dir/static/description/cnreadme.png" style="border:1px solid black">
    <br>
   </div>
  </div>
 </div>
 <div class="oe_row oe_spaced" style="max-width: 95%;">
  <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
   <h2 class="oe_mt32">
    Odoo Customize(Debranding Title,Language,Documentation,Quick Debug)
   </h2>
  </div>
  <div class="oe_demo oe_screenshot">
   <img src="un_path/name_dir/static/description/banner.gif" style="border:1px solid black">
   <br>
  </div>
  <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
   <h2 class="oe_mt32">
    odoo 13 Ready for communicate and enterprise edition
   </h2>
  </div>
  <div class="oe_demo oe_screenshot">
   <img src="un_path/name_dir/static/description/odoo13ready.jpg" style="border:1px solid black">
   <br>
  </div>
  <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
   <h2 class="oe_mt32">
    Easy data cleanup
   </h2>
  </div>
  <div class="oe_demo oe_screenshot">
   <img src="un_path/name_dir/static/description/set3.jpg" style="border:1px solid black">
   <br>
  </div>
  <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
   <h2 class="oe_mt32">
    Multi-language support: Chinese ready
   </h2>
  </div>
  <div class="oe_demo oe_screenshot">
   <img src="un_path/name_dir/static/description/set11.png" style="border:1px solid black">
  </div>
 </div>
</section>
<img src="un_path/name_dir/static/description/set12.png" style="border:1px solid black">
<br>
<div class="oe_row oe_spaced" style="max-width: 95%;">
 <div class="oe_demo" style=" argin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%; ">
  <h2 class="oe_mt32">
   How to use: Go to Settings -&gt; odooApp Settings
  </h2>
 </div>
 <div class="oe_demo oe_screenshot">
  <img src="un_path/name_dir/static/description/set1.jpg" style="border:1px solid black">
  <br>
 </div>
</div>
<div class="oe_row oe_spaced" style="max-width: 95%;">
 <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%; ">
  <h2 class="oe_mt32">
   Set System Icon (odoo 10 only)
  </h2>
 </div>
 <div class="oe_demo oe_screenshot">
  <img src="un_path/name_dir/static/description/set19.jpg" style="border:1px solid black">
  <br>
 </div>
</div>
<div class="oe_row oe_spaced" style="max-width: 95%;">
 <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
  <h2 class="oe_mt32">
   Show/Hide Author and Website in Apps Dashboard
  </h2>
 </div>
 <p>
  Before
 </p>
 <div class="oe_demo oe_screenshot">
  <img src="un_path/name_dir/static/description/set18-1.jpg" style="border:1px solid black">
  <br>
 </div>
 <p>
  After uncheck "Show Author in Apps Dashboard"
 </p>
 <div class="oe_demo oe_screenshot">
  <img src="un_path/name_dir/static/description/set18-2.jpg" style="border:1px solid black">
  <br>
 </div>
</div>
<div class="oe_row oe_spaced" style="max-width: 95%;">
 <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
  <h2 class="oe_mt32">
   Show quick upgrade in app dashboard, click to show module info not go to odoo.com
  </h2>
 </div>
 <p>
  No more redirect to odoo.com
 </p>
 <div class="oe_demo oe_screenshot">
  <img src="un_path/name_dir/static/description/set20.jpg" style="border:1px solid black">
  <br>
 </div>
</div>
<div class="oe_row oe_spaced" style="max-width: 95%;">
 <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
  <h2 class="oe_mt32">
   Setup more flags: just rename the flag pic to locale code of the country
  </h2>
  <p>
   You can find the pictures in "\app-odoo\app_odoo_customize\static\src\img\flags"
  </p>
 </div>
 <div class="oe_demo oe_screenshot">
  <img src="un_path/name_dir/static/description/set2.png" style="border:1px solid black">
  <br>
 </div>
</div>
<div class="oe_row oe_spaced" style="max-width: 95%;">
 <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
  <h2 class="oe_mt32">
   Customize Module Url(eg. Enterprise).
  </h2>
 </div>
 <div class="oe_demo oe_screenshot">
  <img src="un_path/name_dir/static/description/set21.jpg" style="border:1px solid black">
  <br>
 </div>
</div>
<div class="oe_row oe_spaced" style="max-width: 95%;">
 <div class="oe_demo" style="margin: 20px auto; padding: 0 15px 0 0; border:none; border-top:solid 1px #dedede; width: 96%;">
  <h2 class="oe_mt32">
   Quick Delete test Data.
  </h2>
  <p>
   You can quickly delete all the test data in Apps: Sales/POS/Purchase/MRP/Inventory/Accounting/Message/Workflow etc.
  </p>
 </div>
 <div class="oe_demo oe_screenshot">
  <img src="un_path/name_dir/static/description/set3.jpg" style="border:1px solid black">
  <br>
 </div>
</div>
<section class="oe_container oe_dark">
 <div class="oe_row oe_spaced text-center">
  <div class="oe_span12">
   <h2 class="oe_slogan">
    Technical Help &amp; Support
   </h2>
  </div>
  <div class="col-md-12 pad0">
   <div class="oe_mt16">
    <p>
     </p><h4>
      For any type of technical help &amp; support requests, Feel free to contact us
     </h4>
    
    <a class="btn btn-warning btn-lg" href="mailto:[email protected]" rel="nofollow" style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;">
     <span class="o_ripple" style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;">
     </span>
     <i class="fa fa-envelope">
     </i>
     [email protected]
    </a>
    <p>
     </p><h4>
      Via QQ: 300883
     </h4>
    
    <a class="btn btn-warning btn-lg" href="mailto:[email protected]" rel="nofollow" style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;">
     <span class="o_ripple" style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;">
     </span>
     <i class="fa fa-envelope">
     </i>
     [email protected]
    </a>
   </div>
   <div class="oe_mt16">
    <p>
     </p><h4>
      Visit our website for more support.
     </h4>
    
    <a class="btn btn-warning btn-lg" href="https://www.sunpop.cn" rel="nofollow" style="background: #002e5a none repeat scroll 0% 0%; color: rgb(255, 255, 255);position: relative; overflow: hidden;" target="_blank">
     <span class="o_ripple" style="height: 354px; width: 354px; top: -147.433px; left: -6.93335px;">
     </span>
     <i class="fa fa-web">
     </i>
     https://www.sunpop.cn
    </a>
   </div>
  </div>
 </div>
</section></div>

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章