Skip to Content
Odoo Menu
  • Sign in
  • Try it free
  • Apps
    Finance
    • Accounting
    • Invoicing
    • Expenses
    • Spreadsheet (BI)
    • Documents
    • Sign
    Sales
    • CRM
    • Sales
    • POS Shop
    • POS Restaurant
    • Subscriptions
    • Rental
    Websites
    • Website Builder
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Supply Chain
    • Inventory
    • Manufacturing
    • PLM
    • Purchase
    • Maintenance
    • Quality
    Human Resources
    • Employees
    • Recruitment
    • Time Off
    • Appraisals
    • Referrals
    • Fleet
    Marketing
    • Social Marketing
    • Email Marketing
    • SMS Marketing
    • Events
    • Marketing Automation
    • Surveys
    Services
    • Project
    • Timesheets
    • Field Service
    • Helpdesk
    • Planning
    • Appointments
    Productivity
    • Discuss
    • Approvals
    • IoT
    • VoIP
    • Knowledge
    • WhatsApp
    Third party apps Odoo Studio Odoo Cloud Platform
  • Industries
    Retail
    • Book Store
    • Clothing Store
    • Furniture Store
    • Grocery Store
    • Hardware Store
    • Toy Store
    Food & Hospitality
    • Bar and Pub
    • Restaurant
    • Fast Food
    • Guest House
    • Beverage Distributor
    • Hotel
    Real Estate
    • Real Estate Agency
    • Architecture Firm
    • Construction
    • Estate Management
    • Gardening
    • Property Owner Association
    Consulting
    • Accounting Firm
    • Odoo Partner
    • Marketing Agency
    • Law firm
    • Talent Acquisition
    • Audit & Certification
    Manufacturing
    • Textile
    • Metal
    • Furnitures
    • Food
    • Brewery
    • Corporate Gifts
    Health & Fitness
    • Sports Club
    • Eyewear Store
    • Fitness Center
    • Wellness Practitioners
    • Pharmacy
    • Hair Salon
    Trades
    • Handyman
    • IT Hardware & Support
    • Solar Energy Systems
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Others
    • Nonprofit Organization
    • Environmental Agency
    • Billboard Rental
    • Photography
    • Bike Leasing
    • Software Reseller
    Browse all Industries
  • Community
    Learn
    • Tutorials
    • Documentation
    • Certifications
    • Training
    • Blog
    • Podcast
    Empower Education
    • Education Program
    • Scale Up! Business Game
    • Visit Odoo
    Get the Software
    • Download
    • Compare Editions
    • Releases
    Collaborate
    • Github
    • Forum
    • Events
    • Translations
    • Become a Partner
    • Services for Partners
    • Register your Accounting Firm
    Get Services
    • Find a Partner
    • Find an Accountant
    • Meet an advisor
    • Implementation Services
    • Customer References
    • Support
    • Upgrades
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Get a demo
  • Pricing
  • Help

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Accounting
  • Inventory
  • PoS
  • Project
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Tags (View all)
odoo accounting v14 pos v15
About this forum
Help

Odoo WEB : Update XML template after edit with builder

Subscribe

Get notified when there's activity on this post

This question has been flagged
xmlwebupdatetemplatebuilder
2 Replies
12693 Views
Avatar
Alexis Bednarek

When i create a template via XML like this :

<template name="Test page" id="website.test" page="True">

   <t t-call="website.layout">

    <div id="wrap">

     <div class="container">

      <h1>My template</h1>

     </div>

    </div>

   </t>

  </template>

I can see in my page ( /page/test ) the H1 title. I'm able to edit it with the builder.

After that, when i try to update the XML code of this template, i can't see the updated code in front. There is still my modified H1.

The only way i can get back to the XML version is by uninstalling my theme and reactivate it. 

Is there another way without uninstalling the theme? The problem is that there is multiple pages and templates in this theme. So if i uninstall it, i lose every modifications :/

Thank you :)

0
Avatar
Discard
Dan Čermák

I am just guessing here, but from my point of view this behavior makes sense: If you modify the XML via the builder, Odoo will probably save the modifications in the database and will not overwrite your xml (imho the sane choice, as you don't want to start overwriting xml files of addons). I don't think you can directly edit the xml changes, you'll have to probably dig into the Odoo sources to find out where the modified version is saved (maybe it's a text file, you could try using grep or ag to search for a text you inserted in the odoo folder).

However, I think there is an alternative. You can start the odoo server with the option "-u addon_name" and odoo will automatically update the addon with the name addon_name (this would be your theme). That way, you can edit the xml file with your favorite text editor, kill the server & restart it and you'll immediately see your changes. But editing with the builder will probably be a lot faster, as the server takes a while to start (especially if your machine is older).

Avatar
Alexis Bednarek
Author Best Answer

Thank you for you explanations!

The only problem here is that in my theme, i have multiple templates, updated in the builder.

So if i want to reload only this one, i will not be able to :/

0
Avatar
Discard
Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Sign up
Related Posts Replies Views Activity
Odoo Web Qweb Template Not Updated Solved
web qweb update template odoo
Avatar
Avatar
1
Jan 22
5388
How to update only changed xmls Solved
xml update
Avatar
Avatar
1
Dec 22
6419
customization web
web template
Avatar
0
Mar 19
2840
Web Builder and E Commerce - Community Edition Download?
web builder
Avatar
Avatar
2
Mar 15
6998
XML insert instead of update. Is it a bug??? Solved
xml update insert
Avatar
Avatar
Avatar
2
Dec 22
6132
Community
  • Tutorials
  • Documentation
  • Forum
Open Source
  • Download
  • Github
  • Runbot
  • Translations
Services
  • Odoo.sh Hosting
  • Support
  • Upgrade
  • Custom Developments
  • Education
  • Find an Accountant
  • Find a Partner
  • Become a Partner
About us
  • Our company
  • Brand Assets
  • Contact us
  • Jobs
  • Events
  • Podcast
  • Blog
  • Customers
  • Legal • Privacy
  • Security
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo is a suite of open source business apps that cover all your company needs: CRM, eCommerce, accounting, inventory, point of sale, project management, etc.

Odoo's unique value proposition is to be at the same time very easy to use and fully integrated.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now