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

Hello,

If I deactivate the sequence on sales order, can I manually enter a number for each quotation ?


Thank you for your help.


Regards,

Marina

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

Hi Marina, 

1. Go to the sales module -> Open one of the sales orders (form view)

2. Go to the studio (by clicking the tool icon at the right top corner)

3. Edit the condition as shown in the image below


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

Hi,


Please refer to the following module for adding sequence numbers for sales quotations and sale orders:


https://apps.odoo.com/apps/modules/17.0/separate_quotation_number_odoo


Hope it helps

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

Hello Marina BOBLEI, 


    If you deactivate the sequence of Quotation, then still the 'name' filed is readonly.

    So, to assign manually a quotation number you need to change the attribute of name field 

    to readonly = 0.

    

    Please add below snippet code in your .xml file.

//code in comment

or else, you can directly go to the Edit view Form, and for testing you can directly

    change the attribute of name field from the UI side.


    Hope this helps.

    

    If you need any help in customization feel free to contact us.

        

Thanks & Regards,

Email:  odoo@aktivsoftware.com           

Skype: kalpeshmaheshwari 

อวตาร
ละทิ้ง

Code :

<?xml version="1.0" encoding="utf-8"?>
<odoo>
<record id="sale_order_form_view_inherit_new" model="ir.ui.view">
<field name="name">sale.order.form.view.inherit</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//field[@name='name']" position="attributes">
<attribute name="readonly">0</attribute>
</xpath>
</field>
</record>
</odoo>

Related Posts ตอบกลับ มุมมอง กิจกรรม
1
พ.ย. 18
3660
2
พ.ย. 16
3316
1
พ.ค. 25
912
0
เม.ย. 25
2463
2
พ.ย. 24
2142