Skip to Content
Odoo Menú
  • Registra entrada
  • Prova-ho gratis
  • Aplicacions
    Finances
    • Comptabilitat
    • Facturació
    • Despeses
    • Full de càlcul (IA)
    • Documents
    • Signatura
    Vendes
    • CRM
    • Vendes
    • Punt de venda per a botigues
    • Punt de venda per a restaurants
    • Subscripcions
    • Lloguer
    Imatges de llocs web
    • Creació de llocs web
    • Comerç electrònic
    • Blog
    • Fòrum
    • Xat en directe
    • Aprenentatge en línia
    Cadena de subministrament
    • Inventari
    • Fabricació
    • PLM
    • Compres
    • Manteniment
    • Qualitat
    Recursos humans
    • Empleats
    • Reclutament
    • Absències
    • Avaluacions
    • Recomanacions
    • Flota
    Màrqueting
    • Màrqueting Social
    • Màrqueting per correu electrònic
    • Màrqueting per SMS
    • Esdeveniments
    • Automatització del màrqueting
    • Enquestes
    Serveis
    • Projectes
    • Fulls d'hores
    • Servei de camp
    • Suport
    • Planificació
    • Cites
    Productivitat
    • Converses
    • Validacions
    • IoT
    • VoIP
    • Coneixements
    • WhatsApp
    Aplicacions de tercers Odoo Studio Plataforma d'Odoo al núvol
  • Sectors
    Comerç al detall
    • Llibreria
    • Botiga de roba
    • Botiga de mobles
    • Botiga d'ultramarins
    • Ferreteria
    • Botiga de joguines
    Food & Hospitality
    • Bar i pub
    • Restaurant
    • Menjar ràpid
    • Guest House
    • Distribuïdor de begudes
    • Hotel
    Immobiliari
    • Agència immobiliària
    • Estudi d'arquitectura
    • Construcció
    • Gestió immobiliària
    • Jardineria
    • Associació de propietaris de béns immobles
    Consultoria
    • Empresa comptable
    • Partner d'Odoo
    • Agència de màrqueting
    • Bufet d'advocats
    • Captació de talent
    • Auditoria i certificació
    Fabricació
    • Textile
    • Metal
    • Mobles
    • Menjar
    • Brewery
    • Regals corporatius
    Salut i fitness
    • Club d'esport
    • Òptica
    • Centre de fitness
    • Especialistes en benestar
    • Farmàcia
    • Perruqueria
    Trades
    • Servei de manteniment
    • Hardware i suport informàtic
    • Sistemes d'energia solar
    • Shoe Maker
    • Serveis de neteja
    • Instal·lacions HVAC
    Altres
    • Nonprofit Organization
    • Agència del medi ambient
    • Lloguer de panells publicitaris
    • Fotografia
    • Lloguer de bicicletes
    • Distribuïdors de programari
    Browse all Industries
  • Comunitat
    Aprèn
    • Tutorials
    • Documentació
    • Certificacions
    • Formació
    • Blog
    • Pòdcast
    Potenciar l'educació
    • Programa educatiu
    • Scale-Up! El joc empresarial
    • Visita Odoo
    Obtindre el programari
    • Descarregar
    • Comparar edicions
    • Novetats de les versions
    Col·laborar
    • GitHub
    • Fòrum
    • Esdeveniments
    • Traduccions
    • Converteix-te en partner
    • Services for Partners
    • Registra la teva empresa comptable
    Obtindre els serveis
    • Troba un partner
    • Troba un comptable
    • Contacta amb un expert
    • Serveis d'implementació
    • Referències del client
    • Suport
    • Actualitzacions
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Programar una demo
  • Preus
  • Ajuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Comptabilitat
  • Inventari
  • PoS
  • Projectes
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Etiquetes (View all)
odoo accounting v14 pos v15
About this forum
Ajuda

Automate actions to make all Quotations in Sales order.

Subscriure's

Get notified when there's activity on this post

This question has been flagged
quotationsalesorderAutomation
3 Respostes
6029 Vistes
Avatar
Abdul Qoudouss

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 

0
Avatar
Descartar
Abdul Qoudouss
Autor

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.


Gimage0

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

Avatar
Sahar Dagher
Best Answer

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 :)

0
Avatar
Descartar
Avatar
Morticia Morris
Best Answer

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!

0
Avatar
Descartar
Avatar
jhonplayer21
Best Answer

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:

  1. Specify the action: Begin by identifying the action you wish to do. You wish to convert all Quotation records into Sales orders in this situation. Give your action a name and a description to make it easier to recognize afterwards.
  2. Define the trigger: The trigger that will activate the action server must be defined next. In this scenario, you want the action to be triggered whenever a Quotation record is created or changed. This trigger may be defined using an onchange or oncreate function.
  3. 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
  4. Test the code: Before deploying your action server, you should test the code to ensure it works as planned. Create a new Quotation record and update it to test if it is immediately converted into a Sales Order.
  5. Deploy the action server: Finally, you may put your action server into production. Check it again to ensure that everything is operating properly.

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.

0
Avatar
Descartar
Abdul Qoudouss
Autor

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 !

Enjoying the discussion? Don't just read, join in!

Create an account today to enjoy exclusive features and engage with our awesome community!

Registrar-se
Related Posts Respostes Vistes Activitat
Disable Auto Create Sales Order From Quotation
quotation salesorder
Avatar
1
de des. 23
2336
Is there no way to name a sales order? V13
quotation name salesorder
Avatar
Avatar
1
de nov. 20
3250
how to add Subject Name in quotation to pdf file name Solved
pdf quotation salesorder
Avatar
Avatar
2
de juny 19
5424
How to set new numeric sequence of quotations (sales orders)?
sequence quotation salesorder numeric
Avatar
Avatar
Avatar
Avatar
4
de març 15
7585
Multiple lines in the quotation calculator
quotation
Avatar
0
de nov. 25
944
Community
  • Tutorials
  • Documentació
  • Fòrum
Codi obert
  • Descarregar
  • GitHub
  • Runbot
  • Traduccions
Serveis
  • Allotjament a Odoo.sh
  • Suport
  • Actualització
  • Desenvolupaments personalitzats
  • Educació
  • Troba un comptable
  • Troba un partner
  • Converteix-te en partner
Sobre nosaltres
  • La nostra empresa
  • Actius de marca
  • Contacta amb nosaltres
  • Llocs de treball
  • Esdeveniments
  • Pòdcast
  • Blog
  • Clients
  • Informació legal • Privacitat
  • Seguretat
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo és un conjunt d'aplicacions empresarials de codi obert que cobreix totes les necessitats de la teva empresa: CRM, comerç electrònic, comptabilitat, inventari, punt de venda, gestió de projectes, etc.

La proposta única de valor d'Odoo és ser molt fàcil d'utilitzar i estar totalment integrat, ambdues alhora.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now