| @ -0,0 +1,47 @@ | |||||
|  | .. image:: https://img.shields.io/badge/license-AGPL--3-blue.svg | ||||
|  |     :target: https://www.gnu.org/licenses/agpl-3.0-standalone.html | ||||
|  |     :alt: License: AGPL-3 | ||||
|  | 
 | ||||
|  | Event Catering | ||||
|  | ============== | ||||
|  | Event Catering attaches catering service to Event Management module thus extending the scope of the Event Management Module. | ||||
|  | When you install this module, a new service 'Catering' will be available in event management. | ||||
|  | 
 | ||||
|  | Configuration | ||||
|  | ============= | ||||
|  | No configuration | ||||
|  | 
 | ||||
|  | Company | ||||
|  | ------- | ||||
|  | * `Cybrosys Techno Solutions <https://cybrosys.com/>`__ | ||||
|  | 
 | ||||
|  | License | ||||
|  | ------- | ||||
|  | General Public License, Version 3 (AGPL v3). | ||||
|  | (https://www.gnu.org/licenses/agpl-3.0-standalone.html) | ||||
|  | 
 | ||||
|  | Credits | ||||
|  | ------- | ||||
|  | Developer: (V14) Mruthul Raj ,Contact: odoo@cybrosys.com | ||||
|  | 
 | ||||
|  | Contacts | ||||
|  | -------- | ||||
|  | * Mail Contact : odoo@cybrosys.com | ||||
|  | * Website : https://www.gnu.org/licenses/agpl-3.0-standalone.html | ||||
|  | 
 | ||||
|  | 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. | ||||
|  | 
 | ||||
|  | For support and more information, please visit `Our Website <https://cybrosys.com/>`__ | ||||
|  | 
 | ||||
|  | Further information | ||||
|  | =================== | ||||
|  | HTML Description: `<static/description/index.html>`__ | ||||
| @ -0,0 +1,22 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################### | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Mruthul Raj (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU AFFERO | ||||
|  | #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | ||||
|  | # | ||||
|  | #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | ||||
|  | #    (AGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################### | ||||
|  | from . import models | ||||
| @ -0,0 +1,45 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################### | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Mruthul Raj (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU AFFERO | ||||
|  | #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | ||||
|  | # | ||||
|  | #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | ||||
|  | #    (AGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################### | ||||
|  | { | ||||
|  |     'name': 'Event Catering', | ||||
|  |     'version': '14.0.1.0.0', | ||||
|  |     "category": "Industries", | ||||
|  |     'summary': "Add a catering service to the Event Management module", | ||||
|  |     'description': "Manage the catering service of an event and also invoice " | ||||
|  |                    "that service", | ||||
|  |     'author': 'Cybrosys Techno Solutions', | ||||
|  |     'company': 'Cybrosys Techno Solutions', | ||||
|  |     'maintainer': 'Cybrosys Techno Solutions', | ||||
|  |     'website': "https://www.cybrosys.com", | ||||
|  |     'depends': ['event_management'], | ||||
|  |     'data': ['security/catering_security.xml', | ||||
|  |              'security/ir.model.access.csv', | ||||
|  |              'views/event_catering_work_views.xml', | ||||
|  |              'views/event_management_views.xml', | ||||
|  |              'data/event_catering_data.xml', | ||||
|  |              ], | ||||
|  |     'images': ['static/description/banner.png'], | ||||
|  |     'license': 'AGPL-3', | ||||
|  |     'installable': True, | ||||
|  |     'auto_install': False, | ||||
|  |     'application': False, | ||||
|  | } | ||||
| @ -0,0 +1,21 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <data> | ||||
|  |         <!-- Sequence for Catering Service Order --> | ||||
|  |         <record id="sequence_catering_order" model="ir.sequence"> | ||||
|  |             <field name="name">Catering Service</field> | ||||
|  |             <field name="code">catering.order.sequence</field> | ||||
|  |             <field name="suffix">%(day)s/%(month)s/%(year)s</field> | ||||
|  |             <field name="prefix">CAT-</field> | ||||
|  |             <field name="number_increment">1</field> | ||||
|  |             <field name="padding">2</field> | ||||
|  |         </record> | ||||
|  |         <!-- Product for Catering Service --> | ||||
|  |         <record model="product.product" id="catering_service_product"> | ||||
|  |             <field name="name">Catering Service</field> | ||||
|  |             <field name="type">service</field> | ||||
|  |             <field name="image_1920" type="base64" | ||||
|  |                    file="event_catering/static/img/catering_product-image.jpeg"/> | ||||
|  |         </record> | ||||
|  |     </data> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,6 @@ | |||||
|  | ## Module <event_catering> | ||||
|  | 
 | ||||
|  | #### 04.11.2023 | ||||
|  | #### Version 16.0.1.0.0 | ||||
|  | #### Add | ||||
|  | - Initial Commit for Event Catering | ||||
| @ -0,0 +1,25 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################### | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Mruthul Raj (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU AFFERO | ||||
|  | #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | ||||
|  | # | ||||
|  | #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | ||||
|  | #    (AGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################### | ||||
|  | from . import catering_service | ||||
|  | from . import event_catering_work | ||||
|  | from . import event_management_catering | ||||
|  | from . import event_service | ||||
| @ -0,0 +1,103 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################### | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Mruthul Raj (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU AFFERO | ||||
|  | #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | ||||
|  | # | ||||
|  | #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | ||||
|  | #    (AGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################### | ||||
|  | from odoo import api, fields, models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class EventManagement(models.Model): | ||||
|  |     """Adding catering details in Event management model""" | ||||
|  |     _inherit = 'event.management' | ||||
|  | 
 | ||||
|  |     is_catering_on = fields.Boolean(string="Catering Active", | ||||
|  |                                     help="Indicates whether catering services " | ||||
|  |                                          "are active for this event.") | ||||
|  |     catering_id = fields.Many2one('event.management.catering', | ||||
|  |                                   string="Catering Id", | ||||
|  |                                   help="Reference to the catering service " | ||||
|  |                                        "associated with this event.") | ||||
|  |     catering_pending = fields.Integer(string='Catering Pending', | ||||
|  |                                       compute='_compute_catering_pending', | ||||
|  |                                       help="Number of pending catering " | ||||
|  |                                            "services for this event.") | ||||
|  |     catering_done = fields.Integer(string='Catering Done', | ||||
|  |                                    compute='_compute_catering_done', | ||||
|  |                                    help="Number of completed catering " | ||||
|  |                                         "services for this event.") | ||||
|  | 
 | ||||
|  |     @api.depends('catering_id.catering_works_ids.work_status') | ||||
|  |     def _compute_catering_pending(self): | ||||
|  |         """Compute pending catering""" | ||||
|  |         self.catering_pending = False | ||||
|  |         for order in self.catering_id: | ||||
|  |             pending = 0 | ||||
|  |             for lines in order.catering_works_ids: | ||||
|  |                 if lines.work_status == 'open': | ||||
|  |                     pending += 1 | ||||
|  |             self.catering_pending = pending | ||||
|  | 
 | ||||
|  |     @api.depends('catering_id.catering_works_ids.work_status') | ||||
|  |     def _compute_catering_done(self): | ||||
|  |         """Compute all the done work status""" | ||||
|  |         self.catering_done = False | ||||
|  |         for order in self.catering_id: | ||||
|  |             done = 0 | ||||
|  |             for lines in order.catering_works_ids: | ||||
|  |                 if lines.work_status == 'done': | ||||
|  |                     done += 1 | ||||
|  |             self.catering_done = done | ||||
|  | 
 | ||||
|  |     def action_event_confirm(self): | ||||
|  |         """Confirm the Event""" | ||||
|  |         catering_service = self.env['event.management.catering'] | ||||
|  |         catering_line = self.service_line_ids.search([ | ||||
|  |             ('service', '=', 'catering'), ('event_id', '=', self.id)]) | ||||
|  |         if self.service_line_ids.search_count([('service', '=', 'catering'), | ||||
|  |                                                ('event_id', '=', self.id)]) > 0: | ||||
|  |             self.is_catering_on = True | ||||
|  |             sequence_code = 'catering.order.sequence' | ||||
|  |             name = self.env['ir.sequence'].next_by_code(sequence_code) | ||||
|  |             event = self.id | ||||
|  |             event_type = self.type_of_event_id.id | ||||
|  |             start_date = catering_line.date_from | ||||
|  |             end_date = catering_line.date_to | ||||
|  |             catering_id = catering_line.id | ||||
|  |             data = { | ||||
|  |                 'name': name, | ||||
|  |                 'start_date': start_date, | ||||
|  |                 'end_date': end_date, | ||||
|  |                 'parent_event_id': event, | ||||
|  |                 'event_type_id': event_type, | ||||
|  |                 'catering_id': catering_id, | ||||
|  |             } | ||||
|  |             catering_map = catering_service.create(data) | ||||
|  |             self.catering_id = catering_map.id | ||||
|  |         super(EventManagement, self).action_event_confirm() | ||||
|  | 
 | ||||
|  |     def action_view_catering_service(self): | ||||
|  |         """This function returns an action that displays existing catering | ||||
|  |         service of the event.""" | ||||
|  |         action = self.env.ref( | ||||
|  |             'event_catering.event_management_catering_action').sudo().read()[0] | ||||
|  |         action['views'] = [(self.env.ref( | ||||
|  |             'event_catering.event_management_catering_view_form').id, 'form')] | ||||
|  |         action['res_id'] = self.catering_id.id | ||||
|  |         if self.catering_id.id is not False: | ||||
|  |             return action | ||||
| @ -0,0 +1,76 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################### | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Mruthul Raj (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU AFFERO | ||||
|  | #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | ||||
|  | # | ||||
|  | #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | ||||
|  | #    (AGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################### | ||||
|  | from odoo import api, fields, models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class EventCateringWorks(models.Model): | ||||
|  |     """Deals with catering works""" | ||||
|  |     _name = 'event.catering.work' | ||||
|  |     _description = "Catering Works" | ||||
|  | 
 | ||||
|  |     service_id = fields.Many2one('product.product', string="Services", | ||||
|  |                                  required=True, | ||||
|  |                                  help="Select the catering service for this" | ||||
|  |                                       " work.") | ||||
|  |     quantity = fields.Float(string="Quantity", default=1, | ||||
|  |                             help="Enter the quantity of catering services " | ||||
|  |                                  "provided.") | ||||
|  |     amount = fields.Float(string="Amount", | ||||
|  |                           help="Enter the cost of a single unit of the catering" | ||||
|  |                                " service.") | ||||
|  |     sub_total = fields.Float(string="Sub Total", compute="_compute_sub_total", | ||||
|  |                              readonly=True, | ||||
|  |                              help="Total cost calculated based on quantity and" | ||||
|  |                                   " amount.") | ||||
|  |     currency_id = fields.Many2one('res.currency', readonly=True, | ||||
|  |                                   default=lambda self: self.env.user.company_id.currency_id, | ||||
|  |                                   help="Currency associated with the company" | ||||
|  |                                        " for pricing.") | ||||
|  |     catering_id = fields.Many2one('event.management.catering', | ||||
|  |                                   string="Catering Id", | ||||
|  |                                   help="Link this work to the main catering" | ||||
|  |                                        " management.") | ||||
|  |     work_status = fields.Selection([('open', 'Open'), ('done', 'Done')], | ||||
|  |                                    string="Work Status", | ||||
|  |                                    default='open', | ||||
|  |                                    help="Status of the catering work.") | ||||
|  | 
 | ||||
|  |     @api.onchange('service_id') | ||||
|  |     def _onchange_service_id(self): | ||||
|  |         """Update the amount based on service""" | ||||
|  |         self.amount = self.service_id.lst_price | ||||
|  | 
 | ||||
|  |     @api.depends('quantity', 'amount') | ||||
|  |     def _compute_sub_total(self): | ||||
|  |         """Function to calculate sub total""" | ||||
|  |         for rec in self: | ||||
|  |             rec.sub_total = rec.quantity * rec.amount | ||||
|  | 
 | ||||
|  |     def action_work_completed(self): | ||||
|  |         """Button action for completed works""" | ||||
|  |         if self.catering_id.state == "open": | ||||
|  |             self.work_status = 'open' | ||||
|  | 
 | ||||
|  |     def action_not_completed(self): | ||||
|  |         """Button action for non completed works""" | ||||
|  |         if self.catering_id.state == "open": | ||||
|  |             self.work_status = 'done' | ||||
| @ -0,0 +1,93 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################### | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Mruthul Raj (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU AFFERO | ||||
|  | #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | ||||
|  | # | ||||
|  | #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | ||||
|  | #    (AGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################### | ||||
|  | from odoo import api, fields, models, _ | ||||
|  | from odoo.exceptions import UserError | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class EventManagementCatering(models.Model): | ||||
|  |     """Model for creating catering services""" | ||||
|  |     _name = 'event.management.catering' | ||||
|  |     _description = "Event Management" | ||||
|  | 
 | ||||
|  |     name = fields.Char(string="Name", readonly=True, | ||||
|  |                        help="Name of the catering service.") | ||||
|  |     date = fields.Date(string="Date", default=fields.Date.today, readonly=True, | ||||
|  |                        help="Date of the catering service.") | ||||
|  |     start_date = fields.Datetime(string="Start date", readonly=True, | ||||
|  |                                  help="Start date and time of the catering" | ||||
|  |                                       " service.") | ||||
|  |     end_date = fields.Datetime(string="End date", readonly=True, | ||||
|  |                                help="End date and time of the catering " | ||||
|  |                                     "service.") | ||||
|  |     catering_works_ids = fields.One2many('event.catering.work', 'catering_id', | ||||
|  |                                          string="Catering Works", | ||||
|  |                                          help="List of catering works " | ||||
|  |                                               "associated with this service.") | ||||
|  |     state = fields.Selection([('open', 'Open'), ('done', 'Done')], | ||||
|  |                              string="State", default="open", | ||||
|  |                              help="State of the catering service.") | ||||
|  |     note = fields.Text(string="Terms and conditions", | ||||
|  |                        help="Additional notes or terms for the catering" | ||||
|  |                             " service.") | ||||
|  |     price_subtotal = fields.Float(string='Total', | ||||
|  |                                   compute='_compute_price_subtotal', | ||||
|  |                                   readonly=True, store=True, | ||||
|  |                                   help="Total cost calculated based on" | ||||
|  |                                        " catering works.") | ||||
|  |     parent_event_id = fields.Many2one('event.management', | ||||
|  |                                       string="Event", readonly=True, | ||||
|  |                                       help="Parent event associated with " | ||||
|  |                                            "the catering service.") | ||||
|  |     catering_id = fields.Integer(string="Catering Id", | ||||
|  |                                  help="Unique identifier for the catering " | ||||
|  |                                       "service.") | ||||
|  |     currency_id = fields.Many2one('res.currency', readonly=True, | ||||
|  |                                   default=lambda self: | ||||
|  |                                   self.env.user.company_id.currency_id, | ||||
|  |                                   help="Currency associated with the company " | ||||
|  |                                        "for pricing.") | ||||
|  |     event_type_id = fields.Many2one('event.management.type', | ||||
|  |                                     string="Event Type", readonly=True, | ||||
|  |                                     help="Type of the event associated with " | ||||
|  |                                          "the catering service.") | ||||
|  | 
 | ||||
|  |     @api.depends('catering_works_ids') | ||||
|  |     def _compute_price_subtotal(self): | ||||
|  |         """Compute function for calculating sub total""" | ||||
|  |         total = 0 | ||||
|  |         for items in self.catering_works_ids: | ||||
|  |             total += items.quantity * items.amount | ||||
|  |         self.price_subtotal = total | ||||
|  | 
 | ||||
|  |     def action_catering_done(self): | ||||
|  |         """ Button action for state change to Done""" | ||||
|  |         for items in self.catering_works_ids: | ||||
|  |             if items.work_status == 'open': | ||||
|  |                 raise UserError(_("Catering works are pending")) | ||||
|  |         related_product = self.env.ref( | ||||
|  |             'event_catering.catering_service_product').id | ||||
|  |         for items in self.sudo().parent_event_id.service_line_ids: | ||||
|  |             if items.id == self.sudo().catering_id: | ||||
|  |                 items.sudo().write({'amount': self.price_subtotal, | ||||
|  |                                     'state': 'done', | ||||
|  |                                     'related_product_id': related_product}) | ||||
|  |         self.state = "done" | ||||
| @ -0,0 +1,32 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################### | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2023-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Mruthul Raj (odoo@cybrosys.com) | ||||
|  | # | ||||
|  | #    You can modify it under the terms of the GNU AFFERO | ||||
|  | #    GENERAL PUBLIC LICENSE (AGPL 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 AFFERO GENERAL PUBLIC LICENSE (AGPL v3) for more details. | ||||
|  | # | ||||
|  | #    You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE | ||||
|  | #    (AGPL v3) along with this program. | ||||
|  | #    If not, see <http://www.gnu.org/licenses/>. | ||||
|  | # | ||||
|  | ############################################################################### | ||||
|  | from odoo import fields, models | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class EventService(models.Model): | ||||
|  |     """Adding options to the service line of an event management model""" | ||||
|  |     _inherit = 'event.service.line' | ||||
|  |     _description = "Additional Options For Event Service Lines" | ||||
|  | 
 | ||||
|  |     service = fields.Selection(string="Service", help="Select service.", | ||||
|  |                                ondelete={'catering': 'cascade'}, | ||||
|  |                                selection_add=[('catering', 'Catering')]) | ||||
| @ -0,0 +1,39 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <!-- Define the "Catering Manager" group --> | ||||
|  |     <record id="group_catering_manager" model="res.groups"> | ||||
|  |         <field name="name">Catering Manager</field> | ||||
|  |         <field name="category_id" | ||||
|  |                ref="event_management.module_category_event_management"/> | ||||
|  |     </record> | ||||
|  |       <!-- Assign the "Catering Manager" group to the "Event Manager" group --> | ||||
|  |     <record id="event_management.group_event_manager" model="res.groups"> | ||||
|  |         <field name="implied_ids" eval="[(4, ref('group_catering_manager'))]"/> | ||||
|  |     </record> | ||||
|  |      <!-- Define the rule to restrict Catering Managers to see only their own events --> | ||||
|  |     <record id="catering_mngr_see_own_events" model="ir.rule"> | ||||
|  |         <field name="name">Catering Manager see own Events</field> | ||||
|  |         <field name="model_id" ref="event_management.model_event_management"/> | ||||
|  |         <field name="domain_force">[('create_uid','=',user.id)]</field> | ||||
|  |         <field name="groups" | ||||
|  |                eval="[(4, ref('event_catering.group_catering_manager'))]"/> | ||||
|  |     </record> | ||||
|  |      <!-- Define the rule to restrict Catering Managers to see only their own catering services --> | ||||
|  |     <record id="catering_mngr_see_own_catering" model="ir.rule"> | ||||
|  |         <field name="name">Catering Manager see own Catering</field> | ||||
|  |         <field name="model_id" | ||||
|  |                ref="event_catering.model_event_management_catering"/> | ||||
|  |         <field name="domain_force">[('create_uid','=',user.id)]</field> | ||||
|  |         <field name="groups" | ||||
|  |                eval="[(4, ref('event_catering.group_catering_manager'))]"/> | ||||
|  |     </record> | ||||
|  |       <!-- Define the rule to allow Event Managers to see all catering services --> | ||||
|  |     <record id="event_mngr_see_all_catering" model="ir.rule"> | ||||
|  |         <field name="name">Event Manager see all Catering</field> | ||||
|  |         <field name="model_id" | ||||
|  |                ref="event_catering.model_event_management_catering"/> | ||||
|  |         <field name="domain_force">[]</field> | ||||
|  |         <field name="groups" | ||||
|  |                eval="[(4, ref('event_management.group_event_manager'))]"/> | ||||
|  |     </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: 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: 58 KiB | 
| After Width: | Height: | Size: 58 KiB | 
| After Width: | Height: | Size: 58 KiB | 
| After Width: | Height: | Size: 57 KiB | 
| After Width: | Height: | Size: 55 KiB | 
| After Width: | Height: | Size: 58 KiB | 
| After Width: | Height: | Size: 113 KiB | 
| After Width: | Height: | Size: 213 KiB | 
| After Width: | Height: | Size: 76 KiB | 
| After Width: | Height: | Size: 73 KiB | 
| After Width: | Height: | Size: 73 KiB | 
| After Width: | Height: | Size: 7.7 KiB | 
| @ -0,0 +1,669 @@ | |||||
|  | <div style="background-color: #714B67; min-height: 600px; width: 100%; padding: 15px; position: relative;"> | ||||
|  |     <!-- TITLE BAR --> | ||||
|  |     <div 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: #875A7B; 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: #017E84; 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 --> | ||||
|  |     <h1 style="color: #FFFFFF; font-weight: bolder; font-size: 50px; text-align: center; margin-top: 50px;"> | ||||
|  |         Event Catering | ||||
|  |     </h1> | ||||
|  |     <p style="color:#FFFFFF; padding: 8px 15px; text-align: center; font-size: 24px;"> | ||||
|  |         A Module for Managing Catering Services, Supporting Module For | ||||
|  |         Event 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> | ||||
|  | 
 | ||||
|  | <!-- 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> | ||||
|  |     <div class="d-flex justify-content-center align-items-center mr-2"> | ||||
|  |         <h2 class="mt-2" | ||||
|  |             style="font-family: 'Montserrat', sans-serif; font-size: 24px; font-weight: bold;"> | ||||
|  |             Explore This | ||||
|  |             Module</h2> | ||||
|  |     </div> | ||||
|  | </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"> Event Catering attaches catering service to | ||||
|  |         Event Management module | ||||
|  |         thus extending the scope of the Event Management Module. When you | ||||
|  |         install this module, a new service 'Catering' will be available | ||||
|  |         in event management | ||||
|  |     </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/pie-chart.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 align-items-start" | ||||
|  |              style="margin-top: 40px; margin-bottom: 40px"> | ||||
|  |             <img src="./assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <div> | ||||
|  |                 <span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                   Automatic Creation | ||||
|  |                 </span> | ||||
|  |                 <span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 12px;"> | ||||
|  |                      Automatically created from the particular event order. | ||||
|  |                 </span> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="d-flex align-items-start" | ||||
|  |              style="margin-top: 40px; margin-bottom: 40px"> | ||||
|  |             <img src="./assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <div> | ||||
|  |                 <span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                   Managing Access | ||||
|  |                 </span> | ||||
|  |                 <span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 12px;"> | ||||
|  |                       Catering and Event Manager can update the state of event order | ||||
|  |                     and thus the catering order. | ||||
|  |                 </span> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |         <div class="d-flex align-items-start" | ||||
|  |              style="margin-top: 40px; margin-bottom: 40px"> | ||||
|  |             <img src="./assets/misc/check-box.png" class="mr-2"/> | ||||
|  |             <div> | ||||
|  |                 <span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                    Simplicity | ||||
|  |                 </span> | ||||
|  |                 <span style="display: block; font-family: 'Montserrat', sans-serif; font-size: 12px;"> | ||||
|  |                       Simply complete the work order on a single click. | ||||
|  |                 </span> | ||||
|  |             </div> | ||||
|  |         </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;"> | ||||
|  |             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                 Catering Service Form View | ||||
|  |             </h3> | ||||
|  |             <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                 User can add the product to be serviced. | ||||
|  |             </p> | ||||
|  |             <img src="./assets/screenshots/Screenshot1.png" | ||||
|  |                  class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                 Catering Service Kanban view | ||||
|  |             </h3> | ||||
|  |             <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  |                 Details including Event Type and Reference can be viewed in | ||||
|  |                 kanban view. | ||||
|  |             </p> | ||||
|  |             <img src="./assets/screenshots/Screenshot2.png" | ||||
|  |                  class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  |         <div style="display: block; margin: 30px auto;"> | ||||
|  |             <h3 style="font-family: 'Montserrat', sans-serif; font-size: 18px; font-weight: bold;"> | ||||
|  |                 Catering Service Tree view | ||||
|  |             </h3> | ||||
|  |             <p style="font-weight: 400; font-family: 'Montserrat', sans-serif; font-size: 14px;"> | ||||
|  | 
 | ||||
|  |                 Event type, Start and End dates, etc. can be viewed in tree | ||||
|  |                 view. | ||||
|  |             </p> | ||||
|  |             <img src="./assets/screenshots/Screenshot3.png" | ||||
|  |                  class="img-thumbnail"> | ||||
|  |         </div> | ||||
|  | 
 | ||||
|  |     </div> | ||||
|  | </div> | ||||
|  | <!-- END OF SCREENSHOTS SECTION --> | ||||
|  | 
 | ||||
|  | <!-- SUGGESTED PRODUCTS --> | ||||
|  | <div class="row"> | ||||
|  |     <div class="col-lg-12 d-flex flex-column justify-content-center" | ||||
|  |          style="text-align: center; padding: 2.5rem 1rem !important;"> | ||||
|  |         <h2 style="color: #212529 !important;">Suggested Products</h2> | ||||
|  |         <hr | ||||
|  |                 style="border: 3px solid #714B67 !important; background-color: #714B67 !important; width: 80px !important; margin-bottom: 2rem !important;"/> | ||||
|  | 
 | ||||
|  |         <div id="demo1" class="row carousel slide" data-ride="carousel"> | ||||
|  |             <!-- The slideshow --> | ||||
|  |             <div class="carousel-inner"> | ||||
|  |                 <div class="carousel-item active" style="min-height:0px"> | ||||
|  |                     <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | ||||
|  |                          style="float:left"> | ||||
|  |                         <a href="https://apps.odoo.com/apps/modules/14.0/fleet_rental/#" | ||||
|  |                            target="_blank"> | ||||
|  |                             <div style="border-radius:10px"> | ||||
|  |                                 <img class="img img-responsive center-block" | ||||
|  |                                      style="border-top-left-radius:10px; border-top-right-radius:10px" | ||||
|  |                                      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/14.0/fleet_car_workshop/" | ||||
|  |                            target="_blank"> | ||||
|  |                             <div style="border-radius:10px"> | ||||
|  |                                 <img class="img img-responsive center-block" | ||||
|  |                                      style="border-top-left-radius:10px; border-top-right-radius:10px" | ||||
|  |                                      src="./assets/modules/2.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/14.0/salon_management/#" | ||||
|  |                            target="_blank"> | ||||
|  |                             <div style="border-radius:10px"> | ||||
|  |                                 <img class="img img-responsive center-block" | ||||
|  |                                      style="border-top-left-radius:10px; border-top-right-radius:10px" | ||||
|  |                                      src="./assets/modules/3.png"> | ||||
|  |                             </div> | ||||
|  |                         </a> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <div class="carousel-item" style="min-height:0px"> | ||||
|  |                     <div class="col-xs-12 col-sm-4 col-md-4 mb16 mt16" | ||||
|  |                          style="float:left"> | ||||
|  |                         <a href="https://apps.odoo.com/apps/modules/14.0/laundry_management/#" | ||||
|  |                            target="_blank"> | ||||
|  |                             <div style="border-radius:10px"> | ||||
|  |                                 <img class="img img-responsive center-block" | ||||
|  |                                      style="border-top-left-radius:10px; border-top-right-radius:10px" | ||||
|  |                                      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/14.0/insurance_management_cybro/" | ||||
|  |                            target="_blank"> | ||||
|  |                             <div style="border-radius:10px"> | ||||
|  |                                 <img class="img img-responsive center-block" | ||||
|  |                                      style="border-top-left-radius:10px; border-top-right-radius:10px" | ||||
|  |                                      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/14.0/medical_lab_management/" | ||||
|  |                            target="_blank"> | ||||
|  |                             <div style="border-radius:10px"> | ||||
|  |                                 <img class="img img-responsive center-block" | ||||
|  |                                      style="border-top-left-radius:10px; border-top-right-radius:10px" | ||||
|  |                                      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="left:-25px;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="right:-25px;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 SUGGESTED 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 --> | ||||
| After Width: | Height: | Size: 214 KiB | 
| @ -0,0 +1,164 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8" ?> | ||||
|  | <odoo> | ||||
|  |     <!-- View for displaying catering services in tree format --> | ||||
|  |     <record id="event_management_catering_view_tree" model="ir.ui.view"> | ||||
|  |         <field name="name">event.management.catering.view.tree</field> | ||||
|  |         <field name="model">event.management.catering</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <tree create="false"> | ||||
|  |                 <field name="name"/> | ||||
|  |                 <field name="event_type_id"/> | ||||
|  |                 <field name="date"/> | ||||
|  |                 <field name="start_date"/> | ||||
|  |                 <field name="end_date"/> | ||||
|  |             </tree> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |     <!-- View for displaying catering services in kanban format --> | ||||
|  |     <record id="event_management_catering_view_kanban" model="ir.ui.view"> | ||||
|  |         <field name="name">event.management.catering.view.kanban</field> | ||||
|  |         <field name="model">event.management.catering</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <kanban quick_create="false" create="false"> | ||||
|  |                 <field name="event_type_id"/> | ||||
|  |                 <templates> | ||||
|  |                     <t t-name="kanban-box"> | ||||
|  |                         <div class="oe_kanban_global_click o_kanban_record_has_image_fill o_hr_kanban_record"> | ||||
|  |                             <div class="o_kanban_image_fill_left"> | ||||
|  |                                 <img t-att-src="kanban_image('event.management.type', 'image', record.event_type_id.raw_value)" | ||||
|  |                                      alt="type" | ||||
|  |                                      style="width:90%;height:130px;"/> | ||||
|  |                                 <div class="oe_clear"/> | ||||
|  |                             </div> | ||||
|  |                             <div class="o_kanban_details"> | ||||
|  |                                 <div class="o_kanban_record_top"> | ||||
|  |                                     <div class="o_kanban_record_headings"> | ||||
|  |                                         <strong class="o_kanban_record_title"> | ||||
|  |                                             <field name="name"/> | ||||
|  |                                         </strong> | ||||
|  |                                         <br/> | ||||
|  |                                         <br/> | ||||
|  |                                         <field name="event_type_id"/> | ||||
|  |                                     </div> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </t> | ||||
|  |                 </templates> | ||||
|  |             </kanban> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |     <!-- View for displaying and editing catering service details --> | ||||
|  |     <record id="event_management_catering_view_form" model="ir.ui.view"> | ||||
|  |         <field name="name">event.management.catering.view.form</field> | ||||
|  |         <field name="model">event.management.catering</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <form create="false"> | ||||
|  |                 <header> | ||||
|  |                     <button name="action_catering_done" string="Done" | ||||
|  |                             type="object" class="oe_highlight" | ||||
|  |                             states="open"/> | ||||
|  |                     <field name="state" widget="statusbar" | ||||
|  |                            statusbar_visible="open,done"/> | ||||
|  |                 </header> | ||||
|  |                 <sheet> | ||||
|  |                     <h1> | ||||
|  |                         <field name="name"/> | ||||
|  |                     </h1> | ||||
|  |                     <group> | ||||
|  |                         <group> | ||||
|  |                             <field name="parent_event_id"/> | ||||
|  |                             <field name="event_type_id"/> | ||||
|  |                         </group> | ||||
|  |                         <group> | ||||
|  |                             <field name="date"/> | ||||
|  |                             <field name="start_date"/> | ||||
|  |                             <field name="end_date"/> | ||||
|  |                             <field name="currency_id" invisible="1"/> | ||||
|  |                         </group> | ||||
|  |                     </group> | ||||
|  |                     <notebook> | ||||
|  |                         <page string="Catering Works"> | ||||
|  |                             <field name="catering_works_ids" mode="tree" | ||||
|  |                                    attrs="{'readonly': [('state', '=', 'done')]}"> | ||||
|  |                                 <form string="Catering Lines Form"> | ||||
|  |                                     <group> | ||||
|  |                                         <group> | ||||
|  |                                             <field name="service_id"/> | ||||
|  |                                             <field name="amount"/> | ||||
|  |                                         </group> | ||||
|  |                                     </group> | ||||
|  |                                 </form> | ||||
|  |                                 <tree string="Catering Lines Tree" | ||||
|  |                                       editable="bottom"> | ||||
|  |                                     <field name="service_id"/> | ||||
|  |                                     <field name="work_status" string="Status"/> | ||||
|  |                                     <field name="quantity"/> | ||||
|  |                                     <field name="amount"/> | ||||
|  |                                     <field name="currency_id" | ||||
|  |                                            invisible="1"/> | ||||
|  |                                     <field name="sub_total" | ||||
|  |                                            widget="monetary" | ||||
|  |                                            options="{'currency_field': 'currency_id'}"/> | ||||
|  |                                 </tree> | ||||
|  |                             </field> | ||||
|  |                             <group class="oe_subtotal_footer oe_right" | ||||
|  |                                    colspan="2" name="catering_total"> | ||||
|  |                                 <div class="oe_subtotal_footer_separator oe_inline o_td_label"> | ||||
|  |                                     <label for="price_subtotal"/> | ||||
|  |                                 </div> | ||||
|  |                                 <field name="price_subtotal" nolabel="1" | ||||
|  |                                        class="oe_subtotal_footer_separator" | ||||
|  |                                        widget='monetary' | ||||
|  |                                        options="{'currency_field': 'currency_id'}"/> | ||||
|  |                             </group> | ||||
|  |                             <field name="note" class="oe_inline" | ||||
|  |                                    placeholder="Setup default terms and conditions in your company settings." | ||||
|  |                                    attrs="{'readonly': [('state', '=', 'done')]}"/> | ||||
|  |                             <div class="oe_clear"/> | ||||
|  |                         </page> | ||||
|  |                     </notebook> | ||||
|  |                 </sheet> | ||||
|  |             </form> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |      <!-- View for searching catering services --> | ||||
|  |     <record id="event_management_catering_view_search" model="ir.ui.view"> | ||||
|  |         <field name="name">event.management.catering.view.search</field> | ||||
|  |         <field name="model">event.management.catering</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <search string="Catering"> | ||||
|  |                 <field name="name"/> | ||||
|  |                 <field name="event_type_id"/> | ||||
|  |                 <field name="catering_works_ids"/> | ||||
|  |                 <filter string="Open" name="state_open" | ||||
|  |                         domain="[('state','=','open')]"/> | ||||
|  |                 <group expand="0" string="Group By"> | ||||
|  |                     <filter string="Event Type" name="event_type_id" | ||||
|  |                             domain="[]" | ||||
|  |                             context="{'group_by':'event_type_id'}"/> | ||||
|  |                 </group> | ||||
|  |             </search> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |     <!-- Action to open the catering service view --> | ||||
|  |     <record id="event_management_catering_action" | ||||
|  |             model="ir.actions.act_window"> | ||||
|  |         <field name="name">Catering Service</field> | ||||
|  |         <field name="res_model">event.management.catering</field> | ||||
|  |         <field name="type">ir.actions.act_window</field> | ||||
|  |         <field name="view_mode">kanban,tree,form</field> | ||||
|  |         <field name="help" type="html"> | ||||
|  |             <p class="oe_view_nocontent_create"> | ||||
|  |                 You can't create a direct catering. | ||||
|  |             </p> | ||||
|  |             <p> | ||||
|  |                 Catering service is created from event order. | ||||
|  |             </p> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |     <menuitem id="event_management_catering_menu" name="Catering" | ||||
|  |               parent="event_management.event_management_service_menu" | ||||
|  |               action="event_management_catering_action" | ||||
|  |               groups="event_catering.group_catering_manager"/> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,41 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <!-- This Customizes the form view for the "event.management" | ||||
|  |     model by adding a button to view catering services. --> | ||||
|  |     <record id="event_management_view_form" model="ir.ui.view"> | ||||
|  |         <field name="name">event.management.view.form.inherit.event.catering | ||||
|  |         </field> | ||||
|  |         <field name="model">event.management</field> | ||||
|  |         <field name="inherit_id" | ||||
|  |                ref="event_management.event_management_view_form"/> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <div name="button_box" position="inside"> | ||||
|  |                 <button name="action_view_catering_service" | ||||
|  |                         type="object" | ||||
|  |                         class="oe_stat_button" | ||||
|  |                         attrs="{'invisible': [('is_catering_on', '=', False)]}" | ||||
|  |                         help="Catering"> | ||||
|  |                     <div class="fa fa-cutlery" title="catering" | ||||
|  |                          style="font-size:21px;padding-left:8px;padding-right:5px;color:#7C7BAD;"/> | ||||
|  |                     <div class="o_stat_info" | ||||
|  |                          style="position: static;padding-left:10px;font-size:12px;font-weight:300;color:#d60000;"> | ||||
|  |                         <div style="font-weight:600;font-size:13px"> | ||||
|  |                             <field name="catering_pending"/> | ||||
|  |                         </div> | ||||
|  |                         <span class="o_stat_info">Pending</span> | ||||
|  |                     </div> | ||||
|  |                     <div class="o_stat_info" | ||||
|  |                          style="padding-left:10px;font-size:12px;font-weight:300;color:#569220;"> | ||||
|  |                         <div style="font-weight:600;font-size:13px"> | ||||
|  |                             <field name="catering_done"/> | ||||
|  |                         </div> | ||||
|  |                         <span class="o_stat_info">Done</span> | ||||
|  |                     </div> | ||||
|  |                 </button> | ||||
|  |             </div> | ||||
|  |             <field name="partner_id" position="after"> | ||||
|  |                 <field name="is_catering_on" invisible="1"/> | ||||
|  |             </field> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  | </odoo> | ||||