@ -0,0 +1,51 @@ |
|||
.. image:: https://img.shields.io/badge/license-LGPL--3-green.svg |
|||
:target: https://www.gnu.org/licenses/lgpl-3.0-standalone.html |
|||
:alt: License: LGPL-3 |
|||
|
|||
Pet Shop Management |
|||
=================== |
|||
Pet shop management module is used to mange the pets , their selling |
|||
sitting and their sitting can be scheduled with the sitting employees, |
|||
and can be see the pets sitting schedule and pet information through |
|||
the website also. |
|||
|
|||
Configuration |
|||
============= |
|||
* No additional configurations needed |
|||
|
|||
Company |
|||
------- |
|||
* `Cybrosys Techno Solutions <https://cybrosys.com/>`__ |
|||
|
|||
Credits |
|||
------- |
|||
Developers: (V16) Gayathri V, |
|||
(V15) Ayana KP, |
|||
Contact: odoo@cybrosys.com |
|||
|
|||
Contacts |
|||
-------- |
|||
* Mail Contact : odoo@cybrosys.com |
|||
* Website : https://cybrosys.com |
|||
|
|||
Bug Tracker |
|||
----------- |
|||
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. |
|||
|
|||
Maintainer |
|||
========== |
|||
.. image:: https://cybrosys.com/images/logo.png |
|||
:target: https://cybrosys.com |
|||
|
|||
This module is maintained by Cybrosys Technologies. |
|||
|
|||
License |
|||
------- |
|||
General Public License, Version 3 (LGPL v3). |
|||
(http://www.gnu.org/licenses/lgpl-3.0-standalone.html) |
|||
|
|||
For support and more information, please visit `Our Website <https://cybrosys.com/>`__ |
|||
|
|||
Further information |
|||
=================== |
|||
HTML Description: `<static/description/index.html>`__ |
@ -0,0 +1,25 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import controllers |
|||
from . import models |
|||
from . import reports |
|||
from . import wizards |
@ -0,0 +1,61 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
{ |
|||
'name': 'Pet Shop Management', |
|||
'version': '15.0.1.0.0', |
|||
'category': 'Sales', |
|||
'summary': 'Pet shop management module is used mange the pet selling and sitting', |
|||
'description': """Pet shop management module is used to mange the pets , |
|||
their selling sitting and their sitting can be scheduled with the sitting |
|||
employees, and can be see the pets sitting schedule and pet information through |
|||
the website also.""", |
|||
'author': 'Cybrosys Techno Solutions', |
|||
'company': 'Cybrosys Techno Solutions', |
|||
'maintainer': 'Cybrosys Techno Solutions', |
|||
'website': 'https://www.cybrosys.com', |
|||
'depends': ['sale_management', 'hr', 'stock', 'website'], |
|||
'data': [ |
|||
'security/pet_shop_management_groups.xml', |
|||
'security/hr_employee_security.xml', |
|||
'security/product_product_security.xml', |
|||
'security/ir.model.access.csv', |
|||
'data/ir_sequence_data.xml', |
|||
'views/sitting_schedule_views.xml', |
|||
'views/pet_type_views.xml', |
|||
'views/product_product_views.xml', |
|||
'views/working_time_views.xml', |
|||
'views/pets_portal_templates.xml', |
|||
'views/pet_sittings_templates.xml', |
|||
'views/sale_order_views.xml', |
|||
'views/hr_employee_views.xml', |
|||
'views/res_partner_views.xml', |
|||
'views/pet_shop_management_menu.xml', |
|||
'reports/pet_information_template.xml', |
|||
'reports/pet_shop_management_report.xml', |
|||
'wizards/pet_setting_schedule_views.xml', |
|||
], |
|||
'images': ['static/description/banner.jpg'], |
|||
'license': 'LGPL-3', |
|||
'installable': True, |
|||
'auto_install': False, |
|||
'application': True, |
|||
} |
@ -0,0 +1,23 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import pet_shop_management |
|||
from . import portal |
@ -0,0 +1,111 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################### |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################### |
|||
from odoo import http, _ |
|||
from odoo.exceptions import AccessError, MissingError |
|||
from odoo.http import request |
|||
from odoo.addons.portal.controllers.portal import CustomerPortal |
|||
from odoo.addons.portal.controllers.portal import pager as portal_pager, \ |
|||
get_records_pager |
|||
|
|||
|
|||
class PortalPets(CustomerPortal): |
|||
"""Getting portal values""" |
|||
|
|||
def _prepare_home_portal_values(self, counters): |
|||
values = super()._prepare_home_portal_values(counters) |
|||
if 'pets_count' in counters: |
|||
pets_count = request.env['product.product'].sudo().search_count( |
|||
self._get_pets_domain()) \ |
|||
if request.env['product.product'].check_access_rights('read', |
|||
raise_exception=False) else 0 |
|||
values['pets_count'] = pets_count |
|||
return values |
|||
|
|||
def _pets_get_page_view_values(self, pets, access_token, **kwargs): |
|||
"""Page view values""" |
|||
values = { |
|||
'page_name': 'Pets Information', |
|||
'pets': pets, |
|||
} |
|||
return self._get_page_view_values(pets, access_token, values, |
|||
'my_pets_history', False, **kwargs) |
|||
|
|||
def _get_pets_domain(self): |
|||
"""Retrieving records based on the domain""" |
|||
return [('is_pet', '=', True), |
|||
('responsible_id', '=', request.env.user.id)] |
|||
|
|||
@http.route(['/my/pets', '/my/pets/page/<int:page>'], type='http', |
|||
auth="user", website=True) |
|||
def portal_my_pets(self, page=1, date_begin=None, date_end=None, |
|||
sortby=None): |
|||
"""This is used to view the pets""" |
|||
values = self._prepare_portal_layout_values() |
|||
pet = request.env['product.product'] |
|||
domain = self._get_pets_domain() |
|||
searchbar_sortings = { |
|||
'date': {'label': _('Date'), 'pets': 'number desc'}, |
|||
} |
|||
if not sortby: |
|||
sortby = 'date' |
|||
pets_count = pet.search_count(domain) |
|||
pager = portal_pager( |
|||
url="/my/pets", |
|||
url_args={'date_begin': date_begin, 'date_end': date_end, |
|||
'sortby': sortby}, |
|||
total=pets_count, |
|||
page=page, |
|||
step=self._items_per_page |
|||
) |
|||
pets = pet.search(domain, limit=self._items_per_page, |
|||
offset=pager['offset']) |
|||
request.session['my_pets_history'] = pets.ids[:100] |
|||
values.update({ |
|||
'date': date_begin, |
|||
'pets': pets, |
|||
'page_name': 'pets', |
|||
'pager': pager, |
|||
'default_url': '/my/pets', |
|||
'searchbar_sortings': searchbar_sortings, |
|||
'sortby': sortby, |
|||
}) |
|||
return request.render("pet_shop_management.portal_my_pets", values) |
|||
|
|||
@http.route(['/my/pets/<int:pets_id>'], type='http', auth="public", |
|||
website=True) |
|||
def portal_my_pets_detail(self, pets_id, access_token=None, |
|||
report_type=None, download=False, **kw): |
|||
"""Detail information of the pets""" |
|||
try: |
|||
pets_sudo = self._document_check_access('product.product', pets_id, |
|||
access_token) |
|||
except (AccessError, MissingError): |
|||
return request.redirect('/my') |
|||
if report_type in ('html', 'pdf', 'text'): |
|||
return self._show_report(model=pets_sudo, |
|||
report_type=report_type, |
|||
report_ref='pet_shop_management' |
|||
'.view_product_product_form', |
|||
download=download) |
|||
values = self._pets_get_page_view_values(pets_sudo, access_token, |
|||
**kw) |
|||
return request.render("pet_shop_management.portal_pets_page", values) |
@ -0,0 +1,94 @@ |
|||
"""Pet sittings""" |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from datetime import date |
|||
from odoo import http, _ |
|||
from odoo.http import request |
|||
from odoo.addons.portal.controllers.portal import CustomerPortal |
|||
from odoo.addons.portal.controllers.portal import pager as portal_pager, \ |
|||
get_records_pager |
|||
|
|||
|
|||
class PortalSittingsSchedules(CustomerPortal): |
|||
"""This class is used to gets the sitting portal values""" |
|||
|
|||
def _prepare_home_portal_values(self, counters): |
|||
"""Preparing portal values for sittings""" |
|||
values = super()._prepare_home_portal_values(counters) |
|||
if 'sittings_count' in counters: |
|||
sittings_count = request.env[ |
|||
'sitting.schedule'].sudo().search_count( |
|||
self._get_sittings_domain()) \ |
|||
if request.env['sitting.schedule'].check_access_rights('read', |
|||
raise_exception=False) else 0 |
|||
values['sittings_count'] = sittings_count |
|||
return values |
|||
|
|||
def _sittings_get_page_view_values(self, sittings, access_token, **kwargs): |
|||
"""This is used to view the sittings page""" |
|||
values = { |
|||
'page_name': 'sittings', |
|||
'sittings': sittings, |
|||
} |
|||
return self._get_page_view_values(sittings, access_token, values, |
|||
'my_sittings_history', False, |
|||
**kwargs) |
|||
|
|||
def _get_sittings_domain(self): |
|||
"""Function for domain condition""" |
|||
return [('end_date', '<=', date.today())] |
|||
|
|||
@http.route(['/my/sittings', '/my/sittings/page/<int:page>'], type='http', |
|||
auth="user", website=True) |
|||
def portal_my_sittings(self, page=1, date_begin=None, date_end=None, |
|||
sortby=None): |
|||
"""This is used to shown the sittings values""" |
|||
values = self._prepare_portal_layout_values() |
|||
sitting = request.env['sitting.schedule'] |
|||
domain = self._get_sittings_domain() |
|||
searchbar_sortings = { |
|||
'date': {'label': _('Date'), 'sittings': 'number desc'}, |
|||
} |
|||
if not sortby: |
|||
sortby = 'date' |
|||
sittings_count = sitting.search_count(domain) |
|||
pager = portal_pager( |
|||
url="/my/sitting", |
|||
url_args={'date_begin': date_begin, 'date_end': date_end, |
|||
'sortby': sortby}, |
|||
total=sittings_count, |
|||
page=page, |
|||
step=self._items_per_page |
|||
) |
|||
sittings = sitting.search(domain, limit=self._items_per_page, |
|||
offset=pager['offset']) |
|||
request.session['my_sittings_history'] = sittings.ids[:100] |
|||
values.update({ |
|||
'date': date_begin, |
|||
'sittings': sittings, |
|||
'page_name': 'sittings', |
|||
'pager': pager, |
|||
'default_url': '/my/sittings', |
|||
'searchbar_sortings': searchbar_sortings, |
|||
'sortby': sortby, |
|||
}) |
|||
return request.render("pet_shop_management.portal_my_sittings", values) |
@ -0,0 +1,14 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<data noupdate="1"> |
|||
<!--This is used to create the sequence for pet shop--> |
|||
<record id="pet_shop_pet_seq" model="ir.sequence"> |
|||
<field name="name">Pet Sequence</field> |
|||
<field name="code">pet.sequence</field> |
|||
<field name="prefix">PS/PT/</field> |
|||
<field name="padding">3</field> |
|||
<field name="number_next">1</field> |
|||
<field name="number_increment">1</field> |
|||
</record> |
|||
</data> |
|||
</odoo> |
@ -0,0 +1,5 @@ |
|||
## Module <pet_shop_management> |
|||
#### 06.05.2024 |
|||
#### Version 15.0.1.0.0 |
|||
##### ADD |
|||
- Initial commit for Pet Shop Management |
@ -0,0 +1,28 @@ |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import hr_employee |
|||
from . import pet_type |
|||
from . import pet_vaccines |
|||
from . import product_product |
|||
from . import sale_order |
|||
from . import sitting_schedule |
|||
from . import working_time |
@ -0,0 +1,32 @@ |
|||
"""Veterinarian""" |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import fields, models |
|||
|
|||
|
|||
class HrEmployee(models.Model): |
|||
"""Inheriting employee to identifies the walker /veterinarian""" |
|||
_inherit = 'hr.employee' |
|||
is_veterinarian = fields.Boolean(string='Is Veterinarian', |
|||
help='Identifies it is a veterinarian') |
|||
is_walker_sitters = fields.Boolean(string='Walker', |
|||
help='Identifies it is a walker') |
@ -0,0 +1,31 @@ |
|||
"""Pet type""" |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import fields, models |
|||
|
|||
|
|||
class PetType(models.Model): |
|||
"""This is used to identifies the type of pet""" |
|||
_name = 'pet.type' |
|||
_description = "Pet Type" |
|||
|
|||
name = fields.Char(string='Name', help="Pet type") |
@ -0,0 +1,42 @@ |
|||
"""Pets""" |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import fields, models |
|||
|
|||
|
|||
class PetVaccines(models.Model): |
|||
"""This is used to identify the vaccines""" |
|||
_name = 'pet.vaccines' |
|||
_rec_name = 'vaccine_name' |
|||
_description = "Pet Vaccines" |
|||
|
|||
pet_vaccine_id = fields.Many2one('product.product', |
|||
string='Vaccine', |
|||
help='Vaccine product id') |
|||
vaccine_name = fields.Char(string='Vaccine Name', |
|||
help='Name of the vaccine') |
|||
date = fields.Date(string='Date', help='Date') |
|||
date_exp = fields.Date(string='Date Expired', help='Date expired') |
|||
veterinarian_id = fields.Many2one('hr.employee', |
|||
string='Veterinarian', |
|||
help='Veterinarian of the pet', |
|||
domain="[('is_veterinarian', '=', True)]") |
@ -0,0 +1,144 @@ |
|||
"""Pets""" |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from datetime import timedelta, date |
|||
from odoo import api, fields, models, _ |
|||
from odoo.exceptions import UserError |
|||
|
|||
|
|||
class Product(models.Model): |
|||
"""Inheriting pets as product""" |
|||
_inherit = 'product.product' |
|||
|
|||
is_pet = fields.Boolean(string='Is Pet', |
|||
help='This is used to identify the pet') |
|||
image_1920 = fields.Image(string="Image", help='This is the image of pet', |
|||
compute='_compute_image_1920', |
|||
inverse='_set_image_1920') |
|||
age = fields.Float(compute='_compute_age', string='Age', |
|||
help='Age of the pet') |
|||
sex = fields.Selection([ |
|||
('male', 'Male'), |
|||
('female', 'Female'), |
|||
('other', 'Other') |
|||
], string='Sex', help='Sex of the pet') |
|||
dob = fields.Date(string='Date Of Birth', help='Date of birth of pet') |
|||
pet_type_id = fields.Many2one('pet.type', string='Pet Type', |
|||
help='Type of the pet') |
|||
color = fields.Char(string='Color', help='Color of the pet') |
|||
stay = fields.Char(string='Stay', help='Stay of the pet') |
|||
pet_seq = fields.Char(string='Pet No.', required=True, |
|||
copy=False, |
|||
readonly=True, |
|||
index=True, |
|||
default=lambda self: 'New') |
|||
photo_one = fields.Binary(string='Image', help='Additional photo of pet') |
|||
photo_two = fields.Binary(string='Image', help='Additional photo of pet') |
|||
photo_three = fields.Binary(string='Image', help='Additional photo of pet') |
|||
notes = fields.Text(string='Note', help="Additional notes") |
|||
veterinarian_id = fields.Many2one('hr.employee', |
|||
domain="[('is_veterinarian', '=', True)]", |
|||
string='Veterinarian', |
|||
help='Veterinarian of the pet') |
|||
is_contact = fields.Boolean(string='Contact if your pet has any hesitation', |
|||
help='To know the pets hesitation') |
|||
is_allergy = fields.Boolean( |
|||
string='Has your pet ever had any allergic reaction to a medicine?', |
|||
help='To know pets allergic reaction') |
|||
is_reaction = fields.Boolean( |
|||
string='Has your pet ever had a reaction to a vaccine?', |
|||
help='To know the reaction to the vaccine.') |
|||
previous_reactions = fields.Text( |
|||
string='Has Your pet had any previous medical or surgical problems?', |
|||
help='To know the pets surgical problems') |
|||
pet_place = fields.Char(string='Where did your pet come from', |
|||
default='Pet Store', |
|||
help='Where did your pet come from') |
|||
pet_food = fields.Char(string='what do you feed your pet', |
|||
help='What do you feed your pet') |
|||
is_pet_service = fields.Boolean(string='Is pet Service', |
|||
help="pet as service") |
|||
pet_vaccines_ids = fields.One2many('pet.vaccines', |
|||
'pet_vaccine_id', |
|||
string='Pet Vaccines', |
|||
help='Pet vaccines') |
|||
vaccine = fields.Binary(string='Image', help='To upload the vaccine info') |
|||
customer_id = fields.Many2one('res.partner', string='Customer', |
|||
help='Customer of thr pet', |
|||
domain="[('type', '!=', 'private')]") |
|||
responsible_id = fields.Many2one('res.users', string='Scheduler User', |
|||
default=lambda self: self.env.user, |
|||
required=True, |
|||
help='Responsible for the pet') |
|||
partner_id = fields.Many2one('res.partner', string='Partner', |
|||
required=True) |
|||
is_sale_order = fields.Boolean(string='Sale Order', default=False) |
|||
month = fields.Integer(string='Month', help='If the pet is below one year', |
|||
compute="_compute_age") |
|||
|
|||
@api.depends('dob') |
|||
def _compute_age(self): |
|||
"""Computes pets age according to their dob""" |
|||
for rec in self: |
|||
if rec.dob: |
|||
rec.age = (date.today() - rec.dob) // timedelta(days=365.2425) |
|||
rec.month = (date.today() - rec.dob) // timedelta(days=30) |
|||
else: |
|||
rec.age = False |
|||
rec.month = False |
|||
|
|||
def create_sale_order(self): |
|||
"""Creating sale order if there is exist""" |
|||
onhand = self.env['stock.quant'].search([ |
|||
('product_id', '=', self.id)]) |
|||
if len(onhand) != 0: |
|||
sale = self.env['sale.order'].create({ |
|||
'partner_id': self.partner_id.id, |
|||
}) |
|||
sale.order_line = [(5, 0, 0)] |
|||
vals = { |
|||
'order_id': sale.id, |
|||
'product_id': self.id, |
|||
'product_template_id': self.product_tmpl_id.id, |
|||
'name': self.product_tmpl_id.name, |
|||
} |
|||
sale.order_line = [(0, 0, vals)] |
|||
else: |
|||
raise UserError( |
|||
_("There is no pets to sell(Available quantity is Zero)")) |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'target': 'current', |
|||
'name': _('Create Sale'), |
|||
'res_id': sale.id, |
|||
'view_mode': 'form', |
|||
'res_model': 'sale.order', |
|||
} |
|||
|
|||
@api.model |
|||
def create(self, vals): |
|||
"""To create the sequence""" |
|||
if vals.get('pet_seq', 'New') == 'New': |
|||
vals['pet_seq'] = self.env['ir.sequence'].next_by_code( |
|||
'pet.sequence') or 'New' |
|||
result = super().create(vals) |
|||
return result |
@ -0,0 +1,64 @@ |
|||
"""Pet sittings""" |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import fields, models, _ |
|||
|
|||
|
|||
class SaleOrder(models.Model): |
|||
"""Pet sittings""" |
|||
_inherit = 'sale.order' |
|||
|
|||
pet_sittings = fields.Boolean(default=False, string="Pet Sittings", |
|||
help="Identifying is pet sitting.") |
|||
|
|||
def pet_sitting(self): |
|||
"""Sitting Schedule wizards""" |
|||
self.pet_sittings = True |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'target': 'new', |
|||
'name': _('Pet Sitting Schedule'), |
|||
'view_mode': 'form', |
|||
'res_model': 'pet.sitting.schedule', |
|||
'context': {'default_model_id': self.id, |
|||
'default_schedule_description': self.name} |
|||
} |
|||
|
|||
def action_return_meetings(self): |
|||
"""Return the meetings view""" |
|||
return { |
|||
'type': 'ir.actions.act_window', |
|||
'target': 'current', |
|||
'name': _('Meetings'), |
|||
'view_mode': 'calendar', |
|||
'res_model': 'sitting.schedule' |
|||
} |
|||
|
|||
|
|||
class SaleOrderLine(models.Model): |
|||
"""Inheriting sale order line to add a new field""" |
|||
_inherit = 'sale.order.line' |
|||
|
|||
walker_sitting = fields.Many2one('hr.employee', |
|||
domain="[('is_walker_sitters', '=', True)]", |
|||
string='Walker/Sitting', |
|||
help='Pets walker') |
@ -0,0 +1,50 @@ |
|||
"""Pet sitting schedule""" |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import fields, models |
|||
|
|||
|
|||
class SittingSchedule(models.Model): |
|||
"""Sitting Schedule wizards""" |
|||
_name = 'sitting.schedule' |
|||
_description = 'Sitting Schedule' |
|||
|
|||
name = fields.Char(string='Name', help="Name") |
|||
number_id = fields.Many2one('sale.order', string='Number', |
|||
help='Sale order reference') |
|||
date_start = fields.Date(string='Start Date', |
|||
help='Start date of sitting schedule') |
|||
end_date = fields.Date(string='End Date', |
|||
help='End date of sitting schedule') |
|||
attendees_ids = fields.Many2many('hr.employee', |
|||
domain="[('is_walker_sitters', '=', True)]", |
|||
string='Attendees', |
|||
help="The attendees of the sitting " |
|||
"schedule") |
|||
duration = fields.Datetime(sting='Duration', |
|||
help='Duration of the schedule') |
|||
pet_info_ids = fields.One2many('pet.info', |
|||
'info_pet_id', string='Pet info', |
|||
help='Information regarding the pets') |
|||
service_ids = fields.One2many('pet.service', |
|||
'service_pet_id', |
|||
string='Service', help='Service information') |
@ -0,0 +1,57 @@ |
|||
"""Working shifts""" |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import fields, models |
|||
|
|||
|
|||
class WorkTime(models.Model): |
|||
"""This is used assign the working time for employee""" |
|||
_name = 'working.time' |
|||
_description = "working time" |
|||
|
|||
working_time = fields.Float(string='Working Time', |
|||
help='Working time of employee') |
|||
company_id = fields.Many2one('res.company', string='Company', |
|||
help='Company') |
|||
name = fields.Char(string='Name', help='Name of shift') |
|||
avg_working_hours = fields.Char(string='Average Working Hours', |
|||
help='Average working hours') |
|||
working_hours = fields.One2many('working.hours', |
|||
'working_id', |
|||
string='Working hours', |
|||
help='working hours') |
|||
|
|||
|
|||
class WorkingHours(models.Model): |
|||
"""Assigns the working hours""" |
|||
_name = 'working.hours' |
|||
_description = "working hours" |
|||
|
|||
name = fields.Many2one('hr.employee', |
|||
domain="[('is_walker_sitters', '=', True)]", |
|||
string='Name', help='Name of the employee') |
|||
working_id = fields.Many2one('working.time', string='Working time', |
|||
help='Working time of the employee') |
|||
day = fields.Char(string='Day of Week', help='Day of the week') |
|||
start_date = fields.Date(string='Start Date', |
|||
help='Start date of the shift') |
|||
end_date = fields.Date(string='End Date', help='Start date of the shift') |
@ -0,0 +1,23 @@ |
|||
"""Report pet Information""" |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP(<https://www.cybrosys.com>) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from . import pet_shop_management_report |
@ -0,0 +1,206 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- Template for pet information report --> |
|||
<template id="report_pet_information"> |
|||
<t t-call="web.html_container"> |
|||
<t t-call="web.external_layout"> |
|||
<div class="page"> |
|||
<div class="oe_structure"/> |
|||
<div class="text-center"> |
|||
<h2> |
|||
<t t-esc="docs.name"/> |
|||
<t t-esc="docs.pet_seq"/> |
|||
</h2> |
|||
</div> |
|||
<div class="text-right"> |
|||
<span t-field="docs.image_1920" |
|||
t-options='{"widget": "image"}'/> |
|||
</div> |
|||
<table class="table table-sm"> |
|||
<tr> |
|||
<td>Birth Date</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.dob"> |
|||
<t t-esc="docs.dob"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td>Age</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.age"> |
|||
<t t-esc="docs.age"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td>Customer</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.customer_id"> |
|||
<t t-esc="docs.customer_id.name"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td>Sex</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.sex"> |
|||
<t t-esc="docs.sex"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td>Pet Type</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.pet_type_id"> |
|||
<t t-esc="docs.pet_type_id.name"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td>Stay</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.stay"> |
|||
<t t-esc="docs.stay"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
<div class="text-center"> |
|||
<h2> |
|||
Medical History |
|||
</h2> |
|||
</div> |
|||
<table class="table table-sm"> |
|||
<tr> |
|||
<td>Has your pet ever had any allergic reaction to a |
|||
medicine? |
|||
</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.is_allergy"> |
|||
<t t-esc="docs.is_allergy"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td>Has your pet ever had a reaction to a vaccine? |
|||
</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.is_reaction"> |
|||
<t t-esc="docs.is_reaction"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td>Has Your pet had any previous medical or |
|||
surgical problems? |
|||
</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.previous_reactions"> |
|||
<t t-esc="docs.previous_reactions"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td>Contact if your pet has any hesitation</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.is_contact"> |
|||
<t t-esc="docs.contact"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
<div class="text-center"> |
|||
<h2> |
|||
Pet Vaccines |
|||
</h2> |
|||
</div> |
|||
<table class="table table-sm"> |
|||
<thead> |
|||
<tr> |
|||
Description |
|||
</tr> |
|||
<tr> |
|||
Date |
|||
</tr> |
|||
<tr> |
|||
Expiration Date |
|||
</tr> |
|||
<tr> |
|||
Veterinarian |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<tr foreach="docs.pet_vaccines_ids" t-as="pet"> |
|||
<td> |
|||
<t t-if="pet.vaccine_name"> |
|||
<t t-esc="pet.vaccine_name"/> |
|||
</t> |
|||
</td> |
|||
<td> |
|||
<t t-if="pet.date"> |
|||
<t t-esc="pet.date"/> |
|||
</t> |
|||
</td> |
|||
<td> |
|||
<t t-if="pet.date_exp"> |
|||
<t t-esc="pet.date_exp"/> |
|||
</t> |
|||
</td> |
|||
<td> |
|||
<t t-if="pet.veterinarian_id"> |
|||
<t t-esc="pet.veterinarian_id"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
<div class="text-center"> |
|||
<h2> |
|||
Other Information |
|||
</h2> |
|||
</div> |
|||
<table class="table table-sm"> |
|||
<tr> |
|||
<td>Veterinarian</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.veterinarian_id"> |
|||
<t t-esc="docs.veterinarian_id.name"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td>Where did your pet come from?</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.pet_place"> |
|||
<t t-esc="docs.pet_place"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td>What do you feed your pet?</td> |
|||
<td>:</td> |
|||
<td> |
|||
<t t-if="docs.pet_food"> |
|||
<t t-esc="docs.pet_food"/> |
|||
</t> |
|||
</td> |
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</t> |
|||
</t> |
|||
</template> |
|||
</odoo> |
@ -0,0 +1,38 @@ |
|||
"""Pets""" |
|||
# -*- coding: utf-8 -*- |
|||
############################################################################# |
|||
# |
|||
# Cybrosys Technologies Pvt. Ltd. |
|||
# |
|||
# Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) |
|||
# Author: Ayana KP (odoo@cybrosys.com) |
|||
# |
|||
# You can modify it under the terms of the GNU LESSER |
|||
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3. |
|||
# |
|||
# This program is distributed in the hope that it will be useful, |
|||
# but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
# GNU LESSER GENERAL PUBLIC LICENSE (LGPL v3) for more details. |
|||
# |
|||
# You should have received a copy of the GNU LESSER GENERAL PUBLIC LICENSE |
|||
# (LGPL v3) along with this program. |
|||
# If not, see <http://www.gnu.org/licenses/>. |
|||
# |
|||
############################################################################# |
|||
from odoo import models |
|||
|
|||
|
|||
class PetInformationReports(models.AbstractModel): |
|||
"""This Class is used for the report""" |
|||
_name = 'report.pet_shop_management.report_pet_information' |
|||
|
|||
def _get_report_values(self, docids, data=None): |
|||
"""Returns the document data to report""" |
|||
docs = self.env['product.product'].browse(docids) |
|||
return { |
|||
'doc_ids': docids, |
|||
'doc_model': 'product.product', |
|||
'docs': docs, |
|||
'data': data, |
|||
} |
@ -0,0 +1,14 @@ |
|||
<?xml version="1.0"?> |
|||
<odoo> |
|||
<!-- Action for report--> |
|||
<record id="action_pet_report" model="ir.actions.report"> |
|||
<field name="name">Pet Information Report Main Action</field> |
|||
<field name="model">product.product</field> |
|||
<field name="report_type">qweb-pdf</field> |
|||
<field name="report_name">pet_shop_management.report_pet_information</field> |
|||
<field name="report_file">pet_shop_management.report_pet_information</field> |
|||
<field name="print_report_name">'Pet Information - %s' % (object.name)</field> |
|||
<field name="binding_model_id" ref="model_product_product"/> |
|||
<field name="binding_type">report</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,11 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- Access rights For company of employee model--> |
|||
<record id="hr_employee_rule_company" model="ir.rule"> |
|||
<field name="name">PetShop: multi-company</field> |
|||
<field name="model_id" ref="model_hr_employee"/> |
|||
<field name="domain_force"> |
|||
['|',('company_id','=',False),('company_id', 'in', company_ids)] |
|||
</field> |
|||
</record> |
|||
</odoo> |
|
@ -0,0 +1,24 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!--This is used for User security--> |
|||
<record model="ir.module.category" id="module_pet_shop_management"> |
|||
<field name="name">Pet User</field> |
|||
<field name="description">User Can Manage Pet Information</field> |
|||
</record> |
|||
<record id="pet_shop_management_group_pet_user" model="res.groups"> |
|||
<field name="name">Pet User</field> |
|||
<field name="category_id" ref="module_pet_shop_management"/> |
|||
</record> |
|||
<record id="pet_shop_management_group_pet_manager" model="res.groups"> |
|||
<field name="name">Pet Manager</field> |
|||
<field name="category_id" ref="module_pet_shop_management"/> |
|||
<field name="implied_ids" |
|||
eval="[(4, ref('pet_shop_management_group_pet_user'))]"/> |
|||
</record> |
|||
<record id="pet_shop_management_group_pet_sale_manager" model="res.groups"> |
|||
<field name="name">Pet Sales Manager</field> |
|||
<field name="category_id" ref="module_pet_shop_management"/> |
|||
<field name="implied_ids" |
|||
eval="[(4, ref('pet_shop_management_group_pet_manager'))]"/> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,11 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- Access rights For company of pet model--> |
|||
<record id="product_rule_company" model="ir.rule"> |
|||
<field name="name">PetShop: multi-company</field> |
|||
<field name="model_id" ref="model_product_product"/> |
|||
<field name="domain_force"> |
|||
['|',('company_id','=',False),('company_id', 'in', company_ids)] |
|||
</field> |
|||
</record> |
|||
</odoo> |
After Width: | Height: | Size: 3.6 KiB |
After Width: | Height: | Size: 310 B |
After Width: | Height: | Size: 1.3 KiB |
After Width: | Height: | Size: 1.4 KiB |
After Width: | Height: | Size: 576 B |
After Width: | Height: | Size: 733 B |
After Width: | Height: | Size: 911 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 673 B |
After Width: | Height: | Size: 878 B |
After Width: | Height: | Size: 653 B |
After Width: | Height: | Size: 905 B |
After Width: | Height: | Size: 839 B |
After Width: | Height: | Size: 427 B |
After Width: | Height: | Size: 627 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 988 B |
After Width: | Height: | Size: 1.2 KiB |
After Width: | Height: | Size: 1.5 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.9 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 2.1 KiB |
After Width: | Height: | Size: 4.4 KiB |
After Width: | Height: | Size: 589 B |
After Width: | Height: | Size: 3.4 KiB |
After Width: | Height: | Size: 1.7 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 967 B |
After Width: | Height: | Size: 1.6 KiB |
After Width: | Height: | Size: 3.8 KiB |
After Width: | Height: | Size: 5.0 KiB |
After Width: | Height: | Size: 79 KiB |
After Width: | Height: | Size: 15 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 18 KiB |
After Width: | Height: | Size: 88 KiB |
After Width: | Height: | Size: 82 KiB |
After Width: | Height: | Size: 38 KiB |
After Width: | Height: | Size: 49 KiB |
After Width: | Height: | Size: 29 KiB |
After Width: | Height: | Size: 84 KiB |
After Width: | Height: | Size: 52 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 42 KiB |
After Width: | Height: | Size: 126 KiB |
After Width: | Height: | Size: 63 KiB |
After Width: | Height: | Size: 91 KiB |
After Width: | Height: | Size: 31 KiB |
After Width: | Height: | Size: 502 KiB |
After Width: | Height: | Size: 68 KiB |
After Width: | Height: | Size: 110 KiB |
After Width: | Height: | Size: 58 KiB |
After Width: | Height: | Size: 92 KiB |
After Width: | Height: | Size: 487 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 8.9 KiB |
After Width: | Height: | Size: 33 KiB |
After Width: | Height: | Size: 50 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.9 KiB |
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 2.7 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 2.4 KiB |
After Width: | Height: | Size: 5.2 KiB |
After Width: | Height: | Size: 1.4 KiB |
@ -0,0 +1,722 @@ |
|||
<div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;"> |
|||
<!-- TITLE BAR --> |
|||
<div class="d-flex align-items-center justify-content-between" |
|||
style="border-bottom: 1px solid #875A7B; padding: 15px; display: flex; justify-content: space-between; align-items: center;"> |
|||
<img src="assets/misc/cybrosys-logo.png" width="42" height="42" |
|||
style="width: 42px; height: 42px;"/> |
|||
<div> |
|||
<div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
|||
class="mr-2"> |
|||
<i class="fa fa-check mr-1"></i>Community |
|||
</div><div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
|||
class="mr-2"> |
|||
<i class="fa fa-check mr-1"></i>Enterprise |
|||
</div><div style="color: #7C7BAD; font-size: 14px; font-family: 'Montserrat', sans-serif; font-weight: bold; background-color: white; display: inline-block; padding: 3px 10px; border-radius: 50px;" |
|||
class="mr-2"> |
|||
<i class="fa fa-check mr-1"></i>Odoo.sh |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- END OF TITLE BAR --> |
|||
<!-- APP HERO --> |
|||
<div class="container"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 col-md-12 col-lg-12"> |
|||
<h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;"> |
|||
Pet Shop Management</h1> |
|||
<p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;"> |
|||
This Module Helps To Manage A Pet Shop Management.</p> |
|||
<!-- END OF APP HERO --> |
|||
<img src="assets/screenshots/hero.gif" |
|||
style="width: 75%; height: auto; position: absolute; margin-left: auto; margin-right: auto; top: 45%; left: 12%; right: auto;"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- NAVIGATION SECTION --> |
|||
<div class="d-flex align-items-center" |
|||
style="border-bottom: 2px solid #714B67; padding: 15px 0px; margin-top: 300px;"> |
|||
<div class="d-flex justify-content-center align-items-center mr-2" |
|||
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
|||
<img src="./assets/misc/compass.png"/> |
|||
</div> |
|||
<h2 class="mt-2" |
|||
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
|||
Explore This |
|||
Module</h2> |
|||
</div> |
|||
<div class="row my-4" style="font-family: 'Montserrat', sans-serif;"> |
|||
<div class="col-sm-12 col-md-6 my-3"> |
|||
<a href="#overview"> |
|||
<div class="d-flex justify-content-between align-items-center" |
|||
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
|||
<div> |
|||
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Overview</span> |
|||
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">Learn |
|||
more about this |
|||
module</span> |
|||
</div> |
|||
<img src="./assets/misc/right-arrow.png" width="36" |
|||
height="36"/> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-sm-12 col-md-6 my-3"> |
|||
<a href="#features"> |
|||
<div class="d-flex justify-content-between align-items-center" |
|||
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
|||
<div> |
|||
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Features</span> |
|||
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View features of this module</span> |
|||
</div> |
|||
<img src="./assets/misc/right-arrow.png" width="36" |
|||
height="36"/> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-sm-12 col-md-6 my-3"> |
|||
<a href="#screenshots"> |
|||
<div class="d-flex justify-content-between align-items-center" |
|||
style="background-color: #f5f5f5; padding: 30px; width: 100%;"> |
|||
<div> |
|||
<span style="color: #714B67; font-size: 24px; font-weight: 500; display: block;">Screenshots</span> |
|||
<span style="color: #714B67; font-size: 16px; font-weight: 400; color:#282F33; display: block;">View screenshots for this module</span> |
|||
</div> |
|||
<img src="./assets/misc/right-arrow.png" width="36" |
|||
height="36"/> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<!-- END OF NAVIGATION SECTION --> |
|||
|
|||
<!-- OVERVIEW SECTION --> |
|||
<div class="d-flex align-items-center" |
|||
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="overview"> |
|||
<div class="d-flex justify-content-center align-items-center mr-2" |
|||
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
|||
<img src="./assets/misc/pie-chart.png"/> |
|||
</div> |
|||
<h2 class="mt-2" |
|||
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
|||
Overview |
|||
</h2> |
|||
</div> |
|||
<div class="row" |
|||
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> |
|||
<div class="col-sm-12 py-4"> |
|||
Pet shop management module is used to manage the pets , their selling |
|||
sitting and their sitting can be scheduled with the sitting employees, |
|||
and can be seen the pets sitting schedule and pet information through |
|||
the website also. |
|||
</div> |
|||
</div> |
|||
<!-- END OF OVERVIEW SECTION --> |
|||
|
|||
<!-- FEATURES SECTION --> |
|||
<div class="d-flex align-items-center" |
|||
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" id="features"> |
|||
<div class="d-flex justify-content-center align-items-center mr-2" |
|||
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
|||
<img src="./assets/misc/features.png"/> |
|||
</div> |
|||
<h2 class="mt-2" |
|||
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
|||
Features |
|||
</h2> |
|||
</div> |
|||
<div class="row" |
|||
style="font-family: 'Montserrat', sans-serif; font-weight: 400; font-size: 14px; line-height: 200%;"> |
|||
<div class="col-sm-12 col-md-6"> |
|||
<div class="d-flex flex-column justify-content-center align-items-start" |
|||
style="margin-top: 40px; margin-bottom: 40px"> |
|||
<img src="./assets/misc/check-box.png" class="mr-2"/> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> |
|||
Manage pets .</span> |
|||
</div> |
|||
<div class="d-flex flex-column justify-content-center align-items-start" |
|||
style="margin-top: 30px; margin-bottom: 30px"> |
|||
<img src="./assets/misc/check-box.png" class="mr-2"/> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Manage pets sittings/walking.</span> |
|||
</div> |
|||
<div class="d-flex flex-column justify-content-center align-items-start" |
|||
style="margin-top: 30px; margin-bottom: 30px"> |
|||
<img src="./assets/misc/check-box.png" class="mr-2"/> |
|||
<span style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;">Manage pets selling in a shop.</span> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- END OF FEATURES SECTION --> |
|||
|
|||
<!-- SCREENSHOTS SECTION --> |
|||
<div class="d-flex align-items-center" |
|||
style="border-bottom: 2px solid #714B67; padding: 15px 0px;" |
|||
id="screenshots"> |
|||
<div class="d-flex justify-content-center align-items-center mr-2" |
|||
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
|||
<img src="./assets/misc/pictures.png"/> |
|||
</div> |
|||
<h2 class="mt-2" |
|||
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
|||
Screenshots |
|||
</h2> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-sm-12"> |
|||
|
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-2" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Pets Information(User Can create).</h4> |
|||
<img src="./assets/screenshots/1.png" class="img-thumbnail"> |
|||
</div> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Form view to Show Detail of Pet(Pet User can modify).</h4> |
|||
|
|||
<img src="./assets/screenshots/2.png" class="img-thumbnail"> |
|||
</div> |
|||
|
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Form view to Show Detail of Pet - Vaccine History (Pet User can |
|||
add) and also Other info. </h4> |
|||
<img src="./assets/screenshots/3.png" class="img-thumbnail"> |
|||
</div> |
|||
|
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Pet Sittings and Schedules (Only see after the |
|||
scheduling). </h4> |
|||
<img src="./assets/screenshots/4.png" class="img-thumbnail"> |
|||
</div> |
|||
|
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Your Customer List (Pet Manager can see , create and |
|||
modify). </h4> |
|||
<img src="./assets/screenshots/5.png" class="img-thumbnail"> |
|||
</div> |
|||
|
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Veterinarians of Pet (Pet Manager can see, create and |
|||
modify).</h4> |
|||
<img src="./assets/screenshots/6.png" class="img-thumbnail"> |
|||
</div> |
|||
|
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Checked "Is Veterinarian?" and "Is Walker?" For assign as |
|||
Veterinarian Or assign walker (Pet Manager can create and |
|||
modify).</h4> |
|||
|
|||
<img src="./assets/screenshots/7.png" class="img-thumbnail"> |
|||
</div> |
|||
|
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
For assign as the pet service it is required to checked "Is Pet |
|||
Service" (Sales Manager can create and modify it).</h4> |
|||
|
|||
<img src="./assets/screenshots/9.png" class="img-thumbnail"> |
|||
</div> |
|||
|
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Working Times (Only Pets Manger can Create and modify it).</h4> |
|||
|
|||
<img src="./assets/screenshots/10.png" class="img-thumbnail"> |
|||
</div> |
|||
|
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Pet Types (Pet Manager can create and modify it).</h4> |
|||
<img src="./assets/screenshots/11.png" class="img-thumbnail"> |
|||
</div> |
|||
|
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Create Booking Quotation For Pet Service (Sales Sale Manager can create and modify it).</h4> |
|||
<img src="./assets/screenshots/12.png" class="img-thumbnail"> |
|||
</div> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Create Pet Sitting Schedule Wizard on Sales Order (Sales Manager can create and modify it).</h4> |
|||
<img src="./assets/screenshots/13.png" class="img-thumbnail"> |
|||
</div> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Created Pet Sitting Schedule (Sales Manager can create and modify it).</h4> |
|||
<img src="./assets/screenshots/14.png" class="img-thumbnail"> |
|||
</div> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Open Pets Information By Clicking on " Pets" (Responsible person can see it).</h4> |
|||
<img src="./assets/screenshots/15.png" class="img-thumbnail"> |
|||
</div> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Lists Of pets.</h4> |
|||
<img src="./assets/screenshots/16.png" class="img-thumbnail"> |
|||
</div> |
|||
<div style="display: block; margin: 30px auto;"> |
|||
<h4 class="mt-3" |
|||
style="font-family: 'Roboto', sans-serif !important; font-weight: 600 !important; color: #282F33 !important; font-size: 1.3rem !important;"> |
|||
Show Detail Information about Pet.</h4> |
|||
<img src="./assets/screenshots/17.png" class="img-thumbnail"> |
|||
</div> |
|||
|
|||
</div> |
|||
</div> |
|||
<!-- END OF SCREENSHOTS SECTION --> |
|||
|
|||
<!-- RELATED PRODUCTS --> |
|||
<div class="d-flex align-items-center" |
|||
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
|||
<div class="d-flex justify-content-center align-items-center mr-2" |
|||
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
|||
<img src="./assets/misc/categories.png"/> |
|||
</div> |
|||
<h2 class="mt-2" |
|||
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
|||
Related |
|||
Products |
|||
</h2> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-sm-12"> |
|||
<div id="demo1" class="row carousel slide" data-ride="carousel"> |
|||
<!-- The slideshow --> |
|||
<div class="carousel-inner" style="padding: 30px;"> |
|||
<div class="carousel-item" style="min-height: 198.656px;"> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
|||
style="float:left"> |
|||
<a href="https://apps.odoo.com/apps/modules/16.0/crm_dashboard/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="./assets/modules/1.png"> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
|||
style="float:left"> |
|||
<a href="https://apps.odoo.com/apps/modules/16.0/subscription_package/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="./assets/modules/4.png"></div> |
|||
</a> |
|||
</div> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
|||
style="float:left"> |
|||
<a href="https://apps.odoo.com/apps/modules/16.0/sale_report_advanced/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="./assets/modules/2.png"> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
<div class="carousel-item active" |
|||
style="min-height: 198.656px;"> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
|||
style="float:left"> |
|||
<a href="https://apps.odoo.com/apps/modules/16.0/product_brand_sale/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="./assets/modules/3.png"> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
|||
style="float:left"> |
|||
<a href="https://apps.odoo.com/apps/modules/16.0/barcode_scanning_sale_purchase/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="./assets/modules/5.png"> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
<div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" |
|||
style="float:left"> |
|||
<a href="https://apps.odoo.com/apps/modules/16.0/sale_discount_total/" |
|||
target="_blank"> |
|||
<div style="border-radius:10px"> |
|||
<img class="img img-responsive center-block" |
|||
style="border-radius: 0px;" |
|||
src="./assets/modules/6.png"> |
|||
</div> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- Left and right controls --> |
|||
<a class="carousel-control-prev" href="#demo1" data-slide="prev" |
|||
style="width:35px; color:#000"> <span |
|||
class="carousel-control-prev-icon"><i |
|||
class="fa fa-chevron-left" |
|||
style="font-size:24px"></i></span> |
|||
</a> <a class="carousel-control-next" href="#demo1" |
|||
data-slide="next" style="width:35px; color:#000"> |
|||
<span class="carousel-control-next-icon"><i |
|||
class="fa fa-chevron-right" |
|||
style="font-size:24px"></i></span> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- END OF RELATED PRODUCTS --> |
|||
|
|||
<!-- OUR SERVICES --> |
|||
|
|||
<div class="d-flex align-items-center" |
|||
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
|||
<div class="d-flex justify-content-center align-items-center mr-2" |
|||
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
|||
<img src="./assets/misc/star.png"/> |
|||
</div> |
|||
<h2 class="mt-2" |
|||
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
|||
Our Services |
|||
</h2> |
|||
</div> |
|||
|
|||
<div class="container my-5"> |
|||
<div class="row"> |
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #1dd1a1 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="./assets/icons/cogs.png" class="img-responsive" |
|||
height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|||
Odoo |
|||
Customization</h6> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #ff6b6b !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="./assets/icons/wrench.png" class="img-responsive" |
|||
height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|||
Odoo |
|||
Implementation</h6> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #6462CD !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="./assets/icons/lifebuoy.png" class="img-responsive" |
|||
height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|||
Odoo |
|||
Support</h6> |
|||
</div> |
|||
|
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #ffa801 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="./assets/icons/user.png" class="img-responsive" |
|||
height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|||
Hire |
|||
Odoo |
|||
Developer</h6> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #54a0ff !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="./assets/icons/puzzle.png" class="img-responsive" |
|||
height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|||
Odoo |
|||
Integration</h6> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #6d7680 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="./assets/icons/update.png" class="img-responsive" |
|||
height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|||
Odoo |
|||
Migration</h6> |
|||
</div> |
|||
|
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #786fa6 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="./assets/icons/consultation.png" |
|||
class="img-responsive" height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|||
Odoo |
|||
Consultancy</h6> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #f8a5c2 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="./assets/icons/training.png" class="img-responsive" |
|||
height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|||
Odoo |
|||
Implementation</h6> |
|||
</div> |
|||
|
|||
<div class="col-lg-4 d-flex flex-column justify-content-center align-items-center my-4"> |
|||
<div class="d-flex justify-content-center align-items-center mx-3 my-3" |
|||
style="background-color: #e6be26 !important; border-radius: 15px !important; height: 80px; width: 80px;"> |
|||
<img src="./assets/icons/license.png" class="img-responsive" |
|||
height="48px" width="48px"> |
|||
</div> |
|||
<h6 class="text-center" |
|||
style="font-family: Montserrat, 'sans-serif' !important; font-weight: bold;"> |
|||
Odoo |
|||
Licensing Consultancy</h6> |
|||
</div> |
|||
</div> |
|||
|
|||
</div> |
|||
|
|||
<!-- END OF OUR SERVICES --> |
|||
|
|||
<!-- OUR INDUSTRIES --> |
|||
|
|||
<div class="d-flex align-items-center" |
|||
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
|||
<div class="d-flex justify-content-center align-items-center mr-2" |
|||
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
|||
<img src="./assets/misc/corporate.png"/> |
|||
</div> |
|||
<h2 class="mt-2" |
|||
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
|||
Our |
|||
Industries |
|||
</h2> |
|||
</div> |
|||
|
|||
<div class="container my-5"> |
|||
<div class="row"> |
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/trading-black.png" |
|||
class="img-responsive mb-3" height="48px" width="48px"> |
|||
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
Trading |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
Easily procure |
|||
and |
|||
sell your products</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/pos-black.png" |
|||
class="img-responsive mb-3" height="48px" width="48px"> |
|||
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
POS |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
Easy |
|||
configuration |
|||
and convivial experience</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/education-black.png" |
|||
class="img-responsive mb-3" height="48px" width="48px"> |
|||
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
Education |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
A platform for |
|||
educational management</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/manufacturing-black.png" |
|||
class="img-responsive mb-3" height="48px" |
|||
width="48px"> |
|||
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
Manufacturing |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
Plan, track and |
|||
schedule your operations</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/ecom-black.png" |
|||
class="img-responsive mb-3" height="48px" width="48px"> |
|||
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
E-commerce & Website |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
Mobile |
|||
friendly, |
|||
awe-inspiring product pages</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/service-black.png" |
|||
class="img-responsive mb-3" height="48px" width="48px"> |
|||
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
Service Management |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
Keep track of |
|||
services and invoice</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/restaurant-black.png" |
|||
class="img-responsive mb-3" height="48px" width="48px"> |
|||
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
Restaurant |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
Run your bar or |
|||
restaurant methodically</p> |
|||
</div> |
|||
</div> |
|||
|
|||
<div class="col-lg-3"> |
|||
<div class="my-4 d-flex flex-column justify-content-center" |
|||
style="background-color: #f6f8f9 !important; border-radius: 0px; padding: 2rem !important; height: 250px !important;"> |
|||
<img src="./assets/icons/hotel-black.png" |
|||
class="img-responsive mb-3" height="48px" width="48px"> |
|||
<h5 style="font-family: Montserrat, sans-serif !important; color: #000 !important; font-weight: bold;"> |
|||
Hotel Management |
|||
</h5> |
|||
<p style="font-family: Montserrat, sans-serif !important; font-size: 0.9rem !important;"> |
|||
An |
|||
all-inclusive |
|||
hotel management application</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
|
|||
<!-- END OF OUR INDUSTRIES --> |
|||
|
|||
<!-- SUPPORT --> |
|||
<div class="d-flex align-items-center" |
|||
style="border-bottom: 2px solid #714B67; padding: 15px 0px;"> |
|||
<div class="d-flex justify-content-center align-items-center mr-2" |
|||
style="background-color: #F5F5F5; border-radius: 0px; width: 40px; height: 40px;"> |
|||
<img src="./assets/misc/customer-support.png"/> |
|||
</div> |
|||
<h2 class="mt-2" |
|||
style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> |
|||
Support |
|||
</h2> |
|||
</div> |
|||
<div class="container mt-5"> |
|||
<div class="row"> |
|||
<div class="col-sm-12 col-md-6"> |
|||
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> |
|||
<div class="mr-4" |
|||
style="background-color: #714B67; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> |
|||
<img src="./assets/misc/support.png" height="48" width="48" |
|||
style="width: 42px; height: 42px;"/> |
|||
</div> |
|||
<div> |
|||
<h4>Need Help?</h4> |
|||
<p style="line-height: 100%;">Got questions or need help? |
|||
Get in touch.</p> |
|||
<a href="mailto:odoo@cybrosys.com"> |
|||
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> |
|||
odoo@cybrosys.com</p> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="col-sm-12 col-md-6"> |
|||
<div style="background-color: #F6F8F9; padding: 30px; display: flex; align-items: center;"> |
|||
<div class="mr-4" |
|||
style="background-color: #2AC44D; display: inline-block; height: 70px; width: 70px; display: flex; align-items: center; justify-content: center;"> |
|||
<img src="./assets/misc/whatsapp.png" height="52" width="52" |
|||
style="width: 52px; height: 52px;"/> |
|||
</div> |
|||
<div> |
|||
<h4>WhatsApp</h4> |
|||
<p style="line-height: 100%;">Say hi to us on WhatsApp!</p> |
|||
<a href="https://api.whatsapp.com/send?phone=918606827707"> |
|||
<p style="font-weight: 400; font-size: 28px; line-height: 80%; color: #714B67;"> |
|||
+91 86068 |
|||
27707</p> |
|||
</a> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<div class="row"> |
|||
<div class="col-sm-12 my-5 d-flex justify-content-center align-items-center"> |
|||
<img src="./assets/misc/logo.png" width="144" height="31" |
|||
style="width:144px; height: 31px; margin-top: 40px;"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
<!-- END OF SUPPORT --> |
@ -0,0 +1,54 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- View for veterinarian --> |
|||
<record id="hr_employee_action" model="ir.actions.act_window"> |
|||
<field name="name">Veterinarian Main Action</field> |
|||
<field name="res_model">hr.employee</field> |
|||
<field name="view_mode">kanban,tree,form,activity</field> |
|||
<field name="domain">[('is_veterinarian', '=', True)]</field> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
Add a new employee |
|||
</p> |
|||
<p> |
|||
With just a quick glance on the Odoo employee screen, you |
|||
can easily find all the information you need for each person; |
|||
contact data, job position, availability, etc. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
<!-- View for pet walker --> |
|||
<record id="action_walker_sitters" model="ir.actions.act_window"> |
|||
<field name="name">Walker/Sitters Main Action</field> |
|||
<field name="res_model">hr.employee</field> |
|||
<field name="view_mode">kanban,tree,form,activity</field> |
|||
<field name="domain">[('is_walker_sitters', '=', True)]</field> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
Add a new employee |
|||
</p> |
|||
<p> |
|||
With just a quick glance on the Odoo employee screen, you |
|||
can easily find all the information you need for each person; |
|||
contact data, job position, availability, etc. |
|||
</p> |
|||
</field> |
|||
</record> |
|||
<!-- Inheriting employee to add new fields--> |
|||
<record id="view_employee_form" model="ir.ui.view"> |
|||
<field name="name">hr.employee.view.form.inherit.pet.shop.management |
|||
</field> |
|||
<field name="model">hr.employee</field> |
|||
<field name="inherit_id" ref="hr.view_employee_form"/> |
|||
<field name="arch" type="xml"> |
|||
<xpath expr="//field[@name='department_id']" position="after"> |
|||
<group> |
|||
<field name="is_veterinarian" |
|||
groups="pet_shop_management.pet_shop_management_group_pet_manager"/> |
|||
<field name="is_walker_sitters" |
|||
groups="pet_shop_management.pet_shop_management_group_pet_manager"/> |
|||
</group> |
|||
</xpath> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,86 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- Menus for the module--> |
|||
<menuitem id="pet_shop_management" |
|||
web_icon="pet_shop_management,static/description/icon.png" |
|||
name="Pet Shop Management"/> |
|||
<menuitem id="menu_pet_shop_management" |
|||
name="Pets" |
|||
parent="pet_shop_management" |
|||
sequence="1"/> |
|||
<menuitem id="pet_shop" |
|||
name="Pets" |
|||
parent="menu_pet_shop_management" |
|||
action="product_product_action" |
|||
sequence="1"> |
|||
</menuitem> |
|||
<menuitem id="menu_pet_shop_customer" |
|||
name="Customer" |
|||
parent="pet_shop_management" |
|||
sequence="2"/> |
|||
<menuitem id="customer_on_shop" |
|||
name="Customers" |
|||
parent="menu_pet_shop_customer" |
|||
action="res_partner_action" |
|||
sequence="1"> |
|||
</menuitem> |
|||
<menuitem id="menu_pet_shop_doctor" |
|||
name="Veterinarian" |
|||
groups="pet_shop_management.pet_shop_management_group_pet_manager" |
|||
parent="pet_shop_management" |
|||
sequence="3"/> |
|||
<menuitem id="veterinarian_on_shop" |
|||
name="Veterinarian" |
|||
parent="menu_pet_shop_doctor" |
|||
action="hr_employee_action" |
|||
sequence="1"> |
|||
</menuitem> |
|||
<menuitem id="menu_pet_shop_walker" |
|||
name="Walker/Sitters" |
|||
parent="pet_shop_management" |
|||
sequence="4"/> |
|||
<menuitem id="walker_on_shop" |
|||
name="Walker/Sitters" |
|||
parent="menu_pet_shop_walker" |
|||
action="action_walker_sitters" |
|||
sequence="1"> |
|||
</menuitem> |
|||
<menuitem id="menu_pet_shop_service" |
|||
name="Services" |
|||
parent="pet_shop_management" |
|||
groups="pet_shop_management.pet_shop_management_group_pet_sale_manager" |
|||
sequence="5"/> |
|||
<menuitem id="services_on_shop" |
|||
name="Services" |
|||
parent="menu_pet_shop_service" |
|||
action="product_product_action" |
|||
groups="pet_shop_management.pet_shop_management_group_pet_sale_manager" |
|||
sequence="1"> |
|||
</menuitem> |
|||
<menuitem id="menu_pet_shop_config" |
|||
name="Configuration" |
|||
parent="pet_shop_management" |
|||
groups="pet_shop_management.pet_shop_management_group_pet_manager" |
|||
sequence="6"/> |
|||
<menuitem id="config_on_shop" |
|||
name="Working Time" |
|||
parent="menu_pet_shop_config" |
|||
action="working_time_action" |
|||
groups="pet_shop_management.pet_shop_management_group_pet_manager" |
|||
sequence="1"> |
|||
</menuitem> |
|||
<menuitem id="config_on_shop_schedule" |
|||
name="Sitting Schedule" |
|||
parent="menu_pet_shop_config" |
|||
action="sitting_schedule_action" |
|||
groups="pet_shop_management.pet_shop_management_group_pet_manager" |
|||
sequence="3"> |
|||
</menuitem> |
|||
<menuitem id="pet_type_on_shop" |
|||
name="Pet Type" |
|||
parent="menu_pet_shop_config" |
|||
action="pet_type_action" |
|||
groups="pet_shop_management.pet_shop_management_group_pet_sale_manager" |
|||
sequence="2"> |
|||
</menuitem> |
|||
</odoo> |
@ -0,0 +1,77 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!--Template for pet sittings--> |
|||
<template id="portal_my_home_menu_sittings" |
|||
name="Portal layout : sittings menu entries" |
|||
inherit_id="portal.portal_breadcrumbs" priority="20"> |
|||
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside"> |
|||
<li t-if="page_name == 'sittings'" |
|||
t-attf-class="breadcrumb-item #{'active ' if not sittings else ''}"> |
|||
<a t-if="product_product" |
|||
t-attf-href="/my/sittings?{{ keep_query() }}">Pet Sittings |
|||
and Schedules |
|||
</a> |
|||
<t t-else="">Pet sittings And Schedules</t> |
|||
</li> |
|||
</xpath> |
|||
</template> |
|||
<template id="portal_my_home_sale_sittings" name="Sittings" |
|||
customize_show="True" inherit_id="portal.portal_my_home" |
|||
priority="20"> |
|||
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside"> |
|||
<t t-call="portal.portal_docs_entry"> |
|||
<t t-set="title">Pet sittings And Schedules</t> |
|||
<t t-set="url" t-value="'/my/sittings'"/> |
|||
<t t-set="placeholder_count" t-value="'sittings_count'"/> |
|||
</t> |
|||
</xpath> |
|||
</template> |
|||
<template id="portal_my_sittings" name="My Schedules"> |
|||
<t t-call="portal.portal_layout"> |
|||
<t t-set="breadcrumbs_searchbar" t-value="True"/> |
|||
<t t-call="portal.portal_searchbar"> |
|||
<t t-set="title">Pet Sittings</t> |
|||
</t> |
|||
<t t-if="not sittings"> |
|||
<p>There are currently no sittings.</p> |
|||
</t> |
|||
<t t-if="sittings" t-call="portal.portal_table"> |
|||
<thead> |
|||
<tr class="active"> |
|||
<th>Meeting #</th> |
|||
<th>Pets</th> |
|||
<th class='d-none d-md-table-cell'>Service</th> |
|||
<th>Starting At</th> |
|||
<th>Duration</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="sittings" t-as="sit"> |
|||
<t t-foreach="sit.pet_info_ids" t-as="p"> |
|||
<t t-foreach="sit.service_ids" t-as="s"> |
|||
<tr> |
|||
<td> |
|||
<span t-field="sit.number_id.name"/> |
|||
</td> |
|||
<td> |
|||
<span t-field="p.pet_num"/> |
|||
</td> |
|||
|
|||
<td class="tx_status"> |
|||
<span t-esc='s.name.name'/> |
|||
</td> |
|||
<td class="tx_status"> |
|||
<span t-esc='sit.date_start'/> |
|||
</td> |
|||
<td class="tx_status"> |
|||
<span t-esc='sit.duration'/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</t> |
|||
</t> |
|||
</tbody> |
|||
</t> |
|||
</t> |
|||
</template> |
|||
</odoo> |
@ -0,0 +1,23 @@ |
|||
<?xml version="1.0" encoding="UTF-8" ?> |
|||
<odoo> |
|||
<!-- Pet type view--> |
|||
<record id="pet_type_action" model="ir.actions.act_window"> |
|||
<field name="name">Pet Type Main Action</field> |
|||
<field name="res_model">pet.type</field> |
|||
<field name="view_mode">tree,form</field> |
|||
<field name="help" type="html"> |
|||
<p class="o_view_nocontent_smiling_face"> |
|||
Generate Pet Type |
|||
</p> |
|||
</field> |
|||
</record> |
|||
<record id="pet_type_view_tree" model="ir.ui.view"> |
|||
<field name="name">Pet Type</field> |
|||
<field name="model">pet.type</field> |
|||
<field name="arch" type="xml"> |
|||
<tree> |
|||
<field name="name"/> |
|||
</tree> |
|||
</field> |
|||
</record> |
|||
</odoo> |
@ -0,0 +1,232 @@ |
|||
<?xml version="1.0" encoding="utf-8"?> |
|||
<odoo> |
|||
<!--Template for portal view for pet information--> |
|||
<template id="portal_my_home_menu_pets" |
|||
name="Portal layout : Pets menu entries" |
|||
inherit_id="portal.portal_breadcrumbs" priority="25"> |
|||
<xpath expr="//ol[hasclass('o_portal_submenu')]" position="inside"> |
|||
<li t-if="page_name == 'pets'" |
|||
t-attf-class="breadcrumb-item #{'active ' if not pets else ''}"> |
|||
<a t-if="hr_payslip" |
|||
t-attf-href="/my/pets?{{ keep_query() }}">Pets |
|||
</a> |
|||
<t t-else="">Pets</t> |
|||
</li> |
|||
</xpath> |
|||
</template> |
|||
<template id="portal_my_home_sale_pets" name="Pets" |
|||
customize_show="True" inherit_id="portal.portal_my_home" |
|||
priority="25"> |
|||
<xpath expr="//div[hasclass('o_portal_docs')]" position="inside"> |
|||
<t t-call="portal.portal_docs_entry"> |
|||
<t t-set="title">Pets</t> |
|||
<t t-set="url" t-value="'/my/pets'"/> |
|||
<t t-set="placeholder_count" t-value="'pets_count'"/> |
|||
</t> |
|||
</xpath> |
|||
</template> |
|||
<template id="portal_my_pets" name="My Pets"> |
|||
<t t-call="portal.portal_layout"> |
|||
<t t-set="breadcrumbs_searchbar" t-value="True"/> |
|||
<t t-call="portal.portal_searchbar"> |
|||
<t t-set="title">My Pets</t> |
|||
</t> |
|||
<t t-if="not pets"> |
|||
<p>There is no information regarding this pet is |
|||
available. |
|||
</p> |
|||
</t> |
|||
<t t-if="pets" t-call="portal.portal_table"> |
|||
<thead> |
|||
<tr class="active"> |
|||
<th>Number #</th> |
|||
<th>Name</th> |
|||
<th class='d-none d-md-table-cell'>Responsible</th> |
|||
<th>Pet Type</th> |
|||
<th>Birth date</th> |
|||
<th>Age</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<t t-foreach="pets" t-as="pet"> |
|||
<tr> |
|||
<td> |
|||
<a t-attf-href="/my/pets/#{pet.id}?{{ keep_query() }}" |
|||
t-att-title="pet.pet_seq"> |
|||
<t t-esc="pet.pet_seq"/> |
|||
</a> |
|||
</td> |
|||
<td> |
|||
<span t-field="pet.name"/> |
|||
</td> |
|||
<td class='d-none d-md-table-cell'> |
|||
<span t-field="pet.responsible_id"/> |
|||
</td> |
|||
<td class="tx_status"> |
|||
<span t-esc='pet.pet_type_id.name'/> |
|||
</td> |
|||
<td class="tx_status"> |
|||
<span t-esc='pet.dob'/> |
|||
</td> |
|||
<td class="tx_status"> |
|||
<span t-esc='pet.age'/> |
|||
</td> |
|||
</tr> |
|||
</t> |
|||
</tbody> |
|||
</t> |
|||
</t> |
|||
</template> |
|||
<template id="portal_pets_page" name="Pets Portal Template" |
|||
inherit_id="portal.portal_sidebar" primary="True"> |
|||
<xpath expr="//div[hasclass('o_portal_sidebar')]" position="inside"> |
|||
<t t-set="o_portal_fullwidth_alert" |
|||
groups="sales_team.group_sale_salesman"> |
|||
<t t-call="portal.portal_back_in_edit_mode"> |
|||
<t t-set="url" t-value="'/my/pets/#'"/> |
|||
</t> |
|||
</t> |
|||
<div class="row mt16 o_portal_sale_sidebar"> |
|||
<div id="pets_content" |
|||
class="col-12 col-lg justify-content-end"> |
|||
<div t-attf-class="card #{'pb-5' if report_type == 'pdf' else ''}" |
|||
id="portal_sale_content"> |
|||
<div t-call="pet_shop_management.pets_portal_content"/> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</xpath> |
|||
</template> |
|||
<template id="pets_portal_content" name="Payslip Portal Content"> |
|||
<div id="introduction" |
|||
t-attf-class="pb-2 pt-3 #{'card-header bg-white' if report_type == 'pdf' else ''}"> |
|||
<h2 class="my-0" style="margin-left: 840px;"> |
|||
<t t-esc="pets.name"/> |
|||
</h2> |
|||
</div> |
|||
<div style="padding-left: 25px;"> |
|||
<div id="informations"> |
|||
<div class="row"> |
|||
<div class="mb-2 col-3"> |
|||
<div> |
|||
<span> |
|||
<b>Number:</b> |
|||
</span> |
|||
<t t-esc="pets.pet_seq"/> |
|||
<span> |
|||
<b>Number:</b> |
|||
</span> |
|||
<t t-esc="pets.pet_seq"/> |
|||
<br/> |
|||
<span> |
|||
<b>Name:</b> |
|||
</span> |
|||
<t t-esc="pets.name"/> |
|||
<br/> |
|||
<span> |
|||
<b>Birth:</b> |
|||
</span> |
|||
<t t-esc="pets.dob"/> |
|||
<br/> |
|||
<span> |
|||
<b>Age:</b> |
|||
</span> |
|||
<t t-esc="pets.age"/> |
|||
<br/> |
|||
<span> |
|||
<b>Type:</b> |
|||
</span> |
|||
<t t-esc="pets.pet_type_id.name"/> |
|||
<br/> |
|||
<span> |
|||
<b>Color:</b> |
|||
</span> |
|||
<t t-esc="pets.color"/> |
|||
<br/> |
|||
<span> |
|||
<b>Type:</b> |
|||
</span> |
|||
<t t-esc="pets.stay"/> |
|||
</div> |
|||
</div> |
|||
<div style="margin-left: 813px;margin-top: -181px;width: 215px;"> |
|||
<span t-field="pets.image_1920" |
|||
t-options='{"widget": "image"}'/> |
|||
</div> |
|||
</div> |
|||
<br/> |
|||
<br/> |
|||
<div> |
|||
<h2>Medical History</h2> |
|||
<span>Has your pet ever had an allergic reaction to |
|||
medicine? |
|||
</span> |
|||
<br/> |
|||
<span>Has your pet ever had an allergic reaction to |
|||
vaccine? |
|||
</span> |
|||
<br/> |
|||
<span>Has your pet had any previous medical or surgical |
|||
problems? |
|||
</span> |
|||
<br/> |
|||
</div> |
|||
<br/> |
|||
<br/> |
|||
<div> |
|||
<h2>Pet Vaccines</h2> |
|||
<table class="table table-sm"> |
|||
<thead> |
|||
<tr> |
|||
<th> |
|||
Description |
|||
</th> |
|||
<th>Date</th> |
|||
<th>Expiration Date</th> |
|||
<th>Veterinarian</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
<tr> |
|||
<td> |
|||
<t t-esc="pets.pet_vaccines_ids.vaccine_name"/> |
|||
</td> |
|||
<td> |
|||
<t t-esc="pets.pet_vaccines_ids.date"/> |
|||
</td> |
|||
<td> |
|||
<t t-esc="pets.pet_vaccines_ids.date_exp"/> |
|||
</td> |
|||
<t t-if="pets.pet_vaccines_ids.veterinarian_id"> |
|||
<td> |
|||
<t t-esc="pets.pet_vaccines_ids.veterinarian_id.name"/> |
|||
</td> |
|||
</t> |
|||
<t t-else=""> |
|||
<td/> |
|||
</t> |
|||
</tr> |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
<br/> |
|||
<br/> |
|||
<div> |
|||
<h2>Other Information</h2> |
|||
<t t-esc="pets.notes"/> |
|||
<br/> |
|||
<span>Contact if your pet has any hesitation</span> |
|||
<br/> |
|||
<span>Where did your pet come from?</span> |
|||
<br/> |
|||
<span>what do you feed your pet?</span> |
|||
<t t-esc="pets.pet_food"/> |
|||
<br/> |
|||
</div> |
|||
<p class="text-right"> |
|||
<strong>Authorized signature</strong> |
|||
</p> |
|||
</div> |
|||
</div> |
|||
</template> |
|||
</odoo> |