diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml index 8c0854bd6c6..c2f21c0d8bc 100644 --- a/addons/account/account_invoice_view.xml +++ b/addons/account/account_invoice_view.xml @@ -453,10 +453,11 @@ - + + diff --git a/addons/sale_crm/sale_crm_view.xml b/addons/sale_crm/sale_crm_view.xml index 06ced3862a9..e2781362b15 100644 --- a/addons/sale_crm/sale_crm_view.xml +++ b/addons/sale_crm/sale_crm_view.xml @@ -53,18 +53,22 @@ - - + + + account.invoice.groupby account.invoice + + + @@ -124,9 +128,11 @@ [('state','not in',('draft','sent','cancel'))] { - 'search_default_section_id': [active_id], 'default_section_id': active_id, - 'search_default_my_sale_orders_filter': 1 - } + 'search_default_section_id': [active_id], + 'default_section_id': active_id, + 'search_default_my_sale_orders_filter': 1, + } +

Click to create a quotation that can be converted into a sales @@ -146,9 +152,11 @@ tree,form,calendar,graph { - 'search_default_section_id': [active_id], 'default_section_id': active_id, 'show_address': 1, - 'search_default_my_sale_orders_filter': 1 - } + 'search_default_section_id': [active_id], + 'default_section_id': active_id, 'show_address': 1, + 'search_default_my_sale_orders_filter': 1 + } + [('state','in',('draft','sent','cancel'))] @@ -172,11 +180,33 @@ form tree,form,calendar,graph - [('state','not in',['draft','cancel'])] - {'search_default_section_id': [active_id], 'default_section_id': active_id} + [ + ('state', 'not in', ['draft', 'cancel']), + ('type', '=', 'out_invoice')] + { + 'search_default_section_id': [active_id], + 'default_section_id': active_id}, + 'default_type':'out_invoice', + 'type':'out_invoice', + 'journal_type': 'sale', + } + + + 1 + tree + + + + + 2 + form + + + + crm.case.section.kanban crm.case.section