[FIX] base,website_sale,fleet: do not use a space in xmlid

This probably a bad idea for odoo but is definitly a bad idea for pofile

As shown in gettext reference, the spaces are used as separator in po files
https://www.gnu.org/software/gettext/manual/html_node/PO-Files.html
For instance
    #: src/msgcmp.c:338 src/po-lex.c:699
    #, c-format
    msgid "found %d fatal error"
    msgstr "..."

The line "model_terms:ir.ui.view,arch_db:website_sale.search count"
was considered as two references:
- 'model_terms:ir.ui.view,arch_db:website_sale.search'
- 'count'

Correct external id of fleet, even if not translatable
This commit is contained in:
Martin Trigaux
2019-06-05 09:44:11 +00:00
parent d0805f2e6d
commit 3c568aec0b
5 changed files with 7 additions and 7 deletions
+3 -3
View File
@@ -56,7 +56,7 @@
<field name="name">Citroen</field>
<field name="image" type="base64" file="fleet/static/img/brand_citroen-image.png"/>
</record>
<record id="brand_corre la licorne" model="fleet.vehicle.model.brand">
<record id="brand_corre_la_licorne" model="fleet.vehicle.model.brand">
<field name="name">Corre La Licorne</field>
<field name="image" type="base64" file="fleet/static/img/brand_corre-la-licorne-image.png"/>
</record>
@@ -128,7 +128,7 @@
<field name="name">Lancia</field>
<field name="image" type="base64" file="fleet/static/img/brand_lancia-image.png"/>
</record>
<record id="brand_land rover" model="fleet.vehicle.model.brand">
<record id="brand_land_rover" model="fleet.vehicle.model.brand">
<field name="name">Land Rover</field>
<field name="image" type="base64" file="fleet/static/img/brand_land-rover-image.png"/>
</record>
@@ -236,7 +236,7 @@
<field name="name">Subaru</field>
<field name="image" type="base64" file="fleet/static/img/brand_subaru-image.png"/>
</record>
<record id="brand_tesla motors" model="fleet.vehicle.model.brand">
<record id="brand_tesla_motors" model="fleet.vehicle.model.brand">
<field name="name">Tesla Motors</field>
<field name="image" type="base64" file="fleet/static/img/brand_tesla-motors-image.png"/>
</record>
+1 -1
View File
@@ -2655,7 +2655,7 @@ msgid "eCommerce Shipping Costs"
msgstr ""
#. module: website_sale
#: model_terms:ir.ui.view,arch_db:website_sale.search count
#: model_terms:ir.ui.view,arch_db:website_sale.search_count_box
msgid "found)"
msgstr ""
+1 -1
View File
@@ -109,7 +109,7 @@
</t>
</template>
<template id="search count" inherit_id="website.website_search_box" active="False" customize_show="True" name="Show # found">
<template id="search_count_box" inherit_id="website.website_search_box" active="False" customize_show="True" name="Show # found">
<xpath expr="//button[hasclass('oe_search_button')]" position="inside">
<span t-if='search' class='oe_search_found'> <small>(<t t-esc="search_count"/> found)</small></span>
</xpath>
@@ -11,5 +11,5 @@ class TestUi(HttpCase):
def test_01_admin_shop_sale_coupon_tour(self):
# pre enable "Show # found" option to avoid race condition...
self.env.ref("website_sale.search count").write({"active": True})
self.env.ref("website_sale.search_count_box").write({"active": True})
self.start_tour("/", 'shop_sale_coupon', login="admin")
+1 -1
View File
@@ -504,7 +504,7 @@ state_mx_nay,mx,"Nayarit","NAY"
state_mx_nl,mx,"Nuevo León","NLE"
state_mx_oax,mx,"Oaxaca","OAX"
state_mx_pue,mx,"Puebla","PUE"
state_mx_q roo,mx,"Quintana Roo","ROO"
state_mx_q_roo,mx,"Quintana Roo","ROO"
state_mx_qro,mx,"Querétaro","QUE"
state_mx_sin,mx,"Sinaloa","SIN"
state_mx_slp,mx,"San Luis Potosí","SLP"
1 id country_id:id name code
504 state_mx_nl mx Nuevo León NLE
505 state_mx_oax mx Oaxaca OAX
506 state_mx_pue mx Puebla PUE
507 state_mx_q roo state_mx_q_roo mx Quintana Roo ROO
508 state_mx_qro mx Querétaro QUE
509 state_mx_sin mx Sinaloa SIN
510 state_mx_slp mx San Luis Potosí SLP