Merge branch 'pawan_branch' into 'development'

invisible some fields from sales screen

See merge request prakash.jain/cor-odoo!11
This commit is contained in:
pawan.sharma 2020-12-16 23:23:08 -08:00
commit 30b1e20924
3 changed files with 22 additions and 1 deletions

View File

@ -26,6 +26,7 @@
'data': [
# 'security/ir.model.access.csv',
'views/crm_view.xml',
'views/sale_views.xml',
'views/project_view.xml',
'views/hr_timesheet_templates.xml',
'views/analytic_view.xml',

View File

@ -55,7 +55,7 @@
<tree editable="top">
<field name="company_id" invisible="1"/>
<field name="project_id" invisible="1"/>
<field name="employee_id" options="{'no_create': True}"/>
<field name="employee_id" options="{'no_create': True}" string="Consultant"/>
<field name="budgeted_qty"/>
<field name="budgeted_uom"/>
<field name="timesheet_product_id"

20
cor_custom/views/sale_views.xml Executable file
View File

@ -0,0 +1,20 @@
<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="inherit_view_order_form" model="ir.ui.view">
<field name="name">sale.order.form.inherit</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<page name="customer_signature" position="attributes">
<attribute name='invisible'>1</attribute>
</page>
<xpath expr="//field[@name='require_signature']" position="replace">
<field name="require_signature" invisible="1"/>
</xpath>
<xpath expr="//field[@name='require_payment']" position="replace">
<field name="require_payment" invisible="1"/>
</xpath>
</field>
</record>
</odoo>