Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

0

How can a such thing be possible?

By
Pascal Tremblay
on 3/17/15, 10:31 AM 888 views

Hello guys,

Look at this. Where is the prob?

1) I search in all file of Odoo for the characters « X-UA-Compatible ».

http://lapagept.com3imagtes/odoo/w2w3.png 

2) I replace all instances of « X-UA-Compatible » by some scrap.

http://lapagept.com3imagtes/odoo/w2w2.png 

3) I always get this original line

http://lapagept.com3imagtes/odoo/w2w4.png  


?????

 

1

Jérémy Kersten (jke)

--Jérémy Kersten (jke)--
2983
| 3 2 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 3/17/15, 11:33 AM


Have you updated the module ?

Because at installation, Odoo load the xml into the database.

If you want to update it directly in Odoo to test, you can go to :

Settings -> Technical -> Technical Settings -> Views

Search for "POS index"

And you can edit and see the result in real time !

ok, will try an « -u all » to see.

Pascal Tremblay
on 3/17/15, 12:28 PM

you can do '-u point_of_sale' That will be quickly

Jérémy Kersten (jke)
on 3/17/15, 12:29 PM
0

Pascal Tremblay

--Pascal Tremblay--
1312
| 5 2 7
Alma, Canada
--Pascal Tremblay--


Pascal Tremblay
On 3/17/15, 12:54 PM


OK, you are right. I had to update. BUT, now, look at this.


In my file /home/odoo-test/odoo-test/addons/point_of_sale/views/templates.xml :

<?xml version="1.0" encoding="utf-8"?>

<openerp>

<data>

<template id="index" name="POS Index - Original"><!DOCTYPE html>

<html>

<head>

<title>Odoo POSzxxx</title>

<meta http-equiv="X-UA-Compatibleasdasd" content="IE=edge,chrome=1"/>

 

THE TITLE TAG IS ALWAYS UNCHANGED WHEN I INSPECT THE CODE!! I search about this title since many days... 

Look image
http://lapagept.com/images/odoo/adfa.png


UPDATE #1

If I define point_of_sale.index in my custom module, it works...

<?xml version="1.0" encoding="utf-8"?>

<openerp>

<data>

<template id="point_of_sale.index" name="POS Index - Original"><!DOCTYPE html>

<html>

<head>

<title>Odoo POSzxxx</title>

<meta http-equiv="X-UA-Compatibleasdasd" content="IE=edge,chrome=1"/>

http://lapagept.com/images/odoo/wwwwe.png

UPDATE #2

It's true! with this, it works.

https://github.com/odoo/odoo/commit/082a6ce0abaf772bfff22643402b250bdd271f5d


UPDATE #3

I'm still in the same problem (like one of my previous post https://www.odoo.com/forum/help-1/question/how-to-replace-a-title-with-xpath-81796). Here is the code from my custom module. the first xpath NEVER works. The second xpath ALWAYS works.


<template id="point_of_sale.index_as" inherit_id='point_of_sale.index' name="Index - AS">

<xpath expr="//title" position="replace">

<title>Odoo POS - AS</title>

</xpath>

<xpath expr="//link[@id='pos-stylesheet']" position="after">

<link rel="stylesheet" href="/pos_lapagept/static/src/css/pos_as.css" />

</xpath>

</template>

 

I begin to think that in the point_of_sale module, there is some python or js code who MODIFY the title tag of the page...

Pascal Tremblay
on 3/17/15, 12:59 PM

I just take a (long) look, and it's true, that is the default behavior of webClient which override the title... I have juste changed that (https://github.com/odoo/odoo/commit/082a6ce0abaf772bfff22643402b250bdd271f5d) so if you pull or cherry-pick my commit, it will be fixed :)

Jérémy Kersten (jke)
on 3/17/15, 1:56 PM

Thanks a lot! I was sure nobody look at this post! Ouf! Thanks

Pascal Tremblay
on 3/17/15, 2:01 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

Asked: 3/17/15, 10:31 AM
Seen: 888 times
Last updated: 4/17/15, 8:46 AM