mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 13:12:01 +02:00
26 lines
1.1 KiB
XML
26 lines
1.1 KiB
XML
<?xml version="1.0" encoding="utf-8" ?>
|
|
<!-- Copyright 2024 Moduon Team S.L.
|
|
License LGPL-3.0 or later (https://www.gnu.org/licenses/lgpl-3.0) -->
|
|
<odoo>
|
|
<record id="crm_lead_view_form_crm_project_project" model="ir.ui.view">
|
|
<field name="name">CRM Lead Form Create Project</field>
|
|
<field name="model">crm.lead</field>
|
|
<field name="inherit_id" ref="crm.crm_lead_view_form" />
|
|
<field name="arch" type="xml">
|
|
<xpath expr="header" position="inside">
|
|
<button
|
|
string="Create Project"
|
|
name="%(crm_project_create.crm_create_project_action)d"
|
|
type="action"
|
|
class="oe_highlight"
|
|
context="{'default_project_name': name, 'default_lead_id': id}"
|
|
attrs="{'invisible': ['|', ('active','=',False), ('project_id', '!=', False)]}"
|
|
/>
|
|
</xpath>
|
|
<xpath expr="//group[@name='Misc']" position="inside">
|
|
<field name="project_id" />
|
|
</xpath>
|
|
</field>
|
|
</record>
|
|
|
|
</odoo>
|