Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3699 มุมมอง

Hi friends,

I have to made some customiztions in sale.order for revisions.So i have to add new state in sale order form.But cant able to add that new state.Please help me in this...When press the button it warns me that the sale_order.state 'quot_confirm' not available.But i have added it in state field.reply me ASAP.

 

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

hi vadivel,

 

class sale_order(osv.osv):
    _inherit = 'sale.order'
    
    _columns={
                'state': fields.selection([

            ('quot_confirm', 'Confirm'),
            ('draft', 'Draft Quotation'),
            ('sent', 'Quotation Sent'),
            ('cancel', 'Cancelled'),
            ('waiting_date', 'Waiting Schedule'),
            ('progress', 'Sales Order'),
            ('manual', 'Sale to Invoice'),
            ('invoice_except', 'Invoice Exception'),
            ('done', 'Done'),
            ], '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 processing of a document linked to the sales order. \nThe 'Waiting Schedule' status is set when the invoice is confirmed but waiting for the scheduler to run on the order date.", select=True),
                              
                }
    
sale_order()

อวตาร
ละทิ้ง
ผู้เขียน

I did this already have not been updated..Something else needed?????????

change the xml file also with xpath

Related Posts ตอบกลับ มุมมอง กิจกรรม
what is Shipping Policy? แก้ไขแล้ว
2
ธ.ค. 24
11446
1
พ.ค. 25
1075
2
ก.พ. 25
9889
2
ก.ย. 23
7722
2
มี.ค. 23
46820