Odoo Help

Welcome!

This community 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.

0

sale order state undefined

By
eTech
on 6/24/13, 10:05 AM 1,585 views

Hi,

My order state is undefined, and I can't delete this sale order!

please help!!!

0
Viktor Aditya
On 6/26/13, 8:07 AM

I don't know why your order state become undefined but i can help you to delete some sale order.

First, you need to activate delevoper mode. Then go to sales order form, in the debug view dropdown choose Edit FormView

In the Architeture add this " field name="state" attrs="{'readonly':0}"/" (don't forget to use bracket at the front and the back) between line 31 and 32.
Example :

                <group>
                    <group>
                         <field name="state" attrs="{'readonly':0}"/>
                         <field name="partner_id" on_change="onchange_partner_id(partner_id, context)" domain="[('customer','=',True)]" context="{'search_default_customer':1, 'show_address': 1}" options="{&quot;always_reload&quot;: True}"/>
                        <field name="partner_invoice_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'invoice'}"/>
                        <field name="partner_shipping_id" groups="sale.group_delivery_invoice_address" context="{'default_type':'delivery'}"/>

The result is, at your sales order form, there will be a new field called Status. In that field you could freely choose your order state. Set it to draf and delete it

I tried using the method you suggested.but when i change the status and it is saved,the following error occurs. Client Traceback (most recent call last): File "/opt/openerp/server/openerp/addons/web/http.py", line 204, in dispatch response["result"] = method(self, **self.params) File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1125, in call_kw return self._call_kw(req, model, method, args, kwargs) File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1117, in _call_kw return getattr(req.session.model(model), method)(*args, **kwargs) File "/opt/openerp/server/openerp/addons/web/session.py", line 42, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/opt/openerp/server/openerp/addons/web/session.py", line 30, in proxy_method result = self.session.send(self.service_name, method, *args) File "/opt/openerp/server/openerp/addons/web/session.py", line 103, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info) Server Traceback (most recent call last): File "/opt/openerp/server/openerp/addons/web/session.py", line 89, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/opt/openerp/server/openerp/netsvc.py", line 292, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/opt/openerp/server/openerp/service/web_services.py", line 626, in dispatch res = fn(db, uid, *params) File "/opt/openerp/server/openerp/osv/osv.py", line 190, in execute_kw return self.execute(db, uid, obj, method, *args, **kw or {}) File "/opt/openerp/server/openerp/osv/osv.py", line 132, in wrapper return f(self, dbname, *args, **kwargs) File "/opt/openerp/server/openerp/osv/osv.py", line 199, in execute res = self.execute_cr(cr, uid, obj, method, *args, **kw) File "/opt/openerp/server/openerp/osv/osv.py", line 187, in execute_cr return getattr(object, method)(cr, uid, *args, **kw) File "/opt/openerp/server/openerp/addons/mail/mail_thread.py", line 289, in write self.message_track(cr, uid, ids, tracked_fields, initial_values, context=track_ctx) File "/opt/openerp/server/openerp/addons/mail/mail_thread.py", line 372, in message_track old_value=convert_for_display(initial[col_name], col_info), File "/opt/openerp/server/openerp/addons/mail/mail_thread.py", line 342, in convert_for_display return dict(col_info['selection'])[value] KeyError: u'shipping_except'

sneha antony
on 7/17/14, 2:47 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 6/24/13, 10:05 AM
Seen: 1585 times
Last updated: 3/16/15, 8:10 AM