diff options
| author | Odoo's Mergebot <xmo+roboto@odoo.com> | 2020-03-23 10:00:57 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-03-23 10:00:57 +0100 |
| commit | fe74b0b6f4f4a74ef8f7bda400ccc2b46b3df5ca (patch) | |
| tree | 78cca5b372d8204c934759a5a90a38cd1e082760 /odoo | |
| parent | e428d473c39bbc6fc786ebecb3b7703953579a59 (diff) | |
| parent | 067034453b1e5c5b19013a952dbf5339f801e3e5 (diff) | |
[MERGE] base, various: remove unused views (limited to Marketing applications)
PURPOSE
Remove dead views to clean dead records
SPECIFICATIONS
Find unused views and remove them, notably specific views that
are not used anymore because generic one is always taken. In
this merge we remove dead views linked to Social/Marketing
applications.
LINKS
Task ID 2196317 (Social/Marketing specific)
Community PR odoo/odoo#48086
Upgrade PR odoo/upgrade#966
Followup of odoo/odoo#46435 (actions cleaning)
Followup of odoo/enterprise#8846 (actions cleaning)
Followup of Task ID 2196183 (actions cleaning)
Signed-off-by: Thibault Delavallee (tde) <tde@openerp.com>
Diffstat (limited to 'odoo')
| -rw-r--r-- | odoo/addons/base/views/ir_ui_menu_views.xml | 13 | ||||
| -rw-r--r-- | odoo/addons/base/views/res_partner_views.xml | 63 |
2 files changed, 1 insertions, 75 deletions
diff --git a/odoo/addons/base/views/ir_ui_menu_views.xml b/odoo/addons/base/views/ir_ui_menu_views.xml index bbf08744e14..90f10929637 100644 --- a/odoo/addons/base/views/ir_ui_menu_views.xml +++ b/odoo/addons/base/views/ir_ui_menu_views.xml @@ -1,16 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> <odoo> - <record id="view_menu" model="ir.ui.view"> - <field name="name">ir.ui.menu.tree</field> - <field name="model">ir.ui.menu</field> - <field name="arch" type="xml"> - <tree string="Menu"> - <field icon="icon" name="name"/> - </tree> - </field> - <field name="field_parent">child_id</field> - </record> - <record id="edit_menu_access" model="ir.ui.view"> <field name="model">ir.ui.menu</field> <field name="arch" type="xml"> @@ -52,7 +41,7 @@ <record id="edit_menu" model="ir.ui.view"> <field name="model">ir.ui.menu</field> - <field eval="8" name="priority"/> + <field name="priority" eval="8"/> <field name="arch" type="xml"> <tree string="Menu"> <field name="sequence" widget='handle'/> diff --git a/odoo/addons/base/views/res_partner_views.xml b/odoo/addons/base/views/res_partner_views.xml index 58771f5a819..1c346cbc60d 100644 --- a/odoo/addons/base/views/res_partner_views.xml +++ b/odoo/addons/base/views/res_partner_views.xml @@ -130,69 +130,6 @@ </field> </record> - <record id="view_partner_short_form" model="ir.ui.view"> - <field name="name">res.partner.form</field> - <field name="model">res.partner</field> - <field name="priority" eval="2"/> - <field name="arch" type="xml"> - <form string="Partners"> - <sheet> - <field name="image_1920" widget='image' class="oe_avatar" options='{"preview_image": "image_128"}'/> - <div class="oe_title"> - <field name="is_company" invisible="1"/> - <field name="commercial_partner_id" invisible="1"/> - <field name="company_type" widget="radio" - class="oe_edit_only" - options="{'horizontal': true}"/> - <h1> - <field name="name" default_focus="1" placeholder="Name" attrs="{'required' : [('type', '=', 'contact')]}"/> - </h1> - <div class="o_row"> - <field name="parent_id" - widget="res_partner_many2one" - placeholder="Company" - domain="[('is_company', '=', True)]" context="{'default_is_company': True, 'show_vat': True}" - attrs="{'invisible': ['|', '&', ('is_company','=', True),('parent_id', '=', False),('company_name', '!=', False),('company_name', '!=', '')]}"/> - <field name="company_name" attrs="{'invisible': ['|', '|', ('company_name', '=', False), ('company_name', '=', ''), ('is_company', '=', True)]}"/> - <button name="create_company" type="object" icon="fa fa-plus-square" - class="oe_edit_only btn-link" string="Create company" - attrs="{'invisible': ['|', '|', ('is_company','=', True), ('company_name', '=', ''), ('company_name', '=', False)]}"/> - </div> - </div> - <group> - <group> - <field name="type" attrs="{'invisible': [('parent_id','=', False)]}" groups="base.group_no_one"/> - <label for="street" string="Address"/> - <div class="o_address_format"> - <div attrs="{'invisible': ['|', ('parent_id', '=', False), ('type', '!=', 'contact')]}" class="oe_edit_only"><b>Company Address:</b></div> - <field name="street" placeholder="Street..." class="o_address_street" - attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> - <field name="street2" placeholder="Street 2..." class="o_address_street" - attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> - <field name="city" placeholder="City" class="o_address_city" - attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> - <field name="state_id" class="o_address_state" placeholder="State" options="{'no_open': True, 'no_quick_create': True}" - attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}" context="{'country_id': country_id, 'default_country_id': country_id, 'zip': zip}"/> - <field name="zip" placeholder="ZIP" class="o_address_zip" - attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> - <field name="country_id" placeholder="Country" class="o_address_country" options='{"no_open": True, "no_create": True}' - attrs="{'readonly': [('type', '=', 'contact'),('parent_id', '!=', False)]}"/> - </div> - <field name="vat" placeholder="e.g. BE0477472701" attrs="{'readonly': [('parent_id','!=',False)]}"/> - </group> - <group> - <field name="function" placeholder="e.g. Sales Director" - attrs="{'invisible': [('is_company','=', True)]}"/> - <field name="phone" widget="phone" options="{'enable_sms': false}"/> - <field name="mobile" widget="phone" options="{'enable_sms': false}"/> - <field name="email" widget="email" context="{'gravatar_image': True}"/> - </group> - </group> - </sheet> - </form> - </field> - </record> - <record id="view_partner_form" model="ir.ui.view"> <field name="name">res.partner.form</field> <field name="model">res.partner</field> |
