Skip to content

Commit 77c8166

Browse files
[IMP] *: convert backend .webp to .jpeg.
To reduce the load times of industries, webp images that are not being used in website are being converted to jpeg to allow for image compression.
1 parent b95a298 commit 77c8166

File tree

657 files changed

+128
-128
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

657 files changed

+128
-128
lines changed
-1.67 KB
Binary file not shown.
-2.34 KB
Binary file not shown.
-22.7 KB
Binary file not shown.
-1.07 KB
Binary file not shown.
830 Bytes
Binary file not shown.
-2.01 KB
Binary file not shown.
-20.4 KB
Binary file not shown.
-20.4 KB
Binary file not shown.

bakery/data/product_product.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
<field name="invoice_policy">order</field>
2828
</record>
2929
<record id="product_product_56" model="product.product">
30-
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/56-image_1920.webp"/>
30+
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/56-image_1920.jpg"/>
3131
<field name="name">Baking Powder</field>
3232
<field name="sale_ok" eval="False"/>
3333
<field name="list_price" eval="False"/>
@@ -38,15 +38,15 @@
3838
<field name="standard_price">3.5</field>
3939
</record>
4040
<record id="product_product_39" model="product.product">
41-
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/Bretzel.webp"/>
41+
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/Bretzel.jpg"/>
4242
<field name="name">Bretzel</field>
4343
<field name="purchase_ok" eval="False"/>
4444
<field name="available_in_pos" eval="True"/>
4545
<field name="service_type">manual</field>
4646
<field name="invoice_policy">order</field>
4747
</record>
4848
<record id="product_product_41" model="product.product">
49-
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/35-image_1920.webp"/>
49+
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/35-image_1920.jpg"/>
5050
<field name="name">Butter</field>
5151
<field name="sale_ok" eval="False"/>
5252
<field name="uom_id" ref="uom.product_uom_kgm"/>
@@ -84,7 +84,7 @@
8484
<field name="invoice_policy">order</field>
8585
</record>
8686
<record id="product_product_53" model="product.product">
87-
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/53-image_1920.webp"/>
87+
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/53-image_1920.jpg"/>
8888
<field name="name">Flour</field>
8989
<field name="sale_ok" eval="False"/>
9090
<field name="list_price" eval="False"/>
@@ -114,7 +114,7 @@
114114
<field name="standard_price">2.0</field>
115115
</record>
116116
<record id="product_product_54" model="product.product">
117-
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/54-image_1920.webp"/>
117+
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/54-image_1920.jpg"/>
118118
<field name="name">Sugar</field>
119119
<field name="sale_ok" eval="False"/>
120120
<field name="list_price" eval="False"/>
@@ -131,7 +131,7 @@
131131
<field name="description_sale">Soft dough with a buttery cinnamon filling, topped with cream cheese icing.</field>
132132
<field name="type">consu</field>
133133
<field name="weight">0.01</field>
134-
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/Cinnamon Roll.webp"/>
134+
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/Cinnamon Roll.jpg"/>
135135
<field name="available_in_pos" eval="True"/>
136136
</record>
137137
<record model="product.product" id="product_sourdough_loaf">
@@ -141,7 +141,7 @@
141141
<field name="description_sale">Artisan sourdough bread with a crisp crust and soft interior.</field>
142142
<field name="type">consu</field>
143143
<field name="weight">0.01</field>
144-
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/Sourdough Bread.webp"/>
144+
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/Sourdough Bread.jpg"/>
145145
<field name="available_in_pos" eval="True"/>
146146
</record>
147147
<record model="product.product" id="product_multigrain_bread">
@@ -151,7 +151,7 @@
151151
<field name="description_sale">Hearty multigrain loaf with seeds and grains for extra nutrition.</field>
152152
<field name="type">consu</field>
153153
<field name="weight">0.01</field>
154-
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/Multigrain Bread.webp"/>
154+
<field name="image_1920" type="base64" file="bakery/static/src/binary/product_template/Multigrain Bread.jpg"/>
155155
<field name="available_in_pos" eval="True"/>
156156
</record>
157157
</odoo>

bakery/demo/ir_attachment_post.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@
4646
<field name="public" eval="True"/>
4747
</record>
4848
<record id="ir_attachment_1273" model="ir.attachment">
49-
<field name="name">croissant.webp</field>
50-
<field name="datas" type="base64" file="bakery/static/src/binary/ir_attachment/1273-croissant.webp"/>
49+
<field name="name">croissant.jpg</field>
50+
<field name="datas" type="base64" file="bakery/static/src/binary/ir_attachment/1273-croissant.jpg"/>
5151
<field name="public" eval="True"/>
5252
</record>
5353
<record id="ir_attachment_1269" model="ir.attachment">

0 commit comments

Comments
 (0)