# -*- coding: utf-8 -*- ############################################################################### # # Cybrosys Technologies Pvt. Ltd. # # Copyright (C) 2024-TODAY Cybrosys Technologies() # Author: Aysha Shalin (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 . # ############################################################################### from odoo import fields, models class Website(models.Model): """ Inheriting Website to add contact fields """ _inherit = 'website' mobile_number = fields.Char(string='Mobile Number', help="Defines the mobile number") company = fields.Boolean(string="Company Name", help='If it is true it will show company name on ' 'website') address = fields.Boolean(string="Address", help='If it is true it will show address on ' 'website') phone = fields.Boolean(string="Phone", help='If it is true it will show phone number on ' 'website') mobile = fields.Boolean(string="Mobile", help='If it is true it will show mobile ' 'number on website') email = fields.Boolean(string="Email", help='If it is true it will show email ' 'on website') website = fields.Boolean(string="Website", help='If it is true it will show ' 'website name on website') vat = fields.Boolean(string="VAT", help='If it is true it will show tax id ' 'on website') address_in_online = fields.Boolean(string="Address in one line", help='If it is true it will show address' ' in one line on website') hide_marker_icons = fields.Boolean(string="Hide Marker Icons", help='If it is true it will hide all ico' 'ns of address on website') show_phone_icon = fields.Boolean(string="Show Phone Icons", help='If it is true it will show only phon' 'e icons on website') country_flag = fields.Boolean(string="Country Flag", help='If it is true it will ' 'show country flag on website') facebook = fields.Boolean(string="Facebook", help='If it is true it will show ' 'company name on website') social_facebook = fields.Char(string="Facebook Account", related='company_id.social_facebook', readonly=False, help="Company Facebook Account") twitter = fields.Boolean(string="Twitter", help='If it is true it will' 'show twitter on website') social_twitter = fields.Char(string="Twitter Account", related='company_id.social_twitter', readonly=False, help='Twitter account') linked_in = fields.Boolean(string="LinkedIn", help='If it is true it will show twitter ' 'on website') social_linked_in = fields.Char(string="Linkedin Account", related='company_id.social_linkedin', readonly=False, help='Linkedin account') instagram = fields.Boolean(string="Instagram", help='If it is true it will show twitter on ' 'website') social_instagram = fields.Char(string="Instagram Account", related='company_id.social_instagram', readonly=False, help='Instagram account') git_hub = fields.Boolean(string="GitHub", help='If it is true it will show twitter on' ' website') social_git_hub = fields.Char(string="Github Account", related='company_id.social_github', readonly=False, help='Github Account')