[FIX] sale_order: set state field track_visibility
authorDenis Ledoux <dle@odoo.com>
Thu, 12 Jun 2014 10:37:11 +0000 (12:37 +0200)
committerDenis Ledoux <dle@odoo.com>
Thu, 12 Jun 2014 10:37:11 +0000 (12:37 +0200)
sale_order module override state field of sale.oder (sale.sale.py) and forgot to reset the track_visibility, therefore sale orders state changes are no longer tracked once this module installed.

addons/sale_stock/sale_stock.py

index 1b21f88..d389715 100644 (file)
@@ -125,7 +125,8 @@ class sale_order(osv.osv):
             ('shipping_except', 'Shipping Exception'),
             ('invoice_except', 'Invoice Exception'),
             ('done', 'Done'),
-            ], 'Status', readonly=True,help="Gives the status of the quotation or sales order.\
+            ], 'Status', readonly=True, track_visibility='onchange',
+            help="Gives the status of the quotation or sales order.\
               \nThe exception status is automatically set when a cancel operation occurs \
               in the invoice validation (Invoice Exception) or in the picking list process (Shipping Exception).\nThe 'Waiting Schedule' status is set when the invoice is confirmed\
                but waiting for the scheduler to run on the order date.", select=True),