Hi everyone !
I want to create an action server which will transform all Quotations records to Sales order instead of Confirm each quotations to sales order.
Can ayone help me ? Thanks
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi everyone !
I want to create an action server which will transform all Quotations records to Sales order instead of Confirm each quotations to sales order.
Can ayone help me ? Thanks
Hi,
<record id="action_confirm_order" model="ir.actions.server">
<field name="name">Confirm Orders</field>
<field name="model_id" ref="sale.model_sale_order"/>
<field name="state">code</field>
<field name="binding_view_types">list</field>
<field name="code">
for record in records:
record.action_confirm()
</field>
</record>
or you can create server action by going to Settings--> Technical--> Server Actions
Hope it will help you :)
Thank you this also helped me a lot.
Now I can import my sales and bulk confirm quotations to sales orders and then bulk complete delivery orders etc. Thanks!
Yes, I can assist you with that. Do the following steps you may take to construct an action server that will convert all Quotation data into Sales orders:
Create the following code: It is now time to develop the code to convert the Quotation data into Sales orders. As a starting point, here's some sample code:
@api.model
def create(self, vals):
res = super(SaleOrder, self).create(vals)
if res.state == 'draft' and res.is_quotation:
res.action_confirm()
return res
That's all! Following these steps, you should be able to establish an action server that will change all Quotation records into Sales orders automatically. Please let me know if you have any queries or require any other support.
Thanks for your assistance but @Sahar Dagher replied to me before.
Can i have your whatsApp number for anothers problem ? am a newer in Odoo
+225 05 45 14 53 91.
Thanks a lot !
أنشئ حساباً اليوم لتستمتع بالخصائص الحصرية، وتفاعل مع مجتمعنا الرائع!
تسجيلالمنشورات ذات الصلة | الردود | أدوات العرض | النشاط | |
---|---|---|---|---|
|
1
ديسمبر 23
|
1277 | ||
|
1
نوفمبر 20
|
2391 | ||
|
2
يونيو 19
|
4297 | ||
|
4
مارس 15
|
6358 | ||
|
4
يونيو 25
|
1300 |
Thanks a lot ! it's worked. But i have another problem.
I want to make domain on this field to show only the records related to him.
G
Gestion congés is many2one field. so i want to show in this field records concerned only the employe
Thanks in advance !
i use odoo online, and odoo studio