[RM] crm changes move out to tabula_extends
This commit is contained in:
parent
0279e48ac1
commit
b2ff60057d
@ -17,7 +17,6 @@
|
||||
"data/fields_default.xml",
|
||||
"data/payment_terms.xml",
|
||||
"security/ir.model.access.csv",
|
||||
"views/crm_lead.xml",
|
||||
"views/res_partner_contract.xml",
|
||||
"views/res_partner_contract_annex.xml",
|
||||
"views/res_partner_document_template.xml",
|
||||
|
@ -1,4 +1,3 @@
|
||||
from . import crm_lead
|
||||
from . import res_partner
|
||||
from . import res_partner_contract
|
||||
from . import res_partner_contract_annex
|
||||
|
@ -1,8 +0,0 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class CrmLead(models.Model):
|
||||
_inherit = "crm.lead"
|
||||
|
||||
cost_price = fields.Monetary(string="Cost Price", default=0)
|
||||
currency_id = fields.Many2one(related="company_id.currency_id", string="Currency", readonly=True)
|
@ -1,17 +0,0 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<odoo>
|
||||
|
||||
<!-- crm.lead inherit form view -->
|
||||
<record id="crm_case_form_view_oppor" model="ir.ui.view">
|
||||
<field name="name">crm.lead.inherit.view.form</field>
|
||||
<field name="model">crm.lead</field>
|
||||
<field name="inherit_id" ref="crm.crm_case_form_view_oppor"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//field[@name='date_deadline']" position="after">
|
||||
<field name="cost_price"/>
|
||||
<field name="currency_id" invisible="1"/>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
</odoo>
|
Loading…
x
Reference in New Issue
Block a user