how to customize the ordered stae in sales order form.

Asked by Pravitha V

hello friends ,

i want to know where should i edit to change the default field value named "Quotation"of ordered state in sales order. Where is its code located? i searched a lot but didnt got. i want to change the name "quotation" to "quotation prepared".can anyone please help. Its very urgent.............

Question information

Language:
English Edit question
Status:
Solved
For:
Odoo Server (MOVED TO GITHUB) Edit question
Assignee:
No assignee Edit question
Solved by:
Pravitha V
Solved:
Last query:
Last reply:
Revision history for this message
Gautam (gditerp) said :
#1

Hi,
Its defined in openobject-addons/sale/sale.py:
'state': fields.selection([
            ('draft', 'Quotation'),
            ('waiting_date', 'Waiting Schedule'),
            ('manual', 'To Invoice'),
            ('progress', 'In Progress'),
            ('shipping_except', 'Shipping Exception'),
            ('invoice_except', 'Invoice Exception'),
            ('done', 'Done'),
            ('cancel', 'Cancelled')
            ], 'Order State', readonly=True, help="Givwizard = self.browse(cr, uid, ids)[0]es the state of the quotation or sales order. \nThe exception state 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' state is set when the invoice is confirmed but waiting for the scheduler to run on the order date.", select=True),

You can write a module to override the labels.

Revision history for this message
Pravitha V (pravithavarghese1) said :
#2

"You can write a module to override the labels."

sir what you meant by this?cna u explain in detail? pleaseeeeeee am a newbee in openerp and i have lots of doubts and confusions.......

Revision history for this message
Pravitha V (pravithavarghese1) said :
#3

i just want replace "quotation". That is the order state should be displayed as "Quotation prepared" and not "Quotation" in the same form......

Revision history for this message
Quentin THEURET @Amaris (qtheuret) said :
#4

Le 02/02/2012 10:01, Nightfury a écrit :
> New question #186589 on OpenERP Server:
> https://answers.launchpad.net/openobject-server/+question/186589
>
> hello friends ,
>
> i want to know where should i edit to change the default field value named "Quotation"of ordered state in sales order. Where is its code located? i searched a lot but didnt got. can anyone please help. Its very urgent.............
>
Hello nightfury,

You've two possibilities to do that :

1/ Directly in source code : addons/sale/sale.py − Search the sale_order
python class and you will find the 'Quotation' term in the 'state' field.

2/ By making a new lang : In OpenERP interface : go to Settings /
Translations / Import/Export / Export translation − Change term in the
.po file and import the new language.

Kind regards,

--
Quentin THEURET
<email address hidden>

Revision history for this message
Quentin THEURET @Amaris (qtheuret) said :
#5

> "You can write a module to override the labels."

> sir what you meant by this?cna u explain in detail? pleaseeeeeee am a newbee in openerp and i have lots of doubts and
> confusions.......

I think you should tried to understand how OpenERP works before tried to make some customizations in it !

Revision history for this message
Pravitha V (pravithavarghese1) said :
#6

i edited the sale.py file and saved it....then i upgraded the module named sale.....but nothing changed.

Revision history for this message
Quentin THEURET @Amaris (qtheuret) said :
#7

Have you reloaded the server ?

--
Quentin THEURET
<email address hidden>

Revision history for this message
Pravitha V (pravithavarghese1) said :
#8

yeah

Revision history for this message
Pravitha V (pravithavarghese1) said :
#9

thankyou sir i got it thankyou so muchhhhhhhhhhhhhhhhhhhhhhhh i restarted the server and the changed just showed up.......