Skip to content

Commit da78eb2

Browse files
dhrs-odoovava-odoo
authored andcommitted
[ADD] fitness: upgrade to 18 + small fix
1 parent 66754b2 commit da78eb2

File tree

11 files changed

+26
-38
lines changed

11 files changed

+26
-38
lines changed

fitness/__manifest__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,6 @@
6666
'demo/website_theme_apply.xml',
6767
'demo/website_page.xml',
6868
'demo/website_menu.xml',
69-
'demo/pos_config.xml',
7069
'demo/payment_provider_demo_post.xml',
7170
],
7271
'license': 'OPL-1',

fitness/data/appointment_type.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<field name="has_payment_step" eval="True"/>
1212
<field name="product_id" ref="default_booking_product"/>
1313
<field name="resource_manage_capacity" eval="True"/>
14-
<field name="user_assign_method">resource_time</field>
14+
<field name="assign_method">resource_time</field>
1515
<field name="slot_ids" eval="[(0, 0, {'weekday': '3', 'start_hour': 8.0, 'end_hour': 9.0})]"/>
1616
</record>
1717
<record id="appointment_type_2" model="appointment.type">
@@ -25,7 +25,7 @@
2525
<field name="has_payment_step" eval="True"/>
2626
<field name="product_id" ref="product_product_6"/>
2727
<field name="resource_manage_capacity" eval="True"/>
28-
<field name="user_assign_method">resource_time</field>
28+
<field name="assign_method">resource_time</field>
2929
<field name="slot_ids" eval="[(0, 0, {'weekday': '2', 'start_hour': 14.0, 'end_hour': 16.0})]"/>
3030
</record>
3131
</odoo>

fitness/data/appointment_view.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<?xml version='1.0' encoding='UTF-8'?>
22
<odoo>
33
<template id="custom_appointment_info_view" inherit_id="appointment.appointment_info">
4-
<xpath expr="//div[@t-if=&quot;appointment_type.category in ['punctual', 'recurring']&quot;]" position="replace">
5-
<div t-if="slots and not based_on_users and appointment_type.resource_manage_capacity and max_capacity" class="mb-4">
4+
<xpath expr="//div[@t-if=&quot;not based_on_users and appointment_type.resource_manage_capacity&quot;]" position="replace">
5+
<div t-if="slots and max_capacity" class="mb-4">
66
<input type="hidden" name="resourceCapacity" value="1"/>
77
</div>
8-
<div t-if="not based_on_users and appointment_type.resource_manage_capacity" class="o_appointment_no_capacity d-flex mt-2 pb-0 text-center"/>
8+
<div class="o_appointment_no_capacity d-flex mt-2 pb-0 text-center"/>
99
</xpath>
1010
</template>
1111
</odoo>

fitness/data/knowledge_article.xml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@
6868
Once confirmed, the quotation becomes a sales order. All quotations and sales orders are centralized in the <strong><font class="text-o-color-1">Sales</font></strong> app.
6969
</p>
7070
<p style="margin-bottom: 0px;"><br /></p>
71-
<p style="margin-bottom: 0px;"><a href="https://www.odoo.com/documentation/master/applications/sales/sales.html" class="btn btn-primary">🎓 Sales</a></p>
71+
<p style="margin-bottom: 0px;"><a href="https://www.odoo.com/documentation/latest/applications/sales/sales.html" class="btn btn-primary">🎓 Sales</a></p>
7272
<p><br /></p>
7373
<div class="o_editor_banner o_not_editable lh-1 d-flex align-items-center alert alert-info pb-0 pt-3" data-oe-protected="true">
7474
<i class="o_editor_banner_icon mb-3 fst-normal">🚀</i>
7575
<div class="w-100 ms-3" data-oe-protected="false">
7676
<p>Manage the prices applied by your subscription on every product using the Pricelists. Assign a specific pricelist to a reccuring product (subscription) and edit your pricelist rule in Sales &gt; Products &gt; Pricelists.</p>
77-
<p><a href="https://www.odoo.com/documentation/17.0/applications/sales/point_of_sale/pricing/pricelists.html" class="btn btn-secondary" target="_blank">🎓 Pricelists</a></p>
77+
<p><a href="https://www.odoo.com/documentation/latest/applications/sales/point_of_sale/pricing/pricelists.html" class="btn btn-secondary" target="_blank">🎓 Pricelists</a></p>
7878
</div>
7979
</div>
8080
@@ -87,7 +87,7 @@
8787
<p>
8888
You can then use the power of the <strong><font class="text-o-color-1">Project App</font></strong> to ensure a great follow up, with automations, feedbacks, stages...
8989
</p>
90-
<p><a class="btn btn-primary" href="https://www.odoo.com/documentation/17.0/applications/services/project.html" target="_blank">🎓 Project</a></p>
90+
<p><a class="btn btn-primary" href="https://www.odoo.com/documentation/latest/applications/services/project.html" target="_blank">🎓 Project</a></p>
9191
<p><br /></p>
9292
<h2>Inventory 📦</h2>
9393
<hr />
@@ -119,7 +119,7 @@
119119
</ul>
120120
</li>
121121
</ul>
122-
<p><a href="https://www.odoo.com/documentation/17.0/applications/inventory_and_mrp/inventory.html" class="btn btn-primary">🎓Inventory</a></p>
122+
<p><a href="https://www.odoo.com/documentation/latest/applications/inventory_and_mrp/inventory.html" class="btn btn-primary">🎓Inventory</a></p>
123123
<p><br /></p>
124124
<h2 style="margin-bottom: 0px;">Point of Sale and eCommerce 📈</h2>
125125
@@ -162,13 +162,13 @@
162162
app. Then, schedule one or several "Invoicing Schedule" activities on the sales order with the aim to never forget to send an intermediary invoice in order to sustain your cash flow
163163
</p>
164164
<p><strong>Thanks</strong> to the invoicing policy that you can modify, the generated invoice is always the reflect of the reality on the field and it is fair for the customer.</p>
165-
<p><a class="btn btn-primary" href="https://www.odoo.com/documentation/master/applications/finance/accounting/customer_invoices.html">🎓 Invoicing</a></p>
165+
<p><a class="btn btn-primary" href="https://www.odoo.com/documentation/latest/applications/finance/accounting/customer_invoices.html">🎓 Invoicing</a></p>
166166
<p><br /></p>
167167
<div data-oe-protected="true" class="o_editor_banner o_not_editable lh-1 d-flex align-items-center alert alert-info pb-0 pt-3">
168168
<i class="o_editor_banner_icon mb-3 fst-normal">🚀</i>
169169
<div data-oe-protected="false" class="w-100 ms-3">
170170
<p>Odoo can also manage your accounting entirely, integrated with every other apps. Check out more about the Accounting App</p>
171-
<p><a class="btn btn-secondary" href="https://www.odoo.com/documentation/17.0/applications/finance/accounting.html">🎓 Accounting</a></p>
171+
<p><a class="btn btn-secondary" href="https://www.odoo.com/documentation/latest/applications/finance/accounting.html">🎓 Accounting</a></p>
172172
</div>
173173
</div>
174174
<p><br /></p>
@@ -211,7 +211,7 @@
211211
<p style="margin-bottom: 0px;"><br /></p>
212212
<p style="margin-bottom: 0px;">Manage in the Planning App the schedule of your teachers, the booking of your rooms and equipments.</p>
213213
<p style="margin-bottom: 0px;"><br /></p>
214-
<p style="margin-bottom: 0px;"><a class="btn btn-primary" href="https://www.odoo.com/documentation/17.0/applications/services/planning.html" target="_blank">🎓Planning</a></p>
214+
<p style="margin-bottom: 0px;"><a class="btn btn-primary" href="https://www.odoo.com/documentation/latest/applications/services/planning.html" target="_blank">🎓Planning</a></p>
215215
<p><br /></p>
216216
<h2>Maintenance of your equipments</h2>
217217
@@ -240,7 +240,7 @@
240240
<div data-oe-protected="false" class="w-100 ms-3">
241241
<p>You completed that industry tour! There are millions of other ways to adapt your Odoo setup to fit your business needs.&nbsp;</p>
242242
<p>
243-
Discover more about Odoo by diving into our&nbsp;<a href="https://www.odoo.com/documentation/17.0/">documentation</a>&nbsp;and&nbsp;<a href="https://www.odoo.com/fr_FR/slides/getting-started-15">academy</a>&nbsp;, and feel free
243+
Discover more about Odoo by diving into our&nbsp;<a href="https://www.odoo.com/documentation/latest/">documentation</a>&nbsp;and&nbsp;<a href="https://www.odoo.com/fr_FR/slides/getting-started-15">academy</a>&nbsp;, and feel free
244244
to&nbsp;<a href="https://www.odoo.com/contactus" target="_blank">request a demo</a>&nbsp;if you need help!<br />
245245
</p>
246246
</div>

fitness/data/pos_config.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,9 @@
33
<record id="pos_config_fitness_center" model="pos.config">
44
<field name="name">Fitness Center</field>
55
<field name="iface_tipproduct" eval="True"/>
6-
<field name="iface_customer_facing_display_local" eval="True"/>
76
<field name="iface_print_auto" eval="True"/>
8-
<field name="iface_customer_facing_display" eval="True"/>
97
<field name="ship_later" eval="True"/>
8+
<field name="customer_display_type">local</field>
109
<field name="limit_categories">True</field>
1110
<field name="down_payment_product_id" ref="pos_sale.default_downpayment_product"/>
1211
</record>

fitness/data/product_product.xml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<field name="image_1920" type="base64" file="fitness/static/src/binary/product_template/10-image_1920"/>
88
<field name="available_in_pos" eval="True"/>
99
<field name="service_type">manual</field>
10-
<field name="detailed_type">product</field>
10+
<field name="is_storable" eval="True"/>
1111
<field name="list_price">11.0</field>
1212
</record>
1313
<record id="product_product_12" model="product.product">
@@ -17,7 +17,7 @@
1717
<field name="image_1920" type="base64" file="fitness/static/src/binary/product_template/12-image_1920"/>
1818
<field name="available_in_pos" eval="True"/>
1919
<field name="service_type">manual</field>
20-
<field name="detailed_type">product</field>
20+
<field name="is_storable" eval="True"/>
2121
<field name="list_price">55.0</field>
2222
</record>
2323
<record id="product_product_13" model="product.product">
@@ -27,13 +27,13 @@
2727
<field name="image_1920" type="base64" file="fitness/static/src/binary/product_template/12-image_1920"/>
2828
<field name="available_in_pos" eval="True"/>
2929
<field name="service_type">manual</field>
30-
<field name="detailed_type">product</field>
30+
<field name="is_storable" eval="True"/>
3131
<field name="list_price">55.0</field>
3232
</record>
3333
<record id="product_product_14" model="product.product">
3434
<field name="name">20-Day Beginner Fitness Program</field>
3535
<field name="categ_id" ref="product.product_category_all"/>
36-
<field name="detailed_type">service</field>
36+
<field name="type">service</field>
3737
<field name="service_tracking">project_only</field>
3838
<field name="service_type">manual</field>
3939
<field name="project_template_id" ref="project_project_1"/>
@@ -48,14 +48,14 @@
4848
<field name="image_1920" type="base64" file="fitness/static/src/binary/product_template/11-image_1920"/>
4949
<field name="available_in_pos" eval="True"/>
5050
<field name="service_type">manual</field>
51-
<field name="detailed_type">product</field>
51+
<field name="is_storable" eval="True"/>
5252
<field name="list_price">2.5</field>
5353
</record>
5454
<record id="product_product_6" model="product.product">
5555
<field name="name">Yoga Course</field>
5656
<field name="categ_id" ref="product_category_9"/>
5757
<field name="service_type">manual</field>
58-
<field name="detailed_type">booking_fees</field>
58+
<field name="type">service</field>
5959
<field name="list_price">15.0</field>
6060
</record>
6161
<record id="product_product_7" model="product.product">
@@ -66,7 +66,7 @@
6666
<field name="product_subscription_pricing_ids" eval="[(6,0,[ref('subscription_pricing_1')])]"/>
6767
<field name="image_1920" type="base64" file="fitness/static/src/binary/product_template/7-image_1920"/>
6868
<field name="service_type">manual</field>
69-
<field name="detailed_type">service</field>
69+
<field name="type">service</field>
7070
<field name="purchase_method">purchase</field>
7171
</record>
7272
<record id="product_product_8" model="product.product">
@@ -77,7 +77,7 @@
7777
<field name="product_subscription_pricing_ids" eval="[(6,0,[ref('subscription_pricing_2')])]"/>
7878
<field name="image_1920" type="base64" file="fitness/static/src/binary/product_template/8-image_1920"/>
7979
<field name="service_type">manual</field>
80-
<field name="detailed_type">service</field>
80+
<field name="type">service</field>
8181
</record>
8282
<record id="product_product_9" model="product.product">
8383
<field name="name">Diamond membership</field>
@@ -87,7 +87,7 @@
8787
<field name="product_subscription_pricing_ids" eval="[(6,0,[ref('subscription_pricing_3')])]"/>
8888
<field name="image_1920" type="base64" file="fitness/static/src/binary/product_template/9-image_1920"/>
8989
<field name="service_type">manual</field>
90-
<field name="detailed_type">service</field>
90+
<field name="type">service</field>
9191
</record>
9292
<record id="default_booking_product" model="product.product">
9393
<field name="name">Hit Course</field>
@@ -96,7 +96,7 @@
9696
<field name="image_1920" type="base64" file="fitness/static/src/binary/product_template/1-image_1920"/>
9797
<field name="service_type">manual</field>
9898
<field name="purchase_ok" eval="False"/>
99-
<field name="detailed_type">booking_fees</field>
99+
<field name="type">service</field>
100100
<field name="list_price">50.0</field>
101101
</record>
102102
</odoo>

fitness/data/res_config_settings.xml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,8 @@
44
<field name="group_product_variant" eval="1"/>
55
<field name="group_discount_per_so_line" eval="1"/>
66
<field name="group_product_pricelist" eval="True"/>
7-
<field name="group_sale_pricelist" eval="True"/>
8-
<field name="product_pricelist_setting" eval="'advanced'"/>
97
<field name="pos_use_pricelist" eval="True"/>
108
</record>
119

12-
<function model="res.config.settings" name="execute" eval="[ref('res_config_settings_enable')]"/>
10+
<function name="execute" model="res.config.settings" eval="[ref('res_config_settings_enable')]"/>
1311
</odoo>

fitness/demo/calendar_event.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
<record id="calendar_event_1" model="calendar.event">
44
<field name="name">Hit Course Appointment</field>
55
<field name="appointment_type_id" ref="appointment_type_1"/>
6-
<field name="categ_ids" eval="[(6, 0, [ref('appointment.calendar_event_type_data_online_appointment')])]"/>
76
<field name="start" model="appointment.type" eval="
87
pytz.timezone(obj().env.ref('fitness.appointment_type_1').appointment_tz).localize(
98
DateTime.today().date() + relativedelta(weekday=0, hour=9)

fitness/demo/hr_employee.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version='1.0' encoding='UTF-8'?>
2-
<odoo>
2+
<odoo noupdate="1">
33
<record id="hr_employee_2" model="hr.employee">
44
<field name="name">Jhon Jhon</field>
55
<field name="address_id" ref="base.main_partner"/>

fitness/demo/pos_config.xml

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)