Merge branch 'development' of http://103.74.223.20:8085/prakash.jain/cor-odoo into pawan_branch

This commit is contained in:
Pawan Kumar 2020-12-14 14:28:36 +05:30
commit 1df17da091
11 changed files with 28 additions and 1 deletions

View File

@ -20,11 +20,12 @@
'version': '0.1',
# any module necessary for this one to work correctly
'depends': ['base', 'sale_timesheet'],
'depends': ['base', 'crm', 'sale_timesheet'],
# always loaded
'data': [
# 'security/ir.model.access.csv',
'views/crm_view.xml',
'views/project_view.xml',
'views/hr_timesheet_templates.xml',
'views/views.xml',

View File

@ -1,5 +1,6 @@
# -*- coding: utf-8 -*-
from . import crm_lead
from . import models
from . import project
from . import project_overview

View File

@ -0,0 +1,10 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models, api
class Lead(models.Model):
_inherit = 'crm.lead'
lead_no = fields.Char(string='Lead ID')

15
cor_custom/views/crm_view.xml Executable file
View File

@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="crm_lead_form_cor_custom" model="ir.ui.view">
<field name="name">crm.lead.cor.inherit1</field>
<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='partner_id']" position="before">
<field name="lead_no"/>
</xpath>
</field>
</record>
</odoo>