Skip to content
Permalink
Browse files

[IMP] web(_tour), website*: Removed 'view_type' field on window actions.

Related to Task: 1937686
  • Loading branch information...
hbh-odoo committed Feb 14, 2019
1 parent 1689db2 commit 607ace3e4e95ae69583b9826d93c16835b63a7fa
Showing with 1 addition and 49 deletions.
  1. +0 −1 addons/web/static/src/js/chrome/action_manager.js
  2. +0 −1 addons/web/static/src/js/report/report.js
  3. +0 −1 addons/web/static/src/js/views/pivot/pivot_controller.js
  4. +0 −1 addons/web/static/tests/views/form_tests.js
  5. +0 −1 addons/web/static/tests/views/pivot_tests.js
  6. +0 −3 addons/web_settings_dashboard/static/src/js/dashboard.js
  7. +0 −1 addons/web_tour/views/tour_views.xml
  8. +0 −1 addons/website/models/res_config_settings.py
  9. +0 −4 addons/website/views/website_views.xml
  10. +0 −4 addons/website_blog/views/website_blog_views.xml
  11. +0 −2 addons/website_crm_partner_assign/views/res_partner_views.xml
  12. +1 −2 addons/website_crm_partner_assign/wizard/crm_forward_to_partner_view.xml
  13. +0 −1 addons/website_customer/views/res_partner_views.xml
  14. +0 −1 addons/website_event_questions/report/report_event_question_view.xml
  15. +0 −1 addons/website_event_track/models/event_track.py
  16. +0 −2 addons/website_event_track/views/event_track_views.xml
  17. +0 −3 addons/website_forum/views/forum.xml
  18. +0 −1 addons/website_sale/models/crm_team.py
  19. +0 −1 addons/website_sale/models/sale_order.py
  20. +0 −2 addons/website_sale/views/account_views.xml
  21. +0 −1 addons/website_sale/views/onboarding_views.xml
  22. +0 −2 addons/website_sale/views/product_views.xml
  23. +0 −2 addons/website_sale/views/sale_order_views.xml
  24. +0 −1 addons/website_sale_comparison/views/website_sale_comparison_view.xml
  25. +0 −2 addons/website_sale_digital/models/product.py
  26. +0 −1 addons/website_slides/models/slide_channel.py
  27. +0 −2 addons/website_slides/views/slide_channel_tag_views.xml
  28. +0 −2 addons/website_slides/views/slide_channel_views.xml
  29. +0 −2 addons/website_slides/views/slide_slide_views.xml
@@ -926,7 +926,6 @@ var ActionManager = Widget.extend({
_onRedirect: function (ev) {
this.do_action({
type:'ir.actions.act_window',
view_type: 'form',
view_mode: 'form',
res_model: ev.data.res_model,
views: [[false, 'form']],
@@ -24,7 +24,6 @@ $('[res-id][res-model][view-type]')
ev.preventDefault();
var action = {
'type': 'ir.actions.act_window',
'view_type': $(this).attr('view-type'),
'view_mode': $(this).attr('view-mode') || $(this).attr('view-type'),
'res_id': Number($(this).attr('res-id')),
'res_model': $(this).attr('res-model'),
@@ -277,7 +277,6 @@ var PivotController = AbstractController.extend({
name: this.title,
res_model: this.modelName,
views: this.views,
view_type: 'list',
view_mode: 'list',
target: 'current',
context: context,
@@ -363,7 +363,6 @@ QUnit.module('Views', {
target: 'current',
res_model: args.model,
context: args.kwargs.context,
'view_type': 'form',
'view_mode': 'form',
'views': [[false, 'form']],
});
@@ -247,7 +247,6 @@ QUnit.module('Views', {
target: 'current',
type: 'ir.actions.act_window',
view_mode: 'list',
view_type: 'list',
views: [[false, 'list'], [2, 'form']],
}, "should trigger do_action with the correct args");
},
@@ -159,7 +159,6 @@ var DashboardInvitations = Widget.extend({
var user_id = $(e.currentTarget).data('user-id');
var action = {
type: 'ir.actions.act_window',
view_type: 'form',
view_mode: 'form',
res_model: 'res.users',
views: [[this.data.user_form_view_id, 'form']],
@@ -175,7 +174,6 @@ var DashboardInvitations = Widget.extend({
var action = {
name: _t('Users'),
type: 'ir.actions.act_window',
view_type: 'form',
view_mode: 'tree,form',
res_model: 'res.users',
domain: [['log_ids', '=', false]],
@@ -406,7 +404,6 @@ var DashboardCompany = Widget.extend({
type: 'ir.actions.act_window',
res_model: 'res.company',
view_mode: 'form',
view_type: 'form',
views: [[false, 'form']],
res_id: this.data.company_id
};
@@ -21,7 +21,6 @@
<record id="edit_tour_action" model="ir.actions.act_window">
<field name="name">Tours</field>
<field name="res_model">web_tour.tour</field>
<field name="view_type">form</field>
<field name="view_id" ref="edit_tour_list"/>
<field name="search_view_id" ref="edit_tour_search"/>
</record>
@@ -134,7 +134,6 @@ def website_go_to(self):

def action_website_create_new(self):
return {
'view_type': 'form',
'view_mode': 'form',
'view_id': self.env.ref('website.view_website_form').id,
'res_model': 'website',
@@ -75,7 +75,6 @@
<record id="action_website_list" model="ir.actions.act_window">
<field name="name">Websites</field>
<field name="res_model">website</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="view_website_tree"/>
<field name="target">current</field>
@@ -122,7 +121,6 @@
<record id="action_website_redirect_list" model="ir.actions.act_window">
<field name="name">Website Redirects</field>
<field name="res_model">website.redirect</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="website_redirect_tree_view"/>
<field name="target">current</field>
@@ -177,7 +175,6 @@
<record id="action_website_pages_list" model="ir.actions.act_window">
<field name="name">Website Pages</field>
<field name="res_model">website.page</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="website_pages_tree_view"/>
<field name="target">current</field>
@@ -254,7 +251,6 @@
<record id="action_website_menu" model="ir.actions.act_window">
<field name="name">Website Menu</field>
<field name="res_model">website.menu</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="context">{'search_default_my_websites':1}</field>
<field name="view_id" ref="menu_tree"/>
@@ -152,7 +152,6 @@
<record id="action_blog_post" model="ir.actions.act_window">
<field name="name">Blog Posts</field>
<field name="res_model">blog.post</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,kanban</field>
<field name="view_id" ref="view_blog_post_list"/>
<field name="search_view_id" ref="view_blog_post_search"/>
@@ -176,7 +175,6 @@
<record id="action_blog_blog" model="ir.actions.act_window">
<field name="name">Blogs</field>
<field name="res_model">blog.blog</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>

@@ -212,7 +210,6 @@
<record id="action_tags" model="ir.actions.act_window">
<field name="name">Blog Tags</field>
<field name="res_model">blog.tag</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="blog_tag_tree"/>
</record>
@@ -244,7 +241,6 @@
<record id="action_tag_category" model="ir.actions.act_window">
<field name="name">Tag Category</field>
<field name="res_model">blog.tag.category</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" ref="blog_tag_category_tree"/>
</record>
@@ -32,7 +32,6 @@
<record model="ir.actions.act_window" id="res_partner_activation_act">
<field name="name">Partner Activations</field>
<field name="res_model">res.partner.activation</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>

@@ -81,7 +80,6 @@
<record id="res_partner_grade_action" model="ir.actions.act_window">
<field name="name">Partner Level</field>
<field name="res_model">res.partner.grade</field>
<field name="view_type">form</field>
</record>
<menuitem action="res_partner_grade_action" id="menu_res_partner_grade_action"
parent="crm_menu_resellers"
@@ -39,15 +39,14 @@
<record model="ir.actions.act_window" id="crm_lead_forward_to_partner_act">
<field name="name">Forward to Partner</field>
<field name="res_model">crm.lead.forward.to.partner</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="crm_lead_forward_to_partner_form"/>
<field name="target">new</field>
</record>

<act_window id="action_crm_send_mass_forward" multi="True"
key2="client_action_multi" name="Forward to Partner" res_model="crm.lead.forward.to.partner"
src_model="crm.lead" view_mode="form" target="new" view_type="form"
src_model="crm.lead" view_mode="form" target="new"
groups="sales_team.group_sale_manager"
context="{'default_composition_mode' : 'mass_mail'}" view_id="crm_lead_forward_to_partner_form" />

@@ -45,7 +45,6 @@
<field name="name">Website Tags</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">res.partner.tag</field>
<field name="view_type">form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
Create a new contact tag
@@ -49,7 +49,6 @@
<record model="ir.actions.act_window" id="action_event_question_report">
<field name="name">Questions Analysis</field>
<field name="res_model">event.question.report</field>
<field name="view_type">form</field>
<field name="view_mode">graph,pivot</field>
</record>

@@ -183,7 +183,6 @@ def open_track_speakers_list(self):
return {
'name': _('Speakers'),
'domain': [('id', 'in', self.mapped('partner_id').ids)],
'view_type': 'form',
'view_mode': 'kanban,form',
'res_model': 'res.partner',
'view_id': False,
@@ -201,7 +201,6 @@
<record model="ir.actions.act_window" id="action_event_track_from_event">
<field name="res_model">event.track</field>
<field name="name">Event Tracks</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form,calendar,graph</field>
<field name="context">{'search_default_event_id': active_id, 'default_event_id': active_id, 'group_by': 'stage_id'}</field>
<field name="help" type="html">
@@ -430,7 +429,6 @@
<record id="event_track_stage_action" model="ir.actions.act_window">
<field name="name">Track Stages</field>
<field name="res_model">event.track.stage</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form</field>
<field name="view_id" ref="event_track_stage_view_tree"/>
<field name="help" type="html">
@@ -118,7 +118,6 @@
<record id="action_forum_forum" model="ir.actions.act_window">
<field name="name">Forums</field>
<field name="res_model">forum.forum</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>

@@ -235,7 +234,6 @@
<record id="action_forum_post" model="ir.actions.act_window">
<field name="name">Forum Posts</field>
<field name="res_model">forum.post</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,graph</field>
<field name="view_id" ref="view_forum_post_list"/>
<field name="search_view_id" ref="view_forum_post_search"/>
@@ -283,7 +281,6 @@
<record id="forum_tag_action" model="ir.actions.act_window">
<field name="name">Tag</field>
<field name="res_model">forum.tag</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
@@ -40,7 +40,6 @@ def get_abandoned_carts(self):
return {
'name': _('Abandoned Carts'),
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'tree,form',
'domain': [('is_abandoned_cart', '=', True)],
'search_view_id': self.env.ref('sale.sale_order_view_search_inherit_sale').id,
@@ -329,7 +329,6 @@ def action_recovery_email_send(self):
template_id = False
return {
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'res_model': 'mail.compose.message',
'view_id': composer_form_view_id,
@@ -3,7 +3,6 @@
<record id="action_invoices_ecommerce" model="ir.actions.act_window">
<field name="name">Invoices</field>
<field name="res_model">account.invoice</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('team_id.website_ids', '!=', False)]</field>
<field name="view_id" ref="account.invoice_tree"/>
@@ -15,7 +14,6 @@
<field name="name">Pricelists</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.pricelist</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="domain">[('website_id', '!=', False)]</field>
<field name="search_view_id" ref="product.product_pricelist_view_search" />
@@ -14,7 +14,6 @@
<field name="name">Choose a payment method</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">website.sale.payment.acquirer.onboarding.wizard</field>
<field name="view_type">form</field>
<field name="view_mode">form</field>
<field name="view_id" ref="payment.payment_acquirer_onboarding_wizard_form" />
<field name="target">new</field>
@@ -15,7 +15,6 @@
<record id="product_template_action_website" model="ir.actions.act_window">
<field name="name">Products</field>
<field name="res_model">product.template</field>
<field name="view_type">form</field>
<field name="view_mode">kanban,tree,form,activity</field>
<field name="search_view_id" ref="product_template_search_view_website"/>
<field name="context">{'search_default_published': 1, 'default_website_published': True}</field>
@@ -159,7 +158,6 @@
<field name="name">eCommerce Categories</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.public.category</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="view_id" eval="False"/>
<field name="help" type="html">
@@ -146,7 +146,6 @@
<field name="name">Unpaid Orders</field>
<field name="res_model">sale.order</field>
<field name="view_mode">tree,kanban,form,activity</field>
<field name="view_type">form</field>
<field name="domain">[('state', '=', 'sent'), ('website_id', '!=', False)]</field>
<field name="context" eval="{'show_sale': True, 'create': False}"/>
<field name="view_id" ref="sale.view_quotation_tree"/>
@@ -163,7 +162,6 @@
<record id="action_view_abandoned_tree" model="ir.actions.act_window">
<field name="name">Abandoned Carts</field>
<field name="res_model">sale.order</field>
<field name="view_type">form</field>
<field name="view_mode">tree,kanban,form,activity</field>
<field name="domain">[('state', '=', 'draft'), ('order_line', '!=', False), ('partner_id', '!=', context.get('public_partner_id')), ('website_id', '!=', False), ('date_order', '&lt;=', (datetime.datetime.utcnow() - datetime.timedelta(hours=1)).strftime('%Y-%m-%d %H:%M:%S'))]</field>
<field name="context" eval="{'show_sale': True, 'create': False, 'public_partner_id': ref('base.public_partner'), 'search_default_recovery_email': True}"/>
@@ -17,7 +17,6 @@
<field name="type">ir.actions.act_window</field>
<field name="res_model">product.attribute.category</field>
<field name="view_mode">tree</field>
<field name="view_type">form</field>
</record>

<menuitem action="product_attribute_category_action"
@@ -25,7 +25,6 @@ def action_open_attachments(self):
'res_model': 'ir.attachment',
'type': 'ir.actions.act_window',
'view_mode': 'kanban,form',
'view_type': 'form',
'context': "{'default_res_model': '%s','default_res_id': %d, 'default_product_downloadable': True}" % (self._name, self.id),
'help': """
<p class="o_view_nocontent_smiling_face">Add attachments for this digital product</p>
@@ -58,7 +57,6 @@ def action_open_attachments(self):
'res_model': 'ir.attachment',
'type': 'ir.actions.act_window',
'view_mode': 'kanban,form',
'view_type': 'form',
'context': "{'default_res_model': '%s','default_res_id': %d, 'default_product_downloadable': True}" % (self._name, self.id),
'help': """
<p class="o_view_nocontent_smiling_face">Add attachments for this digital product</p>
@@ -352,7 +352,6 @@ def action_channel_invite(self):
)
return {
'type': 'ir.actions.act_window',
'view_type': 'form',
'view_mode': 'form',
'res_model': 'slide.channel.invite',
'target': 'new',
@@ -43,7 +43,6 @@
<record id="slide_channel_tag_action" model="ir.actions.act_window">
<field name="name">Channel Tags</field>
<field name="res_model">slide.channel.tag</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>

@@ -88,7 +87,6 @@
<record id="slide_channel_tag_group_action" model="ir.actions.act_window">
<field name="name">Channel Tag Groups</field>
<field name="res_model">slide.channel.tag.group</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>

@@ -32,7 +32,6 @@
<record id="action_ir_slide_category" model="ir.actions.act_window">
<field name="name">Categories</field>
<field name="res_model">slide.category</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="help" type="html">
<p class="o_view_nocontent_smiling_face">
@@ -167,7 +166,6 @@
<record id="action_slide_channels" model="ir.actions.act_window">
<field name="name">Channels</field>
<field name="res_model">slide.channel</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
<field name="search_view_id" ref="website_slides.slide_channel_view_search"/>
<field name="help" type="html">
@@ -26,7 +26,6 @@
<field name="name">Tags</field>
<field name="type">ir.actions.act_window</field>
<field name="res_model">slide.tag</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form</field>
</record>

@@ -210,7 +209,6 @@
<record id="action_slides_slides" model="ir.actions.act_window">
<field name="name">Slides</field>
<field name="res_model">slide.slide</field>
<field name="view_type">form</field>
<field name="view_mode">tree,form,graph</field>
<field name="context">{'search_default_channel': 1}</field>
<field name="help" type="html">

0 comments on commit 607ace3

Please sign in to comment.
You can’t perform that action at this time.