How hidden Expected Revenue and Probability with odoo Plugin crm

how hidden odoo crm plugin fields with this code:

models.py

# -*- coding: utf-8 -*-

from odoo import models, api, fields
import logging

_logger = logging.getLogger(__name__)


class PrivacyConsent(models.Model):
    _name = "spekno.crm.privacy.consent"
    _description = "Privacy Consent"

    name = fields.Char("Nome Consenso", required=True)
    type = fields.Selection([('marketing', 'Marketing'), ('3rdparty', 'Terze Parti')], string="Tipo consenso")
    ext_ref = fields.Char("ID esterno")
    internal = fields.Boolean(string="Interno", default=False)
    active = fields.Boolean(string="Attivo", default=True)

class CrmLead(models.Model):
    _inherit = 'crm.lead'

    my_text_field = fields.Text(string='Anagrafica suggerita')
    ext_portal = fields.Selection([('toshiko', 'Toshiko'), ('tcar', 'Tcar'), ('jeep', 'Jeep')],
                                  string="Portale di provenienza")
    ext_ref = fields.Char("Id Lead Portale", help="Codice lead Portale")
    privacy = fields.Many2many('spekno.crm.privacy.consent', 'crm_lead_privacy_consent_rel', string="Privacy",
                               tracking=True)
    ext_create_date = fields.Datetime(string="Data creazione su portale esterno")
    ext_customer_request = fields.Html(string="Richiesta Cliente Portale")
    suggested_partner_id = fields.Many2many('res.partner', 'crm_lead_suggested_partner_rel', string="Partner Suggeriti",
                                            tracking=True)

    @api.model
    def create(self, vals):
        lead = super(CrmLead, self).create(vals)
        success = lead.validate_contact_info()
        if not success:
            _logger.error('Failed to validate contact info for Lead ID: %s', lead.id)
        return lead

    def validate_contact_info(self):
        if not self:
            return False

        updated = False
        for lead in self:
            _logger.info('Starting validation for Lead ID: %s', lead.id)

            if lead.suggested_partner_id:
                suggested_partner_ids = lead.suggested_partner_id.ids
                partners = self.env['res.partner'].browse(suggested_partner_ids)

                for partner in partners:
                    if lead.phone and partner.phone != lead.phone:
                        _logger.info('Updating phone for Partner ID: %s', partner.id)
                        partner.phone = lead.phone
                        updated = True

                    if lead.email and partner.email != lead.email:
                        _logger.info('Updating email for Partner ID: %s', partner.id)
                        partner.email = lead.email
                        updated = True

        if updated:
            _logger.info('Contact info updated for Lead ID: %s', self.id)
            return True
        else:
            _logger.info('No updates necessary for Lead ID: %s', self.id)
            return True

view.xml:

<odoo>
   <data>
      <record id="action_validate_contact_info" model="ir.actions.server">
         <field name="name">Validate Contact Info</field>
         <field name="model_id" ref="crm.model_crm_lead" />
         <field name="state">code</field>
         <field name="code">model.validate_contact_info()</field>
      </record>
      <record id="crm_lead_view_form_lead_fields" model="ir.ui.view">
         <field name="model">crm.lead</field>
         <field name="inherit_id" ref="crm.crm_lead_view_form" />
         <field name="arch" type="xml">
            <xpath expr="//field[@name='tag_ids']" position="after">
               <button name="%(action_validate_contact_info)d" string="Valida Anagrafica" type="action" class="oe_highlight" />
               <group name="my_section" style="{'invisible': [('some_field', '=', False)]}">
                  <field name="ext_portal" />
                  <field name="ext_ref" />
                  <field name="privacy" />
                  <field name="ext_create_date" />
                  <field name="ext_customer_request" />
                  <field name="my_text_field" placeholder="Inserisci il tuo testo qui" />
               </group>
            </xpath>
         </field>
      </record>
   </data>
</odoo>

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật