| @ -0,0 +1,48 @@ | |||||
|  | .. 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 | ||||
|  | 
 | ||||
|  | Sales Contract and Recurring Invoices | ||||
|  | ===================================== | ||||
|  | This module enables to create sale contracts and recurring invoices. | ||||
|  | 
 | ||||
|  | Configuration | ||||
|  | ============= | ||||
|  | * No Additional configuration is needed. | ||||
|  | 
 | ||||
|  | Company | ||||
|  | ------- | ||||
|  | * `Cybrosys Techno Solutions <https://cybrosys.com/>`__ | ||||
|  | 
 | ||||
|  | License | ||||
|  | ------- | ||||
|  | Affero General Public License, Version 3 (AGPL v3) | ||||
|  | (https://www.gnu.org/licenses/agpl-3.0-standalone.html) | ||||
|  | 
 | ||||
|  | Credits | ||||
|  | ------- | ||||
|  | * Developers : (V16) Vishnu P, | ||||
|  |                (V17) Aysha Shalin, | ||||
|  |   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. | ||||
|  | 
 | ||||
|  | For support and more information, please visit `Our Website <https://cybrosys.com/>`__ | ||||
|  | 
 | ||||
|  | Further information | ||||
|  | =================== | ||||
|  | HTML Description: `<static/description/index.html>`__ | ||||
| @ -0,0 +1,23 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(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 controllers | ||||
|  | from . import models | ||||
| @ -0,0 +1,49 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(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': 'Sales Contract and Recurring Invoices', | ||||
|  |     'version': '17.0.1.0.0', | ||||
|  |     'category': 'Sales,Accounting', | ||||
|  |     'summary': """Create sale contracts and recurring invoices.""", | ||||
|  |     'description': """This module helps to create sale contracts with recurring  | ||||
|  |     invoices and enable to access all sale contracts from website portal.""", | ||||
|  |     'author': 'Cybrosys Techno Solutions', | ||||
|  |     'company': 'Cybrosys Techno Solutions', | ||||
|  |     'maintainer': 'Cybrosys Techno Solutions', | ||||
|  |     'website': 'https://www.cybrosys.com', | ||||
|  |     'depends': ['sale_management', 'website'], | ||||
|  |     'data': [ | ||||
|  |         'security/subscription_contracts_security.xml', | ||||
|  |         'security/ir.model.access.csv', | ||||
|  |         'data/ir_cron_data.xml', | ||||
|  |         'report/subscription_contract_reports.xml', | ||||
|  |         'views/subscription_contracts_views.xml', | ||||
|  |         'views/account_move_views.xml', | ||||
|  |         'views/subscription_contracts_templates.xml', | ||||
|  |         'report/subscription_contract_templates.xml', | ||||
|  |     ], | ||||
|  |     'images': ['static/description/banner.png'], | ||||
|  |     'license': 'AGPL-3', | ||||
|  |     'installable': True, | ||||
|  |     'auto_install': False, | ||||
|  |     'application': False, | ||||
|  | } | ||||
| @ -0,0 +1,22 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(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 sales_contract_and_recurring_invoices | ||||
| @ -0,0 +1,78 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(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 http | ||||
|  | from odoo.http import request | ||||
|  | from odoo.addons.portal.controllers.portal import CustomerPortal | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class PortalAccount(CustomerPortal): | ||||
|  |     """ Super customer portal and get count of contracts """ | ||||
|  |     def _prepare_home_portal_values(self, counters): | ||||
|  |         """ Prepares values for the home portal """ | ||||
|  |         values = super()._prepare_home_portal_values(counters) | ||||
|  |         partner = request.env.user.partner_id.id | ||||
|  |         contract_count = request.env['subscription.contracts'].search([ | ||||
|  |             ('partner_id', '=', partner)]) | ||||
|  |         values['contract_count'] = len(contract_count) | ||||
|  |         return values | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class ContractsController(http.Controller): | ||||
|  |     """ Sale contract in customer portal controller """ | ||||
|  |     @http.route(['/my/contracts'], type='http', auth='user', csrf=False, | ||||
|  |                 website=True) | ||||
|  |     def portal_my_quotes(self): | ||||
|  |         """ Displays Contracts in portal """ | ||||
|  |         partner = request.env.user.partner_id.id | ||||
|  |         values = { | ||||
|  |             'records': request.env['subscription.contracts'].search( | ||||
|  |                 [('partner_id', '=', partner)]), | ||||
|  |         } | ||||
|  |         return request.render( | ||||
|  |             'sales_contract_and_recurring_invoices.tmp_contract_details', values) | ||||
|  | 
 | ||||
|  |     @http.route(['/contracts/<int:contract_id>/'], type='http', auth='user', | ||||
|  |                 csrf=False, website=True) | ||||
|  |     def portal_manufacture(self, contract_id): | ||||
|  |         """ Customer portal subscription contract """ | ||||
|  |         values = { | ||||
|  |             'records': request.env['subscription.contracts'].browse( | ||||
|  |                 contract_id), | ||||
|  |         } | ||||
|  |         return request.render( | ||||
|  |             'sales_contract_and_recurring_invoices.contract_details', values) | ||||
|  | 
 | ||||
|  |     @http.route(['/report/pdf/<int:contract_id>/'], type='http', auth='user', | ||||
|  |                 csrf=False, website=True) | ||||
|  |     def action_print_report(self, contract_id): | ||||
|  |         """ Print subscription contract report """ | ||||
|  |         data = { | ||||
|  |             'records': request.env['subscription.contracts'].browse(contract_id) | ||||
|  |         } | ||||
|  |         report = request.env.ref( | ||||
|  |             'sales_contract_and_recurring_invoices.action_report_subscription_contracts') | ||||
|  |         pdf = request.env['ir.actions.report'].sudo()._render_qweb_pdf( | ||||
|  |             'sales_contract_and_recurring_invoices.action_report_subscription_contracts', | ||||
|  |             [report.id], data=data)[0] | ||||
|  |         pdfhttpheaders = [('Content-Type', 'application/pdf'), | ||||
|  |                           ('Content-Length', len(pdf))] | ||||
|  |         return request.make_response(pdf, headers=pdfhttpheaders) | ||||
| @ -0,0 +1,17 @@ | |||||
|  | <?xml version='1.0' encoding='utf-8'?> | ||||
|  | <odoo> | ||||
|  |     <!-- Cron Job for automatic state change of contracts --> | ||||
|  |     <data noupdate="1"> | ||||
|  |         <record id="ir_cron_scheduler_recurring_action" model="ir.cron"> | ||||
|  |             <field name="name">Subscription Contract State Change</field> | ||||
|  |             <field name="model_id" ref="model_subscription_contracts"/> | ||||
|  |             <field name="state">code</field> | ||||
|  |             <field name="code">model.subscription_contract_state_change()</field> | ||||
|  |             <field name="user_id" ref="base.user_root"/> | ||||
|  |             <field name="interval_number">1</field> | ||||
|  |             <field name="interval_type">days</field> | ||||
|  |             <field name="numbercall">-1</field> | ||||
|  |             <field name="doall">1</field> | ||||
|  |         </record> | ||||
|  |     </data> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,6 @@ | |||||
|  | ## Module <sales_contract_and_recurring_invoices> | ||||
|  | 
 | ||||
|  | #### 27.03.2024 | ||||
|  | #### Version 17.0.1.0.0 | ||||
|  | ##### ADD | ||||
|  | - Initial commit for Sales Contract and Recurring Invoices | ||||
| @ -0,0 +1,25 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(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 account_move | ||||
|  | from . import sale_order_line | ||||
|  | from . import subscription_contract_line | ||||
|  | from . import subscription_contracts | ||||
| @ -0,0 +1,30 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(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 AccountMove(models.Model): | ||||
|  |     """ Inheriting account move model to add id of subscription """ | ||||
|  |     _inherit = 'account.move' | ||||
|  | 
 | ||||
|  |     contract_origin = fields.Integer(string='Subscription Contract', | ||||
|  |                                      help='Reference of Subscription Contract') | ||||
| @ -0,0 +1,32 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(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 SaleOrderLine(models.Model): | ||||
|  |     """ Add contract reference in sale order line """ | ||||
|  |     _inherit = 'sale.order.line' | ||||
|  | 
 | ||||
|  |     contract_id = fields.Many2one( | ||||
|  |         'subscription.contracts', | ||||
|  |         string='Contracts', | ||||
|  |         help='For adding Contracts in sale order line') | ||||
| @ -0,0 +1,92 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(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 SubscriptionContractLines(models.Model): | ||||
|  |     """ Add subscription contract line """ | ||||
|  |     _name = 'subscription.contracts.line' | ||||
|  |     _description = 'Subscription Contracts Line' | ||||
|  | 
 | ||||
|  |     subscription_contract_id = fields.Many2one( | ||||
|  |         'subscription.contracts', | ||||
|  |         string='Subscription Contracts', | ||||
|  |         help='Subscription Contract Reference') | ||||
|  |     product_id = fields.Many2one('product.product', | ||||
|  |                                  string='Products', | ||||
|  |                                  help='Products to be added in contract') | ||||
|  |     currency_id = fields.Many2one(string='Currency', | ||||
|  |                                   related='subscription_contract_id.currency_id', | ||||
|  |                                   depends=[ | ||||
|  |                                       'subscription_contract_id.currency_id']) | ||||
|  |     description = fields.Text( | ||||
|  |         string="Description", compute='_compute_description', store=True, | ||||
|  |         readonly=False, precompute=True, help='Product description') | ||||
|  |     qty_ordered = fields.Float(string="Quantity", | ||||
|  |                                digits='Product Unit of Measure', default=1.0, | ||||
|  |                                help='Ordered Quantity') | ||||
|  |     product_uom_id = fields.Many2one('uom.uom', string='Unit of Measure', | ||||
|  |                                      compute='_compute_product_uom', store=True, | ||||
|  |                                      help='Unit of measure of product') | ||||
|  |     price_unit = fields.Float(string="Unit Price", | ||||
|  |                               compute='_compute_price_unit', | ||||
|  |                               digits='Product Price', | ||||
|  |                               store=True, readonly=False, precompute=True, | ||||
|  |                               help='Unit price of product') | ||||
|  |     tax_ids = fields.Many2many(comodel_name='account.tax', string="Taxes", | ||||
|  |                                context={'active_test': False}, | ||||
|  |                                help='Taxes to be added') | ||||
|  |     discount = fields.Float(string="Discount (%)", digits='Discount', | ||||
|  |                             store=True, readonly=False, help='Discount in %') | ||||
|  |     sub_total = fields.Monetary( | ||||
|  |         string="Total", compute='_compute_amount', store=True, precompute=True, | ||||
|  |         help='Sub Total Amount') | ||||
|  | 
 | ||||
|  |     @api.depends('product_id') | ||||
|  |     def _compute_description(self): | ||||
|  |         """ Compute product description """ | ||||
|  |         for option in self: | ||||
|  |             if not option.product_id: | ||||
|  |                 continue | ||||
|  |             product_lang = option.product_id.with_context( | ||||
|  |                 lang=self.subscription_contract_id.partner_id.lang) | ||||
|  |             option.description = product_lang.get_product_multiline_description_sale() | ||||
|  | 
 | ||||
|  |     @api.depends('product_id') | ||||
|  |     def _compute_product_uom(self): | ||||
|  |         """ Compute product uom """ | ||||
|  |         for rec in self: | ||||
|  |             rec.product_uom_id = rec.product_id.uom_id | ||||
|  | 
 | ||||
|  |     @api.depends('product_id') | ||||
|  |     def _compute_price_unit(self): | ||||
|  |         """ Compute unit price""" | ||||
|  |         for rec in self: | ||||
|  |             rec.price_unit = rec.product_id.lst_price | ||||
|  | 
 | ||||
|  |     @api.depends('product_id', 'qty_ordered', 'discount', 'price_unit') | ||||
|  |     def _compute_amount(self): | ||||
|  |         """ Compute total amount """ | ||||
|  |         for rec in self: | ||||
|  |             total = rec.price_unit * rec.qty_ordered | ||||
|  |             discount = total * rec.discount / 100 | ||||
|  |             rec.sub_total = total - discount | ||||
| @ -0,0 +1,250 @@ | |||||
|  | # -*- coding: utf-8 -*- | ||||
|  | ############################################################################## | ||||
|  | # | ||||
|  | #    Cybrosys Technologies Pvt. Ltd. | ||||
|  | # | ||||
|  | #    Copyright (C) 2024-TODAY Cybrosys Technologies(<https://www.cybrosys.com>) | ||||
|  | #    Author: Cybrosys Techno Solutions(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.tools import date_utils | ||||
|  | from odoo.tools.safe_eval import datetime | ||||
|  | 
 | ||||
|  | 
 | ||||
|  | class SubscriptionContracts(models.Model): | ||||
|  |     """ Model for subscription contracts """ | ||||
|  |     _name = 'subscription.contracts' | ||||
|  |     _description = 'Subscription Contracts' | ||||
|  |     _inherit = ['mail.thread', 'mail.activity.mixin'] | ||||
|  | 
 | ||||
|  |     name = fields.Char(string='Contract Name', required=True, | ||||
|  |                        help='Name of Contract') | ||||
|  |     reference = fields.Char(string='Reference', help='Contract reference') | ||||
|  |     partner_id = fields.Many2one('res.partner', string="Customer", | ||||
|  |                                  help='Customer for this contract') | ||||
|  |     recurring_period = fields.Integer(string='Recurring Period', | ||||
|  |                                       help='Recurring period of ' | ||||
|  |                                            'subscription contract') | ||||
|  |     recurring_period_interval = fields.Selection([ | ||||
|  |         ('Days', 'Days'), | ||||
|  |         ('Weeks', 'Weeks'), | ||||
|  |         ('Months', 'Months'), | ||||
|  |         ('Years', 'Years'), | ||||
|  |     ], help='Recurring interval of subscription contract') | ||||
|  |     contract_reminder = fields.Integer( | ||||
|  |         string='Contract Expiration Reminder (Days)', | ||||
|  |         help='Expiry reminder of subscription contract in days.') | ||||
|  |     recurring_invoice = fields.Integer( | ||||
|  |         string='Recurring Invoice Interval (Days)', | ||||
|  |         help='Recurring invoice interval in days') | ||||
|  |     next_invoice_date = fields.Date(string='Next Invoice Date', store=True, | ||||
|  |                                     compute='_compute_next_invoice_date', | ||||
|  |                                     help='Date of next invoice') | ||||
|  |     company_id = fields.Many2one('res.company', string='Company', | ||||
|  |                                  default=lambda self: self.env.company) | ||||
|  |     currency_id = fields.Many2one( | ||||
|  |         'res.currency', string='Currency', | ||||
|  |         required=True, default=lambda self: self.env.company.currency_id) | ||||
|  |     date_start = fields.Date(string='Start Date', default=fields.Date.today(), | ||||
|  |                              help='Subscription contract start date') | ||||
|  |     invoice_count = fields.Integer(store=True, | ||||
|  |                                    compute='_compute_invoice_count', | ||||
|  |                                    string='Invoice count', | ||||
|  |                                    help='Number of invoices generated') | ||||
|  |     date_end = fields.Date(string='End Date', help='Subscription End Date') | ||||
|  |     current_reference = fields.Integer(compute='_compute_sale_order_lines', | ||||
|  |                                        string='Current Subscription Id', | ||||
|  |                                        help='Current Subscription id') | ||||
|  |     lock = fields.Boolean(string='Lock', default=False, | ||||
|  |                           help='Lock subscription contract so that further' | ||||
|  |                                ' modifications are not possible.') | ||||
|  |     state = fields.Selection([ | ||||
|  |         ('New', 'New'), | ||||
|  |         ('Ongoing', 'Ongoing'), | ||||
|  |         ('Expire Soon', 'Expire Soon'), | ||||
|  |         ('Expired', 'Expired'), | ||||
|  |         ('Cancelled', 'Cancelled'), | ||||
|  |     ], string='Stage', default='New', copy=False, tracking=True, | ||||
|  |         readonly=True, help='Status of subscription contract') | ||||
|  |     contract_line_ids = fields.One2many( | ||||
|  |         'subscription.contracts.line', | ||||
|  |         'subscription_contract_id', | ||||
|  |         string='Contract lines', help='Products to be added in the contract') | ||||
|  |     amount_total = fields.Monetary(string="Total", store=True, | ||||
|  |                                    compute='_compute_amount_total', tracking=4, | ||||
|  |                                    help='Total amount') | ||||
|  |     sale_order_line_ids = fields.One2many( | ||||
|  |         'sale.order.line', 'contract_id', | ||||
|  |         string='Sale Order Lines', | ||||
|  |         help='Order lines of Sale Orders which belongs to this contract') | ||||
|  |     note = fields.Html(string="Terms and conditions", | ||||
|  |                        help='Add any notes', translate=True) | ||||
|  |     invoices_active = fields.Boolean( | ||||
|  |         'Invoice active', default=False, | ||||
|  |         compute='_compute_invoice_active', | ||||
|  |         help='Compute invoices are active or not') | ||||
|  | 
 | ||||
|  |     def action_to_confirm(self): | ||||
|  |         """ Confirm the Contract """ | ||||
|  |         self.write({'state': 'Ongoing'}) | ||||
|  | 
 | ||||
|  |     def action_to_cancel(self): | ||||
|  |         """ Cancel the Contract """ | ||||
|  |         self.write({'state': 'Cancelled'}) | ||||
|  | 
 | ||||
|  |     def action_generate_invoice(self): | ||||
|  |         """ Generate invoice """ | ||||
|  |         self.env['account.move'].create( | ||||
|  |             { | ||||
|  |                 'move_type': 'out_invoice', | ||||
|  |                 'partner_id': self.partner_id.id, | ||||
|  |                 'invoice_date': fields.date.today(), | ||||
|  |                 'contract_origin': self.id, | ||||
|  |                 'invoice_line_ids': [(0, 0, { | ||||
|  |                     'product_id': line.product_id.id, | ||||
|  |                     'name': line.description, | ||||
|  |                     'quantity': line.qty_ordered, | ||||
|  |                     'price_unit': line.price_unit, | ||||
|  |                     'tax_ids': line.tax_ids, | ||||
|  |                     'discount': line.discount, | ||||
|  |                 }) for line in self.contract_line_ids] | ||||
|  |             }) | ||||
|  |         self.invoice_count = self.env['account.move'].search_count([ | ||||
|  |             ('contract_origin', '=', self.id)]) | ||||
|  | 
 | ||||
|  |     def action_lock(self): | ||||
|  |         """ Lock subscription contract """ | ||||
|  |         self.lock = True | ||||
|  | 
 | ||||
|  |     def action_to_unlock(self): | ||||
|  |         """ Unlock subscription contract """ | ||||
|  |         self.lock = False | ||||
|  | 
 | ||||
|  |     def action_get_invoice(self): | ||||
|  |         """ Access generated invoices """ | ||||
|  |         self.ensure_one() | ||||
|  |         return { | ||||
|  |             'type': 'ir.actions.act_window', | ||||
|  |             'name': 'Invoices', | ||||
|  |             'view_mode': 'tree,form', | ||||
|  |             'res_model': 'account.move', | ||||
|  |             'domain': [('contract_origin', '=', self.id)], | ||||
|  |         } | ||||
|  | 
 | ||||
|  |     @api.depends('contract_line_ids.sub_total') | ||||
|  |     def _compute_amount_total(self): | ||||
|  |         """ Compute total amount of Contract """ | ||||
|  |         for order in self: | ||||
|  |             order_lines = order.contract_line_ids | ||||
|  |             order.amount_total = sum(order_lines.mapped('sub_total')) | ||||
|  | 
 | ||||
|  |     @api.depends('partner_id') | ||||
|  |     def _compute_invoice_count(self): | ||||
|  |         """ Compute the count of invoices generated """ | ||||
|  |         self.invoice_count = self.env['account.move'].search_count([ | ||||
|  |             ('contract_origin', '=', self.id) | ||||
|  |         ]) | ||||
|  | 
 | ||||
|  |     @api.depends('invoices_active') | ||||
|  |     def _compute_invoice_active(self): | ||||
|  |         """ Check invoice count to display the invoice smart button """ | ||||
|  |         invoice_count = self.env['account.move'].search_count([ | ||||
|  |             ('contract_origin', '=', self.id) | ||||
|  |         ]) | ||||
|  |         if invoice_count != 0: | ||||
|  |             self.invoices_active = True | ||||
|  |         else: | ||||
|  |             self.invoices_active = False | ||||
|  | 
 | ||||
|  |     @api.depends('date_start', 'recurring_invoice', 'recurring_period', | ||||
|  |                  'recurring_period_interval') | ||||
|  |     def _compute_next_invoice_date(self): | ||||
|  |         """ Compute next invoice date of contract """ | ||||
|  |         self.next_invoice_date = fields.Date.today() | ||||
|  |         start_date = self.date_start | ||||
|  |         interval = self.recurring_invoice | ||||
|  |         recurring_period = self.recurring_period | ||||
|  |         recurring_period_interval = self.recurring_period_interval | ||||
|  |         self.next_invoice_date = date_utils.add(start_date, | ||||
|  |                                                 days=int(interval)) | ||||
|  |         if recurring_period_interval == 'Days': | ||||
|  |             next_schedule = date_utils.add(start_date, | ||||
|  |                                            days=int(recurring_period)) | ||||
|  |             self.date_end = next_schedule | ||||
|  |         elif recurring_period_interval == 'Weeks': | ||||
|  |             next_schedule = date_utils.add(start_date, | ||||
|  |                                            weeks=int(recurring_period)) | ||||
|  |             self.date_end = next_schedule | ||||
|  |         elif recurring_period_interval == 'Months': | ||||
|  |             next_schedule = date_utils.add(start_date, | ||||
|  |                                            months=int(recurring_period)) | ||||
|  |             self.date_end = next_schedule | ||||
|  |         else: | ||||
|  |             next_schedule = date_utils.add(start_date, | ||||
|  |                                            years=int(recurring_period)) | ||||
|  |             self.date_end = next_schedule | ||||
|  | 
 | ||||
|  |     @api.model | ||||
|  |     def subscription_contract_state_change(self): | ||||
|  |         """ Automatic state change and create invoice """ | ||||
|  |         records = self.env['subscription.contracts'].search([]) | ||||
|  |         for rec in records: | ||||
|  |             end_date = rec.date_end | ||||
|  |             expiry_reminder = rec.contract_reminder | ||||
|  |             expiry_warning_date = date_utils.subtract(end_date, | ||||
|  |                                                       days=int( | ||||
|  |                                                           expiry_reminder)) | ||||
|  |             current_date = fields.Date.today() | ||||
|  |             next_invoice_date = rec.next_invoice_date | ||||
|  |             if expiry_warning_date <= current_date <= end_date: | ||||
|  |                 rec.write({'state': 'Expire Soon'}) | ||||
|  |             if end_date < current_date: | ||||
|  |                 rec.write({'state': 'Expired'}) | ||||
|  |             if next_invoice_date == current_date and rec.state != 'Cancelled': | ||||
|  |                 data = rec.env['account.move'].create([ | ||||
|  |                     { | ||||
|  |                         'move_type': 'out_invoice', | ||||
|  |                         'partner_id': rec.partner_id.id, | ||||
|  |                         'invoice_date': fields.date.today(), | ||||
|  |                         'contract_origin': rec.id, | ||||
|  |                     }]) | ||||
|  |                 for line in rec.contract_line_ids: | ||||
|  |                     data.write({ | ||||
|  |                         'invoice_line_ids': [(0, 0, { | ||||
|  |                             'product_id': line.product_id.id, | ||||
|  |                             'name': line.description, | ||||
|  |                             'quantity': line.qty_ordered, | ||||
|  |                             'price_unit': line.price_unit, | ||||
|  |                             'tax_ids': line.tax_ids, | ||||
|  |                             'discount': line.discount, | ||||
|  |                         })], | ||||
|  |                     }) | ||||
|  |                 rec.invoice_count = rec.env['account.move'].search_count([ | ||||
|  |                     ('contract_origin', '=', rec.id)]) | ||||
|  | 
 | ||||
|  |     @api.depends('current_reference') | ||||
|  |     def _compute_sale_order_lines(self): | ||||
|  |         """ Get sale order line of contract lines """ | ||||
|  |         self.current_reference = self.id | ||||
|  |         product_id = self.contract_line_ids.mapped('product_id') | ||||
|  |         sale_order_line = self.env['sale.order.line'].search([ | ||||
|  |             ('order_partner_id', '=', self.partner_id.id) | ||||
|  |         ]) | ||||
|  |         for rec in sale_order_line: | ||||
|  |             if self.date_start <= datetime.datetime.date( | ||||
|  |                     rec.create_date) <= self.date_end: | ||||
|  |                 if rec.product_id in product_id: | ||||
|  |                     rec.contract_id = self.id | ||||
| @ -0,0 +1,14 @@ | |||||
|  | <?xml version="1.0" encoding="utf-8"?> | ||||
|  | <odoo> | ||||
|  |     <!-- Subscription contracts report action --> | ||||
|  |     <record id="action_report_subscription_contracts" model="ir.actions.report"> | ||||
|  |         <field name="name">Subscription Contract Report</field> | ||||
|  |         <field name="model">subscription.contracts</field> | ||||
|  |         <field name="report_type">qweb-pdf</field> | ||||
|  |         <field name="report_name">sales_contract_and_recurring_invoices.report_subscription_contracts</field> | ||||
|  |         <field name="report_file">sales_contract_and_recurring_invoices.report_subscription_contracts</field> | ||||
|  |         <field name="print_report_name">'Subscription Contracts Report - %s' % | ||||
|  |             (object.name) | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,186 @@ | |||||
|  | <?xml version="1.0" encoding="UTF-8" ?> | ||||
|  | <odoo> | ||||
|  |     <!-- Template for Subscription contracts report --> | ||||
|  |     <template id="report_subscription_contracts" name="Subscription contracts details"> | ||||
|  |         <t t-call="website.layout"> | ||||
|  |             <div class="container"> | ||||
|  |                 <t t-call="web.external_layout"> | ||||
|  |                     <div class="page"> | ||||
|  |                         <h2> | ||||
|  |                             <t t-esc='records.name'/> | ||||
|  |                         </h2> | ||||
|  |                     </div> | ||||
|  |                     <table class="table table-striped"> | ||||
|  |                         <tr> | ||||
|  |                             <th>Customer:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.partner_id.name"> | ||||
|  |                                     <t t-esc="records.partner_id.name"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                             <th>Reference:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.reference"> | ||||
|  |                                     <t t-esc="records.reference"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                         </tr> | ||||
|  |                         <tr> | ||||
|  |                             <th>Recurring Period:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.recurring_period"> | ||||
|  |                                     <t t-esc="records.recurring_period"/> | ||||
|  |                                     <t t-esc="records.recurring_period_interval"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                             <th>Company:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.company_id"> | ||||
|  |                                     <t t-esc="records.company_id.name"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                         </tr> | ||||
|  |                         <tr> | ||||
|  |                             <th>Start Date:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.date_start"> | ||||
|  |                                     <t t-esc="records.date_start"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                             <th>End Date:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.date_end"> | ||||
|  |                                     <t t-esc="records.date_end"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                         </tr> | ||||
|  |                         <tr> | ||||
|  |                             <th>Stage:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.state"> | ||||
|  |                                     <t t-esc="records.state"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                             <th>Date of Next Invoice:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.next_invoice_date"> | ||||
|  |                                     <t t-esc="records.next_invoice_date"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                         </tr> | ||||
|  |                     </table> | ||||
|  |                     <H2>Contract Lines</H2> | ||||
|  |                     <table class="table table-bordered"> | ||||
|  |                         <thead> | ||||
|  |                             <tr> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Product</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Description</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Ordered Qty</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Unit Price</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Discount (%)</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Subtotal</th> | ||||
|  |                                 </h2> | ||||
|  |                             </tr> | ||||
|  |                         </thead> | ||||
|  |                         <tbody> | ||||
|  |                             <t t-foreach="records.contract_line_ids" | ||||
|  |                                t-as='res'> | ||||
|  |                                 <tr> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="res.product_id.name"/> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="res.description"/> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="res.qty_ordered"/> | ||||
|  |                                         <t t-esc='res.product_uom_id.name'/> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="res.price_unit" | ||||
|  |                                            t-options="{'widget': 'monetary', 'display_currency': res.currency_id}"/> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-if="res.discount"> | ||||
|  |                                             <t t-esc="res.discount"/> | ||||
|  |                                         </t> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="res.sub_total" | ||||
|  |                                            t-options="{'widget': 'monetary', 'display_currency': res.currency_id}"/> | ||||
|  |                                     </td> | ||||
|  |                                 </tr> | ||||
|  |                             </t> | ||||
|  |                         </tbody> | ||||
|  |                     </table> | ||||
|  |                     <H2>Sale Order Lines</H2> | ||||
|  |                     <table class="table table-bordered"> | ||||
|  |                         <thead> | ||||
|  |                             <tr> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Product</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Description</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Ordered Qty</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Unit Price</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Discount (%)</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Subtotal</th> | ||||
|  |                                 </h2> | ||||
|  |                             </tr> | ||||
|  |                         </thead> | ||||
|  |                         <tbody> | ||||
|  |                             <t t-foreach="records.sale_order_line_ids" | ||||
|  |                                t-as='rec'> | ||||
|  |                                 <tr> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="rec.product_id.name"/> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="rec.name"/> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="rec.product_uom_qty"/> | ||||
|  |                                         <t t-esc='rec.product_uom.name'/> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="rec.price_unit" | ||||
|  |                                            t-options="{'widget': 'monetary', 'display_currency': rec.currency_id}"/> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-if="rec.discount"> | ||||
|  |                                             <t t-esc="rec.discount"/> | ||||
|  |                                         </t> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="rec.price_subtotal" | ||||
|  |                                            t-options="{'widget': 'monetary', 'display_currency': rec.currency_id}"/> | ||||
|  |                                     </td> | ||||
|  |                                 </tr> | ||||
|  |                             </t> | ||||
|  |                         </tbody> | ||||
|  |                     </table> | ||||
|  |                 </t> | ||||
|  |             </div> | ||||
|  |         </t> | ||||
|  |     </template> | ||||
|  | </odoo> | ||||
| 
 | 
| @ -0,0 +1,11 @@ | |||||
|  | <?xml version="1.0" encoding="UTF-8" ?> | ||||
|  | <odoo> | ||||
|  |     <!-- Record rules --> | ||||
|  |     <data noupdate="1"> | ||||
|  |         <record id="subscription_contract_company_rule" model="ir.rule"> | ||||
|  |             <field name="name">Subscription Contract Company Rule</field> | ||||
|  |             <field ref="model_subscription_contracts" name="model_id"/> | ||||
|  |             <field name="domain_force">[('company_id', '=', company_id)]</field> | ||||
|  |         </record> | ||||
|  |     </data> | ||||
|  | </odoo> | ||||
| After Width: | Height: | Size: 36 KiB | 
| 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.1 KiB | 
| After Width: | Height: | Size: 1.2 KiB | 
| After Width: | Height: | Size: 673 B | 
| After Width: | Height: | Size: 11 KiB | 
| 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: 80 KiB | 
| After Width: | Height: | Size: 3.2 KiB | 
| After Width: | Height: | Size: 565 B | 
| After Width: | Height: | Size: 26 KiB | 
| After Width: | Height: | Size: 43 KiB | 
| After Width: | Height: | Size: 1.4 KiB | 
| After Width: | Height: | Size: 4.0 KiB | 
| After Width: | Height: | Size: 38 KiB | 
| After Width: | Height: | Size: 4.3 KiB | 
| After Width: | Height: | Size: 46 KiB | 
| After Width: | Height: | Size: 49 KiB | 
| After Width: | Height: | Size: 45 KiB | 
| After Width: | Height: | Size: 50 KiB | 
| After Width: | Height: | Size: 51 KiB | 
| After Width: | Height: | Size: 48 KiB | 
| After Width: | Height: | Size: 211 KiB | 
| After Width: | Height: | Size: 142 KiB | 
| After Width: | Height: | Size: 149 KiB | 
| After Width: | Height: | Size: 151 KiB | 
| After Width: | Height: | Size: 141 KiB | 
| After Width: | Height: | Size: 113 KiB | 
| After Width: | Height: | Size: 111 KiB | 
| After Width: | Height: | Size: 110 KiB | 
| After Width: | Height: | Size: 116 KiB | 
| After Width: | Height: | Size: 136 KiB | 
| After Width: | Height: | Size: 121 KiB | 
| After Width: | Height: | Size: 132 KiB | 
| After Width: | Height: | Size: 136 KiB | 
| After Width: | Height: | Size: 136 KiB | 
| After Width: | Height: | Size: 134 KiB | 
| After Width: | Height: | Size: 135 KiB | 
| After Width: | Height: | Size: 48 KiB | 
| After Width: | Height: | Size: 138 KiB | 
| After Width: | Height: | Size: 638 KiB | 
| After Width: | Height: | Size: 50 KiB | 
| After Width: | Height: | Size: 11 KiB | 
| @ -0,0 +1,733 @@ | |||||
|  | <!DOCTYPE html> | ||||
|  | <html lang="en"> | ||||
|  | <head> | ||||
|  |     <meta charset="UTF-8"> | ||||
|  |     <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||||
|  |     <title>Odoo App 3 Index</title> | ||||
|  |     <!-- Bootstrap CSS --> | ||||
|  |     <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/css/bootstrap.min.css" | ||||
|  |         integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous"> | ||||
|  |     <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css"> | ||||
|  |     <link rel="preconnect" href="https://fonts.googleapis.com"> | ||||
|  |     <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin> | ||||
|  |     <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap" rel="stylesheet"> | ||||
|  | </head> | ||||
|  | <body> | ||||
|  |     <section> | ||||
|  |         <div class="container" style="font-family: 'Inter', sans-serif !important;background-color: #fff !important;"> | ||||
|  |             <div class="row"> | ||||
|  |                 <div class="col-sm-12 col-md-12 col-lg-12 d-flex justify-content-between flex-wrap align-items-sm-center" | ||||
|  |                     style="border-bottom:1px solid rgba(0, 0, 0, 0.22)"> | ||||
|  |                     <div class="my-3"> | ||||
|  |                         <img src="assets/misc/Cybrosys R.png" style="width:auto !important; height:40px !important"> | ||||
|  |                     </div> | ||||
|  |                     <div class="my-3 d-flex align-items-center"> | ||||
|  |                         <div class="text-center" | ||||
|  |                             style="background-color:#017E84 !important;font-size: 0.8rem !important; color:#fff !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> | ||||
|  |                             Community | ||||
|  |                         </div> | ||||
|  |                         <div class="text-center" | ||||
|  |                             style="background-color:#875A7B !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important;min-width: 120px !important;"> | ||||
|  |                             Enterprise | ||||
|  |                         </div> | ||||
|  |                         <div class="text-center" | ||||
|  |                             style="background-color:#7C7BAD !important; color:#fff !important;font-size: 0.8rem !important; font-weight:500 !important; padding:4px !important; margin:0 3px !important; border-radius:50px !important; min-width: 120px !important;"> | ||||
|  |                             Odoo.sh | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |             <div class="row"> | ||||
|  |                 <div class="col-sm-12 col-md-12 col-lg-12 text-center d-flex align-items-center flex-column" | ||||
|  |                     style="margin: 80px 0px !important;"> | ||||
|  |                     <h1 style="font-size: 2.8rem;font-weight: 700; color:  | ||||
|  |                     #1A202C;"> | ||||
|  |                         Sales Contract and Recurring Invoices</h1> | ||||
|  |                     <p class="my-3 mb-4" | ||||
|  |                         style="max-width: 80%; font-weight: 400 !important; line-height: 32px; color: #718096;"> | ||||
|  |                        Create Sale Contracts and Recurring Invoices. | ||||
|  |                     </p> | ||||
|  |                     <div style="width: 80%; margin-top: 3rem;"> | ||||
|  |                         <img src="assets/screenshots/hero.gif" class="img-responsive" width="100%" height="auto"> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |             <div class="container mt-5 mb-5"> | ||||
|  |                 <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> | ||||
|  |                     <p class="m-0" style="font-weight: 600; font-size: 24px; color:#714b67 !important">Key Highlights | ||||
|  |                     </p> | ||||
|  |                 </div> | ||||
|  |                 <div class="row py-4"> | ||||
|  |                     <div class="col-md-6 col-sm-12 p-3"> | ||||
|  |                         <div class="d-flex   h-100" style="padding: 30px;border-radius: 12px; | ||||
|  |                                     background: #FFF; | ||||
|  |                                     box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> | ||||
|  |                             <div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; | ||||
|  |                                     display: flex; justify-content: center; align-items: center; | ||||
|  |                                     margin-right: 10px; flex-shrink: 0;"> | ||||
|  |                                 <i class="fa-solid fa-star  " style="color: #fff;font-size:14px;"></i> | ||||
|  |                             </div> | ||||
|  |                             <div> | ||||
|  |                                 <p style="color: #1A202C;font-weight: 600;  | ||||
|  |                                       font-size: 1.2rem; margin-bottom: 2px;">Access Contracts from Customer Portal.</p> | ||||
|  |                                 <p class="m-0" style="color:#718096">Enables Customers to Access Sales Contracts from Customer Portal. | ||||
|  |                                 </p> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-6 col-sm-12 p-3"> | ||||
|  |                         <div class="d-flex   h-100" style="padding: 30px;border-radius: 12px; | ||||
|  |                                     background: #FFF; | ||||
|  |                                     box-shadow: 1px 2px 3px 0px rgba(0, 0, 0, 0.25); "> | ||||
|  |                             <div style="width: 36px; height: 36px; border-radius: 50%; background: #714B67; | ||||
|  |                                     display: flex; justify-content: center; align-items: center; | ||||
|  |                                     margin-right: 10px; flex-shrink: 0;"> | ||||
|  |                                 <i class="fa-solid fa-star  " style="color: #fff;font-size:14px;"></i> | ||||
|  |                             </div> | ||||
|  |                             <div> | ||||
|  |                                 <p style="color: #1A202C;font-weight: 600;  | ||||
|  |                                       font-size: 1.2rem; margin-bottom: 2px;">Recurring Invoices for Contracts.</p> | ||||
|  |                                 <p class="m-0" style="color:#718096">Automatically Generates Recurring Invoices for Subscription Contracts. | ||||
|  |                                 </p> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |             <div class="container rounded" > | ||||
|  |                 <ul class="nav nav-tabs d-flex" style="width: fit-content;margin: 0 auto;gap: 1rem;"> | ||||
|  |                     <li class="col text-center py-2 text-nowrap " | ||||
|  |                         style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a | ||||
|  |                             class="active show" data-toggle="tab" href="#tab1" | ||||
|  |                             style="color: #fff;font-weight: 500; background-color: #714B67; text-decoration: none;"> | ||||
|  |                             <i class="fa-regular fa-image  pr-2" style="color: #fff;"></i> | ||||
|  |                             Screenshots</a></li> | ||||
|  |                     <li class="col text-center py-2 text-nowrap " | ||||
|  |                         style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a | ||||
|  |                             data-toggle="tab" href="#tab2" | ||||
|  |                             style="color: #fff;font-weight: 500;  text-decoration: none;"><i | ||||
|  |                                 class="fa-solid fa-star  pr-2" style="color: #fff;"></i>Features</a></li> | ||||
|  |                     <li class="col text-center py-2 text-nowrap " | ||||
|  |                         style="color: #fff; background-color: #714B67;border-radius: 6px 6px 0px 0px;"><a | ||||
|  |                             data-toggle="tab" href="#tab3" | ||||
|  |                             style="color: #fff;font-weight: 500; text-decoration: none; background-color: #714B67;"><i | ||||
|  |                                 class="fa-solid fa-book-open  pr-2" style="color: #fff;"></i>Released Notes</a></li> | ||||
|  |                 </ul> | ||||
|  |                 <div class="tab-content" style="background-color: rgba(121, 113, 119, 0.04);"> | ||||
|  |                     <div id="tab1" class="tab-pane fade in active show"> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/1.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" | ||||
|  |                                         style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                        To Create New Contracts go to Sales -> Configuration -> Contracts.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/2.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" | ||||
|  |                                         style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                         Confirm the Contract by Clicking the 'Confirm' Button and add Contract Lines.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/3.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" | ||||
|  |                                         style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                         Now the State of the Contract has been moved from 'New' into 'Ongoing'.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/4.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" | ||||
|  |                                         style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                         Invoices can be Generated by Clicking the 'Generate Invoice' Button and the Count of | ||||
|  |                                         Generated Invoices will be Visible in the Smart tab.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/5.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" | ||||
|  |                                         style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                         Able to Lock the Contract by Clicking 'Lock' Button, so Further Modifications will not Possible.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/6.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" | ||||
|  |                                         style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                         To Reset the Contract and Modify, Click Unlock Button.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/7.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" | ||||
|  |                                         style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                         When the Next Invoice Date of the Contract Reaches the Current Date, the Invoice will be | ||||
|  |                                         Automatically Generated.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/8.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" | ||||
|  |                                         style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                         All the Created Invoices can be Accessed from Invoices Smart tab.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/9.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" | ||||
|  |                                         style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                         When the Contract Reaches the Contract Expiration Reminder Period, it's State Automatically Changes to 'Expire Soon'.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/10.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" | ||||
|  |                                         style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                         When the Contract Reaches the Contract End Date, it's State Automatically Changes to 'Expired'.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/11.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" | ||||
|  |                                         style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                         Contract can be Cancelled by Clicking 'Cancel' Button.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/12.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">State is Moved into 'Cancelled'.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/18.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">Sale Orders Created for the Partner in Contract for the Corresponding Contract Lines are | ||||
|  |                                         Visible Under Sale Order Lines tab.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/13.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">Access Contracts from Customer Portal.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/14.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">Portal User's Contracts will Display here.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/15.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important">Clicking on Contract Name will Open the Contract.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/16.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                         Contract Report can be Downloaded from Portal by Clicking this 'Report' Button.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                         <div class="col-lg-12 py-2" style="padding: 1rem 4rem !important;"> | ||||
|  |                             <div | ||||
|  |                                 style="border: 1px solid #d8d6d6; border-radius: 4px;  background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="row justify-content-center p-3 w-100 m-0"> | ||||
|  |                                     <img src="assets/screenshots/17.png" class="img-responsive" width="100%" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                                 <div class="px-3"> | ||||
|  |                                     <h4 class="mt-2" style=" font-weight:600 !important; color:#282F33 !important; font-size:1.3rem !important"> | ||||
|  |                                         Downloaded pdf Report of Contract.</h4> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div id="tab2" class="tab-pane fade"> | ||||
|  |                         <div class="col-mg-12" style="padding: 1rem 4rem;"> | ||||
|  |                             <ul style="list-style: none; padding: 1rem 0;font-weight: 500;"> | ||||
|  |                                 <li class="py-3" | ||||
|  |                                     style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                     <span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" | ||||
|  |                                             width="16px"></span>Access Sale Contracts from Portal. | ||||
|  |                                 </li> | ||||
|  |                                 <li class="py-3" | ||||
|  |                                     style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                     <span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" | ||||
|  |                                             width="16px"></span>Download the Contract Subscription Report. | ||||
|  |                                 </li> | ||||
|  |                                 <li class="py-3" | ||||
|  |                                     style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                     <span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" | ||||
|  |                                             width="16px"></span>Automatically Generate Recurring Invoices. | ||||
|  |                                 </li> | ||||
|  |                                 <li class="py-3" | ||||
|  |                                     style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; margin-bottom: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                     <span style="margin-right: 12px;"><img src="assets/misc/star (1) 2.svg" alt="" | ||||
|  |                                             width="16px"></span>Automatically Changes the State of Invoices based on Contract Period. | ||||
|  |                                 </li> | ||||
|  |                             </ul> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div id="tab3" class="tab-pane fade"> | ||||
|  |                         <div class="col-mg-12 active" style="padding: 1rem 4rem;"> | ||||
|  |                             <div class="py-3" | ||||
|  |                                 style="font-weight: 500;background-color: #fff; border-radius: 4px; padding: 1rem; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);"> | ||||
|  |                                 <div class="d-flex mb-3" style="font-size: 0.8rem; font-weight: 500;"><span>Version | ||||
|  |                                         17.0.1.0.0</span><span class="px-2">|</span><span | ||||
|  |                                         style="color: #714B67;font-weight: 600;">Released on:26th April 2024</span> | ||||
|  |                                 </div> | ||||
|  |                                 <p class="m-0" | ||||
|  |                                     style=" color:#718096!important; font-size:1rem !important;line-height: 28px;"> | ||||
|  |                                     Initial Commit for Sales Contract and Recurring Invoices.</p> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |             <div class="container mt-5"> | ||||
|  |                 <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> | ||||
|  |                     <p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Related Products</p> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |             <div id="myCarousel" class="carousel slide py-3" data-ride="carousel"> | ||||
|  |                 <div class="carousel-inner"> | ||||
|  |                     <div class="carousel-item active"> | ||||
|  |                         <div class="row p-4"> | ||||
|  |                             <div class="col"> | ||||
|  |                                 <div class="p-3"> | ||||
|  |                                     <a href="https://apps.odoo.com/apps/modules/17.0/sale_discount_total/" style="color: #000; text-decoration: none;"> | ||||
|  |                                         <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | ||||
|  |                                             <div style="width: 300px; "> | ||||
|  |                                                 <img src="assets/modules/sale_discount_total.png" alt="" width="100%" height="auto"> | ||||
|  |                                             </div> | ||||
|  |                                             <p class="text-center pt-2 text-black font-weight-bold">Sale Discount on Total Amount</p> | ||||
|  |                                         </div> | ||||
|  |                                     </a> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <div class="col"> | ||||
|  |                                 <div class="p-3"> | ||||
|  |                                     <a href="https://apps.odoo.com/apps/modules/17.0/sale_product_image/" style="color: #000; text-decoration: none;"> | ||||
|  |                                         <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | ||||
|  |                                             <div style="width: 300px; "> | ||||
|  |                                                 <img src="assets/modules/sale_product_image.png" alt="" width="100%" height="auto"> | ||||
|  |                                             </div> | ||||
|  |                                             <p class="text-center pt-2 text-black font-weight-bold">Sale Order Line Images</p> | ||||
|  |                                         </div> | ||||
|  |                                     </a> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <div class="col"> | ||||
|  |                                 <div class="p-3"> | ||||
|  |                                     <a href="https://apps.odoo.com/apps/modules/17.0/sale_purchase_automated/" style="color: #000; text-decoration: none;"> | ||||
|  |                                         <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | ||||
|  |                                             <div style="width: 300px; "> | ||||
|  |                                                 <img src="assets/modules/sale_purchase_automated.png" alt="" width="100%" height="auto"> | ||||
|  |                                             </div> | ||||
|  |                                             <p class="text-center pt-2 text-black font-weight-bold">Automate Sale And Purchase Orders</p> | ||||
|  |                                         </div> | ||||
|  |                                     </a> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="carousel-item"> | ||||
|  |                         <div class="row p-4"> | ||||
|  |                             <div class="col"> | ||||
|  |                                 <div class="p-3"> | ||||
|  |                                     <a href="https://apps.odoo.com/apps/modules/17.0/subscription_package/" style="color: #000; text-decoration: none;"> | ||||
|  |                                         <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | ||||
|  |                                             <div style="width: 300px; "> | ||||
|  |                                                 <img src="assets/modules/subscription_package.png" alt="" width="100%" height="auto"> | ||||
|  |                                             </div> | ||||
|  |                                             <p class="text-center pt-2 text-black font-weight-bold">Subscription Management</p> | ||||
|  |                                         </div> | ||||
|  |                                     </a> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <div class="col"> | ||||
|  |                                 <div class="p-3"> | ||||
|  |                                     <a href="https://apps.odoo.com/apps/modules/17.0/dynamic_product_fields/" style="color: #000; text-decoration: none;"> | ||||
|  |                                         <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | ||||
|  |                                             <div style="width: 300px;"> | ||||
|  |                                                 <img src="assets/modules/dynamic_product_fields.png" alt="" width="100%" height="auto"> | ||||
|  |                                             </div> | ||||
|  |                                             <p class="text-center pt-2 text-black font-weight-bold">Product Custom Fields</p> | ||||
|  |                                         </div> | ||||
|  |                                     </a> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <div class="col"> | ||||
|  |                                 <div class="p-3"> | ||||
|  |                                     <a href="https://apps.odoo.com/apps/modules/17.0/sale_purchase_previous_product_cost/" style="color: #000; text-decoration: none;"> | ||||
|  |                                         <div style="border:1px solid #CBCBCB !important;border-radius: 4px;"> | ||||
|  |                                             <div style="width: 300px;"> | ||||
|  |                                                 <img src="assets/modules/sale_purchase_previous_product_cost.png" alt="" width="100%" height="auto"> | ||||
|  |                                             </div> | ||||
|  |                                             <p class="text-center pt-2 text-black font-weight-bold">Previous Sale/Purchase Product Rates</p> | ||||
|  |                                         </div> | ||||
|  |                                     </a> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |                 <a class="carousel-control-prev" href="#myCarousel" 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="#myCarousel" 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 class="container mt-5"> | ||||
|  |                 <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> | ||||
|  |                     <p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Our Services</p> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |             <div class="container my-5"> | ||||
|  |                 <div class="row py-3"> | ||||
|  |                     <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                         <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | ||||
|  |                             <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                                 <div style="background-color:#13EA36 ; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                     <img src="assets/icons/cogs.png" alt="service-icon" width="38px" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <p style="margin-top: 20px; font-weight: bold;">Odoo Customization</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                         <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | ||||
|  |                             <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                                 <div style="background-color:#DBC711; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                     <img src="assets/icons/wrench.png" alt="service-icon" width="38px" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <p style="margin-top: 20px; font-weight: bold;">Odoo Implementation</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                         <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> | ||||
|  |                             <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                                 <div style="background-color:#FF6B6B ; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                     <img src="assets/icons/lifebuoy.png" alt="service-icon" width="38px" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <p style="margin-top: 20px; font-weight: bold;">Odoo Support</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                         <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> | ||||
|  |                             <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                                 <div style="background-color:#FFA801 ; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                     <img src="assets/icons/user.png" alt="service-icon" width="38px" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <p style="margin-top: 20px; font-weight: bold;">Hire Odoo Developer</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                         <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative; border-radius: 4px;"> | ||||
|  |                             <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                                 <div style="background-color:#54A0FF; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                     <img src="assets/icons/puzzle.png" alt="service-icon" width="38px" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <p style="margin-top: 20px; font-weight: bold;">Odoo Integration</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                         <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | ||||
|  |                             <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                                 <div style="background-color:#6D7680 ; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                     <img src="assets/icons/update.png" alt="service-icon" width="38px" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <p style="margin-top: 20px; font-weight: bold;">Odoo Migration</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                         <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | ||||
|  |                             <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                                 <div style="background-color:#786FA6 ; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                     <img src="assets/icons/consultation.png" alt="service-icon" width="38px" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <p style="margin-top: 20px; font-weight: bold;">Odoo Consultancy</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                         <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center; box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;position: relative;border-radius: 4px;"> | ||||
|  |                             <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                                 <div style="background-color:#F8A5C2 ; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                     <img src="assets/icons/training.png" alt="service-icon" width="38px" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <p style="margin-top: 20px; font-weight: bold;">Odoo Implementation</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-4 col-sm-6 px-4 py-4"> | ||||
|  |                         <div | ||||
|  |                             style="background-color: #fff; padding: 25px; text-align: center;  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px; position: relative;border-radius: 4px;"> | ||||
|  |                             <div style="position: absolute; top: 0%; left: 50%; transform: translate(-50%, -50%);"> | ||||
|  |                                 <div style="background-color:#E6BE26; border-radius: 50%; padding: 15px;    width: 68px; | ||||
|  |                                     height: 68px; display: inline-block; box-shadow:0px 4px 4px rgba(0, 0, 0, 0.25);"> | ||||
|  |                                     <img src="assets/icons/license.png" alt="service-icon" width="38px" height="auto"> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                             <p style="margin-top: 20px; font-weight: bold;">Odoo Licensing Consultancy</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |             <div class="container mt-5"> | ||||
|  |                 <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-4"> | ||||
|  |                     <p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Our Industries</p> | ||||
|  | 
 | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |             <div class="container"> | ||||
|  |                 <div class="row my-5 py-4"> | ||||
|  |                     <div class="col-md-3 col-sm-6 p-0"> | ||||
|  |                         <div class="d-flex flex-column h-100 " | ||||
|  |                             style="border-right: 1px solid rgb(209, 209, 209); border-bottom: 1px solid  rgb(209, 209, 209); padding: 30px; box-shadow: 6px 0 10px rgba(228, 227, 227, 0.373);"> | ||||
|  |                             <img src="assets/icons/trading-black.png" width="42px" height="auto" alt=""> | ||||
|  |                             <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                            font-size: 1.2rem; margin-bottom: 2px;">Trading</p> | ||||
|  |                             <p>Easily procure and sell your products</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-3 col-sm-6  p-0"> | ||||
|  |                         <div class="d-flex flex-column h-100" | ||||
|  |                             style="border-right: 1px solid rgb(209, 209, 209);border-bottom: 1px solid  rgb(209, 209, 209); padding: 30px;"> | ||||
|  |                             <img src="assets/icons/pos-black.png" width="42px" height="auto" alt=""> | ||||
|  |                             <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;">POS</p> | ||||
|  |                             <p>Easy configuration and convivial experience</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-3 col-sm-6  p-0"> | ||||
|  |                         <div class="d-flex flex-column h-100" | ||||
|  |                             style="border-right: 1px solid  rgb(209, 209, 209);border-bottom: 1px solid   rgba(0, 0, 0, 0.2); padding: 30px; box-shadow: 0 5px 10px  rgba(228, 227, 227, 0.373)"> | ||||
|  |                             <img src="assets/icons/education-black.png" width="42px" height="auto" alt=""> | ||||
|  |                             <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;">Education</p> | ||||
|  |                             <p>A platform for educational management</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-3 col-sm-6  p-0"> | ||||
|  |                         <div class="d-flex flex-column h-100" | ||||
|  |                             style="border-bottom: 1px solid  rgb(209, 209, 209); padding: 30px; "> | ||||
|  |                             <img src="assets/icons/manufacturing-black.png" width="42px" height="auto" alt=""> | ||||
|  |                             <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;">Manufacturing</p> | ||||
|  |                             <p>Plan, track and schedule your operations</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-3 col-sm-6 p-0"> | ||||
|  |                         <div class="d-flex flex-column h-100" | ||||
|  |                             style="border-right: 1px solid  rgb(209, 209, 209); padding: 30px;"> | ||||
|  |                             <img src="assets/icons/ecom-black.png" width="42px" height="auto" alt=""> | ||||
|  |                             <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;">E-commerce & Website</p> | ||||
|  |                             <p>Mobile friendly, awe-inspiring product pages</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-3 col-sm-6   p-0"> | ||||
|  |                         <div class="d-flex flex-column h-100" | ||||
|  |                             style="border-right: 1px solid  rgb(209, 209, 209); padding: 30px;box-shadow: 0 -5px 10px  rgba(228, 227, 227, 0.373);"> | ||||
|  |                             <img src="assets/icons/service-black.png" width="42px" height="auto" alt=""> | ||||
|  |                             <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;">Service Management</p> | ||||
|  |                             <p>Keep track of services and invoice</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-3 col-sm-6    p-0"> | ||||
|  |                         <div class="d-flex flex-column h-100" | ||||
|  |                             style="border-right: 1px solid  rgb(209, 209, 209); padding: 30px; "> | ||||
|  |                             <img src="assets/icons/restaurant-black.png" width="42px" height="auto" alt=""> | ||||
|  |                             <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;">Restaurant</p> | ||||
|  |                             <p>Run your bar or restaurant methodically</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-3 col-sm-6   p-0"> | ||||
|  |                         <div class="d-flex flex-column h-100" | ||||
|  |                             style=" padding: 30px;box-shadow: -5px 0 10px  rgba(228, 227, 227, 0.373);"> | ||||
|  |                             <img src="assets/icons/hotel-black.png" width="42px" height="auto" alt=""> | ||||
|  |                             <p style="color: #714B67;font-weight: 600; margin-top: 10px; | ||||
|  |                             font-size: 1.2rem; margin-bottom: 2px;">Hotel Management</p> | ||||
|  |                             <p>An all-inclusive hotel management application</p> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |             <div class="container mt-5"> | ||||
|  |                 <div class="col-lg-12 d-flex flex-column justify-content-center align-items-center mt-5"> | ||||
|  |                     <p class="m-0" style="font-weight: 600; font-size: 24px; color:#000 !important">Support</p> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |             <div class="container my-5"> | ||||
|  |                 <div class="row" style="background-color: #FFFAFE;"> | ||||
|  |                     <div class="col-md-6 pb-4  d-flex align-items-center justify-content-center" | ||||
|  |                         style="border-right: 1px solid #D9D9D9;"> | ||||
|  |                         <div style="padding: 30px;"> | ||||
|  |                             <div class="d-flex align-items-center"> | ||||
|  |                                 <img src="assets/misc/support (1) 1.svg" alt="" width="60px" style="margin-right: 12px;"> | ||||
|  |                                 <div style="padding: 0px 8px;"> | ||||
|  |                                     <span | ||||
|  |                                         style="color: #714B67;font-size: 24px;font-weight: 600;padding-bottom: 1rem;">Need | ||||
|  |                                         Help?</span> | ||||
|  |                                     <p class="m-0" style="color:#718096;">Got questions or need help? Get in touch.</p> | ||||
|  |                                     <div style="font-weight: 400;"><span><img src="assets/misc/support-email.svg" alt="" | ||||
|  |                                                 width="18px" | ||||
|  |                                                 style="filter: invert(1);margin-right: 0.8rem;"></span>odoo@cybrosys.com | ||||
|  |                                     </div> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                     <div class="col-md-6 pb-4 d-flex align-items-center justify-content-center"> | ||||
|  |                         <div style="padding: 30px;"> | ||||
|  |                             <div class="d-flex align-items-center"> | ||||
|  |                                 <img src="assets/misc/whatsapp 1.svg" alt="" width="60px" style="margin-right: 12px;"> | ||||
|  |                                 <div> | ||||
|  |                                     <span style="color: #714B67;font-size: 24px;font-weight: 600;">WhatsApp</span> | ||||
|  |                                     <p class="m-0" style="color:#718096;">Say hi to us on WhatsApp!</p> | ||||
|  |                                     <div style="font-weight: 400; font-size: 16px;"><span><img src="assets/misc/phone.svg" | ||||
|  |                                                 alt="" width="14px" | ||||
|  |                                                 style="filter: invert(1); margin-right: 0.8rem;"></span>+91 | ||||
|  |                                         99456767686</div> | ||||
|  |                                 </div> | ||||
|  |                             </div> | ||||
|  |                         </div> | ||||
|  |                     </div> | ||||
|  |                 </div> | ||||
|  |             </div> | ||||
|  |         </div> | ||||
|  |     </section> | ||||
|  |     <!-- Optional JavaScript --> | ||||
|  |     <!-- jQuery first, then Popper.js, then Bootstrap JS --> | ||||
|  |     <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> | ||||
|  |     <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script> | ||||
|  | </body> | ||||
|  | </html> | ||||
| @ -0,0 +1,14 @@ | |||||
|  | <?xml version="1.0" encoding="UTF-8" ?> | ||||
|  | <odoo> | ||||
|  |     <!-- Inherited form view of account move --> | ||||
|  |     <record id="view_move_form" model="ir.ui.view"> | ||||
|  |         <field name="name">account.move.view.form.inherit.sales.contract.and.recurring.invoices</field> | ||||
|  |         <field name="model">account.move</field> | ||||
|  |         <field name="inherit_id" ref="account.view_move_form"/> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <xpath expr="//field[@name='partner_id']" position="after"> | ||||
|  |                 <field name="contract_origin" invisible="1"/> | ||||
|  |             </xpath> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,196 @@ | |||||
|  | <?xml version="1.0" encoding="UTF-8" ?> | ||||
|  | <odoo> | ||||
|  |     <!-- Template for my contracts menu in portal --> | ||||
|  |     <template id="portal_my_home_contracts" name="My Contracts" | ||||
|  |               customize_show="True" inherit_id="portal.portal_my_home"> | ||||
|  |         <xpath expr="//div[hasclass('o_portal_docs')]" position="inside"> | ||||
|  |             <t t-call="portal.portal_docs_entry"> | ||||
|  |                 <t t-set="title">My Contracts</t> | ||||
|  |                 <t t-set="url" t-value="'/my/contracts'"/> | ||||
|  |                 <t t-set="placeholder_count" t-value="'contract_count'"/> | ||||
|  |             </t> | ||||
|  |         </xpath> | ||||
|  |     </template> | ||||
|  | 
 | ||||
|  |     <!-- Template for my contracts --> | ||||
|  |      <template id="tmp_contract_details" name="My Contracts"> | ||||
|  |          <t t-call="website.layout"> | ||||
|  |              <div class="oe_structure"> | ||||
|  |                  <br/> | ||||
|  |                  <center> | ||||
|  |                      <h3>My Contracts</h3> | ||||
|  |                  </center> | ||||
|  |                  <br/> | ||||
|  |                  <table class="table-striped table" style="margin-right: 180px; margin-left: 5px;"> | ||||
|  |                      <thead style="font-size: 23px;"> | ||||
|  |                         <tr> | ||||
|  |                             <h6> | ||||
|  |                                 <b> | ||||
|  |                                     <th>Contract Name</th> | ||||
|  |                                     <th>Customer Name</th> | ||||
|  |                                     <th>Start Date</th> | ||||
|  |                                     <th>End Date</th> | ||||
|  |                                     <th>Date of Next Invoice</th> | ||||
|  |                                     <th>Stage</th> | ||||
|  |                                     <th>Print</th> | ||||
|  |                                 </b> | ||||
|  |                             </h6> | ||||
|  |                         </tr> | ||||
|  |                      </thead> | ||||
|  |                      <tbody> | ||||
|  |                          <t t-foreach="records" t-as="order"> | ||||
|  |                              <tr> | ||||
|  |                                  <td> | ||||
|  |                                      <a t-attf-href='/contracts/{{order.id}}/' | ||||
|  |                                        t-esc="order.name"/> | ||||
|  |                                  </td> | ||||
|  |                                  <td> | ||||
|  |                                      <span t-esc="order.partner_id.name"/> | ||||
|  |                                  </td> | ||||
|  |                                  <td> | ||||
|  |                                      <span t-esc="order.date_start"/> | ||||
|  |                                  </td> | ||||
|  |                                  <td> | ||||
|  |                                      <span t-esc="order.date_end"/> | ||||
|  |                                  </td> | ||||
|  |                                  <td> | ||||
|  |                                      <span t-esc="order.next_invoice_date"/> | ||||
|  |                                  </td> | ||||
|  |                                  <td> | ||||
|  |                                      <span t-esc="order.state"/> | ||||
|  |                                  </td> | ||||
|  |                                  <td> | ||||
|  |                                      <a t-attf-class='btn btn-success' | ||||
|  |                                        t-attf-href='/report/pdf/{{order.id}}'> | ||||
|  |                                         Report | ||||
|  |                                      </a> | ||||
|  |                                  </td> | ||||
|  |                              </tr> | ||||
|  |                          </t> | ||||
|  |                      </tbody> | ||||
|  |                  </table> | ||||
|  |              </div> | ||||
|  |          </t> | ||||
|  |      </template> | ||||
|  | 
 | ||||
|  |     <!-- Template for Subscription contract details --> | ||||
|  |     <template id="contract_details" name="Subscription contract details"> | ||||
|  |         <t t-call="website.layout"> | ||||
|  |             <div class="container"> | ||||
|  |                 <t t-call="web.external_layout"> | ||||
|  |                     <div class="page"> | ||||
|  |                         <h2> | ||||
|  |                             <t t-esc='records.name'/> | ||||
|  |                         </h2> | ||||
|  |                     </div> | ||||
|  |                     <table class="table table-striped"> | ||||
|  |                         <tr> | ||||
|  |                             <th>Customer:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.partner_id.name"> | ||||
|  |                                     <t t-esc="records.partner_id.name"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                             <th>Reference:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.reference"> | ||||
|  |                                     <t t-esc="records.reference"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                         </tr> | ||||
|  |                         <tr> | ||||
|  |                             <th>Recurring Period:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.recurring_period"> | ||||
|  |                                     <t t-esc="records.recurring_period"/> | ||||
|  |                                     <t t-esc="records.recurring_period_interval"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                             <th>Company:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.company_id"> | ||||
|  |                                     <t t-esc="records.company_id.name"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                         </tr> | ||||
|  |                         <tr> | ||||
|  |                             <th>Start Date:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.date_start"> | ||||
|  |                                     <t t-esc="records.date_start"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                             <th>End Date:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.date_end"> | ||||
|  |                                     <t t-esc="records.date_end"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                         </tr> | ||||
|  |                         <tr> | ||||
|  |                             <th>Stage:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.state"> | ||||
|  |                                     <t t-esc="records.state"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                             <th>Date of Next Invoice:</th> | ||||
|  |                             <td> | ||||
|  |                                 <t t-if="records.next_invoice_date"> | ||||
|  |                                     <t t-esc="records.next_invoice_date"/> | ||||
|  |                                 </t> | ||||
|  |                             </td> | ||||
|  |                         </tr> | ||||
|  |                     </table> | ||||
|  |                     <h2>Contract Lines</h2> | ||||
|  |                     <table class="table table-bordered"> | ||||
|  |                         <thead> | ||||
|  |                             <tr> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Product</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Description</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Order Qty</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Unit Price</th> | ||||
|  |                                 </h2> | ||||
|  |                                 <h2> | ||||
|  |                                     <th scope="col">Subtotal</th> | ||||
|  |                                 </h2> | ||||
|  |                             </tr> | ||||
|  |                         </thead> | ||||
|  |                         <tbody> | ||||
|  |                             <t t-foreach="records.contract_line_ids" | ||||
|  |                                t-as='res'> | ||||
|  |                                 <tr> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="res.product_id.name"/> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="res.description"/> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="res.qty_ordered"/> | ||||
|  |                                         <t t-esc='res.product_uom_id.name'/> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="res.price_unit" | ||||
|  |                                            t-options="{'widget': 'monetary', 'display_currency': res.currency_id}"/> | ||||
|  |                                     </td> | ||||
|  |                                     <td> | ||||
|  |                                         <t t-esc="res.sub_total" | ||||
|  |                                            t-options="{'widget': 'monetary', 'display_currency': res.currency_id}"/> | ||||
|  |                                     </td> | ||||
|  |                                 </tr> | ||||
|  |                             </t> | ||||
|  |                         </tbody> | ||||
|  |                     </table> | ||||
|  |                 </t> | ||||
|  |             </div> | ||||
|  |         </t> | ||||
|  |     </template> | ||||
|  | </odoo> | ||||
| @ -0,0 +1,170 @@ | |||||
|  | <?xml version="1.0" encoding="UTF-8" ?> | ||||
|  | <odoo> | ||||
|  |     <!-- Action subscription contracts --> | ||||
|  |     <record id="subscription_contracts_action" model="ir.actions.act_window"> | ||||
|  |         <field name="name">Contracts</field> | ||||
|  |         <field name="type">ir.actions.act_window</field> | ||||
|  |         <field name="res_model">subscription.contracts</field> | ||||
|  |         <field name="view_mode">tree,form</field> | ||||
|  |         <field name="help" type="html"> | ||||
|  |             <p class="o_view_nocontent_smiling_face"> | ||||
|  |                 Create a new record! | ||||
|  |             </p> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |     <!-- Contracts menu --> | ||||
|  |     <menuitem id="subscription_contract_menu_action" | ||||
|  |               name="Contracts" | ||||
|  |               parent="sale.menu_sale_config" | ||||
|  |               action="subscription_contracts_action"/> | ||||
|  |     <!-- Subscription contract form view --> | ||||
|  |     <record id="subscription_contracts_view_form" model="ir.ui.view"> | ||||
|  |         <field name="name">subscription.contracts.view.form</field> | ||||
|  |         <field name="model">subscription.contracts</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <form> | ||||
|  |                 <header> | ||||
|  |                     <field name="state" widget='statusbar' | ||||
|  |                            statusbar_visible='New,Ongoing,Expire Soon,Expired'/> | ||||
|  |                     <button name="action_to_confirm" class="oe_highlight" | ||||
|  |                             string="Confirm" type="object" | ||||
|  |                             help="Confirm your Subscription Contracts" | ||||
|  |                             invisible="state != 'New'"/> | ||||
|  |                     <button name="action_generate_invoice" | ||||
|  |                             class="oe_highlight" | ||||
|  |                             string="Generate Invoice" | ||||
|  |                             type="object" | ||||
|  |                             invisible="state not in ('Ongoing','Expire Soon')"/> | ||||
|  |                             help="Generate Invoices for your Contracts"/> | ||||
|  |                     <button name="action_lock" class="oe_highlight" | ||||
|  |                             string="Lock" type="object" | ||||
|  |                             help="Lock your Subscription Contracts" | ||||
|  |                             invisible="lock or state != 'Ongoing'" | ||||
|  |                     /> | ||||
|  |                     <button name="action_to_unlock" class="oe_highlight" | ||||
|  |                             string="Unlock" type="object" | ||||
|  |                             help="Unlock your Subscription Contracts" | ||||
|  |                             invisible="not lock or state != 'Ongoing'" | ||||
|  |                     /> | ||||
|  |                     <button name="action_to_cancel" class="oe_highlight" | ||||
|  |                             string="Cancel" type="object" | ||||
|  |                             help="Cancel; your Subscription Contracts" | ||||
|  |                             invisible="state not in ('Ongoing', 'Expire Soon')" | ||||
|  |                     /> | ||||
|  |                 </header> | ||||
|  |                 <sheet> | ||||
|  |                     <div class="oe_button_box" name="button_box"  invisible="not invoices_active"> | ||||
|  |                         <button class="oe_stat_button" type="object" | ||||
|  |                                 name="action_get_invoice" | ||||
|  |                                 icon="fa-pencil-square-o" | ||||
|  |                                 invisible="state not in ('Ongoing', 'Expire Soon', 'Expired')" | ||||
|  |                                 > | ||||
|  |                             <field string="Invoices" | ||||
|  |                                    name="invoice_count" widget="statinfo" | ||||
|  |                             /> | ||||
|  |                         </button> | ||||
|  |                     </div> | ||||
|  |                     <div class="oe_title"> | ||||
|  |                         <h1> | ||||
|  |                             <field name="name" placeholder="Contracts" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                         </h1> | ||||
|  |                     </div> | ||||
|  |                     <group> | ||||
|  |                         <group> | ||||
|  |                             <field name="reference" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                             <field name="partner_id" options="{'no_create': True}" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                             <field name="recurring_period" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                             <field name="recurring_period_interval" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                             <field name="recurring_invoice" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                             <field name="next_invoice_date" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                             <field name="current_reference" invisible="1"/> | ||||
|  |                             <field name="invoices_active" invisible="1"/> | ||||
|  |                         </group> | ||||
|  |                         <group> | ||||
|  |                             <field name="contract_reminder" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                             <field name="company_id" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                             <field name="currency_id" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                             <field name="lock" invisible="1"/> | ||||
|  |                             <field name="date_start" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                             <field name="date_end" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                         </group> | ||||
|  |                     </group> | ||||
|  |                     <notebook> | ||||
|  |                         <page string="Contract Lines"> | ||||
|  |                             <field name="contract_line_ids" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                             <h2 class="oe_subtotal_footer oe_right"> | ||||
|  |                                 <group> | ||||
|  |                                     <field name="amount_total"/> | ||||
|  |                                 </group> | ||||
|  |                             </h2> | ||||
|  |                         </page> | ||||
|  |                         <page string="Sale Order Lines"> | ||||
|  |                             <field name="sale_order_line_ids" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                         </page> | ||||
|  |                         <page string="Terms and Conditions"> | ||||
|  |                             <field name="note" | ||||
|  |                                    placeholder="Terms and Conditions" | ||||
|  |                                    readonly="lock"/> | ||||
|  |                         </page> | ||||
|  |                     </notebook> | ||||
|  |                 </sheet> | ||||
|  |                 <div class="oe_chatter"> | ||||
|  |                     <field name="message_follower_ids"/> | ||||
|  |                     <field name="activity_ids"/> | ||||
|  |                     <field name="message_ids"/> | ||||
|  |                 </div> | ||||
|  |             </form> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |     <!-- Subscription contract tree view --> | ||||
|  |     <record id="subscription_contracts_view_tree" model="ir.ui.view"> | ||||
|  |         <field name="name">subscription.contracts.view.tree</field> | ||||
|  |         <field name="model">subscription.contracts</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <tree> | ||||
|  |                 <field name="name"/> | ||||
|  |                 <field name="partner_id"/> | ||||
|  |                 <field name="next_invoice_date"/> | ||||
|  |                 <field name="date_start"/> | ||||
|  |                 <field name="date_end"/> | ||||
|  |                 <field name="state" widget="badge" | ||||
|  |                        decoration-success="state == 'Ongoing'" | ||||
|  |                        decoration-warning="state =='Expire Soon'" | ||||
|  |                        decoration-info="state =='New'" | ||||
|  |                        decoration-danger="state in('Cancelled','Expired')"/> | ||||
|  |                 <field name="amount_total"/> | ||||
|  |             </tree> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  |     <!-- Contract line tree view --> | ||||
|  |     <record id="subscription_contracts_line_view_tree" model="ir.ui.view"> | ||||
|  |         <field name="name">subscription.contracts.line.view.tree</field> | ||||
|  |         <field name="model">subscription.contracts.line</field> | ||||
|  |         <field name="arch" type="xml"> | ||||
|  |             <tree editable="bottom"> | ||||
|  |                 <field name="product_id"/> | ||||
|  |                 <field name="description"/> | ||||
|  |                 <field name="qty_ordered"/> | ||||
|  |                 <field name="product_uom_id"/> | ||||
|  |                 <field name="price_unit"/> | ||||
|  |                 <field name="tax_ids"/> | ||||
|  |                 <field name="discount"/> | ||||
|  |                 <field name="sub_total"/> | ||||
|  |             </tree> | ||||
|  |         </field> | ||||
|  |     </record> | ||||
|  | </odoo> | ||||