Odoo Help


Is there a way to stop the removal of View Delivery Order button on an SO even after it has been delivered and invoiced in v7?

Sean Samborski
on 8/13/14, 3:04 PM 899 views

On our instance, the Sales Order (SO) has a button "View Delivery Order" in the upper left prior to actually delivery the products. You can quickly jump back and forth between these two forms using this button.


When we deliver the products, this button is removed from the SO. Is it possible to change a config and have this button remain even after they are delivered? Our Purchase Orders have the same behavior. Once an Incoming Shipment is received it will remove the View Incoming button from the PO.


I would like to keep this button in place forever because we do have to go back and sometimes view closed SOs and DOs/ POs and INs etc. Possible?


Ray Carnes

--Ray Carnes--
| 9 7 9
Keyport, United States
--Ray Carnes--

Senior ERP Analyst

OpenERP 6.1, 7.0; Odoo 8.0, 9.0, 10.0 and 11.0.

Completed Odoo Functional and Technical Training.

Functional Areas:

  • CRM/Sales

  • Inventory

  • Manufacturing

  • Accounting

  • Purchasing

Major Skills:

  • Business Process Reengineering

  • Efficiency Consulting

  • User Needs and GAP Analysis;

  • Functional and Technical Design;

  • Prototyping and Proof of Concepts;

  • Requirements Specifications;

  • Agile Implementation;

  • Data Migration;

  • Configuration & Customization (UI and code);

  • Integration - Odoo and non Odoo Applications and Services;

  • Training and Knowledge Transfer;

  • Go Live Support;

  • Helpdesk;

  • Version Upgrades and Migration.

  • Accounting Expert.

I have over 20 years of experience empowering and enabling users with enterprise information systems that make a real and measurable difference in their ability to proactively manage their businesses and organizations. 

I am a skilled Communicator and I only take the serious things seriously!

Ray Carnes
On 8/13/14, 8:37 PM


The view that adds the View Delivery Order'button is sale.order.form.sale.stock (sale_stock.view_order_form_inherit)

The XML it uses to do this is:

<button name="action_view_delivery"

string="View Delivery Order"



attrs="{'invisible': ['|','|','|',('picking_ids','=',False),('picking_ids','=',[]), ('state', 'not in', ('progress','manual')),('shipped','=',True)]}"


The invisible attribute sets the conditions under which the button is not visible.

You can remove one of the '|' (which represents OR) from the start of the attrs tag and remove ,('shipped','=',True) from the end via your own view which inherits and overrides this one to show this button even when the SO is delivered/shipped.

Similar for purchases: Purchase Picking Inherited (purchase.purchase_order_2_stock_picking) and you want to change "states="approved" " to "states="approved,done""

Ray Carnes
on 8/13/14, 8:40 PM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/13/14, 3:04 PM
Seen: 899 times
Last updated: 3/16/15, 8:10 AM