<commit_before><?xml version="1.0"?>
<openerp>
	<data>
		<record model="board.note.type" id="note_crm_type">
			<field name="name">CRM Configuration</field>
		</record>

		<record model="ir.ui.view" id="view_crm_opportunity_user_graph1">
			<field name="name">crm.opportunity.user.graph1</field>
			<field name="model">crm.lead.report</field>
			<field name="type">graph</field>
			<field name="arch" type="xml">
				<graph string="Opportunities by User and Section" type="bar">
					<field name="stage_id"/>
					<field name="nbr" operator="+"/>
					<field name="user_id" group="True"/>
				</graph>
			</field>
		</record>
		
        <record id="view_report_crm_oppor_graph" model="ir.ui.view">
            <field name="name">crm.lead.report.graph</field>
            <field name="model">crm.lead.report</field>
            <field name="type">graph</field>
            <field name="arch" type="xml">
                <graph orientation="vertical" string="Opportunity Analysis" type="bar">
                   <field name="stage_id"/>
                    <field name="planned_revenue" operator="+"/>
                </graph>
            </field>
        </record>

		<record model="ir.actions.act_window" id="act_my_oppor">
			<field name="res_model">crm.lead</field>
			<field name="view_type">form</field>
			<field name="view_mode">tree,form</field>
			<field name="view_id" ref="crm.crm_case_tree_view_oppor"/>
            <field name="domain">[('user_id','=',uid),('state','=','open'), ('type', '=', 'opportunity')]</field>
		</record>

		<record model="ir.actions.act_window" id="act_my_meetings">
			<field name="res_model">crm.meeting</field>
			<field name="view_type">form</field>
			<field name="view_mode">tree,form</field>
			<field name="view_id" ref="crm.crm_case_tree_view_meet"/>
            <field name="domain">[('user_id','=',uid),('state','!=','cancel'),('date','ilike',time.strftime("%Y-%m"))]</field>
		</record>

		<record model="ir.actions.act_window" id="act_my_oppor_stage">
			<field name="res_model">crm.lead.report</field>
			<field name="view_type">form</field>
			<field name="view_mode">graph,tree,form</field>
			<field name="view_id" ref="view_report_crm_oppor_graph"/>
            <field name="domain">['&amp;', '&amp;', ('user_id','=',uid), ('type', '=', 'opportunity'), '!' , '&amp;', ('state', '=', 'done'),  ('date_closed','&gt;',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%Y-%m-%d'))]</field>
		</record>

		<record model="ir.actions.act_window" id="act_sales_pipeline">
			<field name="res_model">crm.lead.report</field>
			<field name="view_type">form</field>
			<field name="view_mode">graph,tree,form</field>
			<field name="view_id" ref="view_crm_opportunity_user_graph1"/>
			<field name="domain">['&amp;', ('state', '=', 'done') , '&amp;', ('create_date','&gt;',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%Y-%m-%d')), ('type', '=', 'opportunity')]</field>
		</record>

		<record model="ir.ui.view" id="board_crm_form">
			<field name="name">CRM - Dashboard Form</field>
			<field name="model">board.board</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form string="Connecting Dashboard">
					<hpaned>
						<child1>
							<action
								string="My Open Opportunities"
								name="%(act_my_oppor)d"
								colspan="4"
								height="150"<commit_msg>[IMP]: crm: Improved crm board<commit_after><?xml version="1.0"?>
<openerp>
	<data>
		<record model="board.note.type" id="note_crm_type">
			<field name="name">CRM Configuration</field>
		</record>

		<record model="ir.ui.view" id="view_crm_opportunity_user_graph1">
			<field name="name">crm.opportunity.user.graph1</field>
			<field name="model">crm.lead.report</field>
			<field name="type">graph</field>
			<field name="arch" type="xml">
				<graph string="Opportunities by User and Section" type="bar">
					<field name="stage_id"/>
					<field name="nbr" operator="+"/>
					<field name="user_id" group="True"/>
				</graph>
			</field>
		</record>
		
        <record id="view_report_crm_oppor_graph" model="ir.ui.view">
            <field name="name">crm.lead.report.graph</field>
            <field name="model">crm.lead.report</field>
            <field name="type">graph</field>
            <field name="arch" type="xml">
                <graph orientation="vertical" string="Opportunity Analysis" type="bar">
                   <field name="stage_id"/>
                    <field name="planned_revenue" operator="+"/>
                </graph>
            </field>
        </record>
        
        <record model="ir.ui.view" id="crm_case_my_open_oppor">
            <field name="name">My Open Opportunities</field>
            <field name="model">crm.lead</field>
            <field name="type">tree</field>
            <field name="arch" type="xml">
                <tree string="Opportunities"  colors="blue:state=='pending';grey:state in ('cancel', 'done');red:date_deadline and (date_deadline &lt; current_date)">
                    <field name="name" string="Opportunity"/>
                    <field name="partner_id"/>
                    <field name="stage_id"/>
                    <button name="stage_previous" string="Previous Stage"
                        states="open,pending" type="object" icon="gtk-go-back" />
                    <button name="stage_next" string="Next Stage"
                        states="open,pending" type="object"
                        icon="gtk-go-forward" />
                    <field name="planned_revenue" sum="Total of Planned Revenue"/>
                    <field name="probability" widget="progressbar" avg="Avg. of Probability"/>
                    <field name="date_deadline" invisible="1"/>
                    <field name="state"/>
                    <button name="case_open" string="Open"
                        states="draft,pending" type="object"
                        icon="gtk-go-forward" />
                    <button name="case_pending" string="Pending"
                        states="open,draft" type="object"
                        icon="gtk-media-pause" />
                    <button name="case_mark_lost" string="Lost"
                        states="open,pending" type="object"
                        icon="gtk-cancel" />
                    <button name="case_close" string="Won"
                        states="open,draft,pending" type="object"
                        icon="gtk-apply" />
                </tree>
            </field>
        </record>

		<record model="ir.actions.act_window" id="act_my_oppor">
		    <field name="name">My Open Opportunities</field>
			<field name="res_model">crm.lead</field>
			<field name="view_type">form</field>
			<field name="view_mode">tree,form</field>
            <field name="domain">[('user_id','=',uid),('state','=','open'), ('type', '=', 'opportunity')]</field>
		</record>
        
        <record model="ir.actions.act_window.view" id="act_my_oppor_tree_view">
          <field name="sequence" eval="1"/>
          <field name="view_mode">tree</field>
          <field name="view_id" ref="crm_case_my_open_oppor"/>
          <field name="act_window_id" ref="act_my_oppor"/>
         </record>

        <record model="ir.actions.act_window.view" id="act_my_oppor_form_view">
            <field name="sequence" eval="2"/>
            <field name="view_mode">form</field>
            <field name="view_id" ref="crm_case_form_view_oppor"/>
            <field name="act_window_id" ref="act_my_oppor"/>
        </record>

		<record model="ir.actions.act_window" id="act_my_meetings">
			<field name="res_model">crm.meeting</field>
			<field name="view_type">form</field>
			<field name="view_mode">tree,form</field>
			<field name="view_id" ref="crm.crm_case_tree_view_meet"/>
            <field name="domain">[('user_id','=',uid),('state','not in',('cancel', 'done')),('date','ilike',time.strftime("%Y-%m"))]</field>
		</record>

		<record model="ir.actions.act_window" id="act_my_oppor_stage">
			<field name="res_model">crm.lead.report</field>
			<field name="view_type">form</field>
			<field name="view_mode">graph,tree,form</field>
			<field name="view_id" ref="view_report_crm_oppor_graph"/>
            <field name="domain">['&amp;', '&amp;', ('user_id','=',uid), ('type', '=', 'opportunity'), '!' , '&amp;', ('state', '=', 'done'),  ('date_closed','&gt;',(datetime.date.today()-datetime.timedelta(days=30)).strftime('%Y-%m-%d'))]</field>
		</record>

		<record model="ir.actions.act_window" id="act_sales_pipeline">
			<field name="res_model">crm.lead.report</field>
			<field name="view_type">form</field>
			<field name="view_mode">graph,tree,form</field>
			<field name="view_id" ref="view_crm_opportunity_user_graph1"/>
			<field name="domain">['&amp;', ('state', '=', 'done') , '&amp;', ('create_date','&gt;',(datetime.date.today()-datetime.timedelta(days=365)).strftime('%Y-%m-%d')), ('type', '=', 'opportunity')]</field>
		</record>

		<record model="ir.ui.view" id="board_crm_form">
			<field name="name">CRM - Dashboard Form</field>
			<field name="model">board.board</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form string="Connecting Dashboard">
					<hpaned>
						<child1>
							<action
								string="My Open Opportunities"
								name="%(act_my_oppor)d"
								colspan="4"
								height="150"
{'fraction_non_alphanumeric': 0.1961579509071505, 'fraction_numerical': 0.0035218783351120596, 'mean_word_length': 3.1409633230225364, 'pattern_counts': {'":': 0, '<': 227, '<?xml version=': 2, '>': 225, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 9}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4095324', 'n_tokens_mistral': 3434, 'n_tokens_neox': 3053, 'n_words': 461}