This question has been flagged
4 Replies
2767 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  


?????

 

Avatar
Discard
Best Answer


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 !

Avatar
Discard
Author

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

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

Author Best Answer


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>

 

Avatar
Discard
Author

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...

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 :)

Author

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