Se rendre au contenu
Odoo Menu
  • Se connecter
  • Essai gratuit
  • Applications
    Finance
    • Comptabilité
    • Facturation
    • Notes de frais
    • Feuilles de calcul (BI)
    • Documents
    • Signature
    Ventes
    • CRM
    • Ventes
    • PdV Boutique
    • PdV Restaurant
    • Abonnements
    • Location
    Sites web
    • Site Web
    • eCommerce
    • Blog
    • Forum
    • Live Chat
    • eLearning
    Chaîne d'approvisionnement
    • Inventaire
    • Fabrication
    • PLM
    • Achats
    • Maintenance
    • Qualité
    Ressources Humaines
    • Employés
    • Recrutement
    • Congés
    • Évaluations
    • Recommandations
    • Parc automobile
    Marketing
    • Marketing Social
    • E-mail Marketing
    • SMS Marketing
    • Événements
    • Marketing Automation
    • Sondages
    Services
    • Projet
    • Feuilles de temps
    • Services sur Site
    • Assistance
    • Planification
    • Rendez-vous
    Productivité
    • Discussion
    • Validations
    • Internet des Objets
    • VoIP
    • Connaissances
    • WhatsApp
    Applications tierces Odoo Studio Plateforme Cloud d'Odoo
  • Industries
    Commerce de détail
    • Librairie
    • Magasin de vêtements
    • Magasin de meubles
    • Épicerie
    • Quincaillerie
    • Magasin de jouets
    Food & Hospitality
    • Bar et Pub
    • Restaurant
    • Fast-food
    • Maison d’hôtes
    • Distributeur de boissons
    • Hôtel
    Immobilier
    • Agence immobilière
    • Cabinet d'architecture
    • Construction
    • Gestion immobilière
    • Jardinage
    • Association de copropriétaires
    Consultance
    • Cabinet d'expertise comptable
    • Partenaire Odoo
    • Agence Marketing
    • Cabinet d'avocats
    • Aquisition de talents
    • Audit & Certification
    Fabrication
    • Textile
    • Métal
    • Meubles
    • Alimentation
    • Brewery
    • Cadeaux d'entreprise
    Santé & Fitness
    • Club de sports
    • Opticien
    • Salle de fitness
    • Praticiens bien-être
    • Pharmacie
    • Salon de coiffure
    Trades
    • Bricoleur
    • Matériel informatique et support
    • Systèmes photovoltaïques
    • Cordonnier
    • Services de nettoyage
    • Services CVC
    Autres
    • Organisation à but non lucratif
    • Agence environnementale
    • Location de panneaux d'affichage
    • Photographie
    • Leasing de vélos
    • Revendeur de logiciel
    Browse all Industries
  • Communauté
    Apprenez
    • Tutoriels
    • Documentation
    • Certifications
    • Formation
    • Blog
    • Podcast
    Renforcer l'éducation
    • Programme éducatif
    • Business Game Scale-Up!
    • Rendez-nous visite
    Obtenir le logiciel
    • Téléchargement
    • Comparez les éditions
    • Versions
    Collaborer
    • Github
    • Forum
    • Événements
    • Traductions
    • Devenez partenaire
    • Services for Partners
    • Enregistrer votre cabinet comptable
    Nos Services
    • Trouver un partenaire
    • Trouver un comptable
    • Rencontrer un conseiller
    • Services de mise en œuvre
    • Références clients
    • Assistance
    • Mises à niveau
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Obtenir une démonstration
  • Tarification
  • Aide

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

  • CRM
  • e-Commerce
  • Comptabilité
  • Inventaire
  • PoS
  • Projet
  • MRP
All apps
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Vous devez être inscrit pour interagir avec la communauté.
Toutes les publications Personnes Badges
Étiquettes (Voir toutl)
odoo accounting v14 pos v15
À propos de ce forum
Aide

[Solved] Create Sale Oder when click button "Save" - skip Quotation

S'inscrire

Recevez une notification lorsqu'il y a de l'activité sur ce poste

Cette question a été signalée
salequotationsale_order
2 Réponses
11501 Vues
Avatar
Van Tran

Hi everyone

I try to create Sale Oder in module Sale directly when I click "Save" button in create Quotation form, it means I skip creating Quotation step when I click it. My system doesn't need "comfirm sale" button, because it creates a sale order directly, and I can hide this button.

I try changing "state" value in default from "draft" to "manual" in sale.py, but it doesn't work. So, How do I do it?

Help me, please

Thank you.

0
Avatar
Ignorer
Avatar
Mariusz Mizgier
Meilleure réponse

You will have to modify sale_order function for create to call the workflow:

wf_service.trg_validate(uid, 'sale.order', ids[0], 'order_confirm', cr)

That way creating a new quotation will automatically go through workflow and create a sale order.

2
Avatar
Ignorer
Avatar
Van Tran
Auteur Meilleure réponse

Hi Mariusz Mizgier
I know your code, It same in function "action button confirm" and it set confirm for the quotation. But "sale_order" is a class, I cant found a function with name "sale_order" or I dont know which function create a quotation to add your code here.

And I will create a module to inherit "sale" module, so, How do I modify that function to create sale order directly

Please explain more for me, please!!!

Thank you so much!

0
Avatar
Ignorer
Mariusz Mizgier

I've created a small module for you - check it out at https://drive.google.com/file/d/0B_0MqUxRHKNjVUdGdkRjdEFJbVk/edit?usp=sharing This overrides default create method then auto-confirms quotation to make it sale order. You can make some tweaks to hide buttons in form view.

OdooBot
Hi Mariusz Mizgier

I received you module and it worked. Thank you so much, you are very kind.
Thank you again! 

2014-08-01 17:16 GMT+07:00 Mariusz Mizgier <mariusz.mizgier@currenda.pl>:

I've created a small module for you - check it out at https://drive.google.com/file/d/0B_0MqUxRHKNjVUdGdkRjdEFJbVk/edit?usp=sharing This overrides default create method then auto-confirms quotation to make it sale order. You can make some tweaks to hide buttons in form view.

--
Mariusz Mizgier Sent by OpenERP S.A. using Odoo. Access your messages and documents in Odoo



--
Trần Như Văn
MSSV: 51104177
K11 Bách Khoa Tp.HCM
Khoa: Khoa học và Kĩ thuật máy tính
Mariusz Mizgier

That's great to hear, if you can be so kind and mark the question as solved that would be great ;)

OdooBot
Hi Mariusz Mizgier

I have a little problem. That is modifying a function, which return default value of a column. I'm very glad if you help me, please!
I wrote "super(<my_class>, self).<my_function>(cr, uid, context)" in the function content, but it didn't override the function I want. So, when I run openERP, in module "Warehouse" and create a "Incoming Products", the Location have been changed value default as i override, but after that, it return old default value
Here is my problem : https://www.odoo.com/forum/help-1/question/how-can-i-change-field-value-in-default-59449

Thank you so much.

--
Trần Như Văn
MSSV: 51104177
K11 Bách Khoa Tp.HCM
Khoa: Khoa học và Kĩ thuật máy tính
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !

Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !

S'inscrire
Publications associées Réponses Vues Activité
How do I hide the widget if I am in the sales role?
widget sale quotation
Avatar
0
oct. 24
1748
Sales Order Line, Discount applied on tax amount but not on Unit price.
sale sale.order.line quotation
Avatar
0
mars 15
5165
Odoo 17 bypassing SaleOrder action_quotation_send wizard.
sale quotation sale.order mailtemplate
Avatar
0
avr. 24
2382
How to create a sale quotation from a purchase quotation? Résolu
purchase sale order quotation
Avatar
2
déc. 15
5133
How to create a sale quotation copy after confim sale button?
sale quotation duplicate openerp7.0
Avatar
Avatar
1
déc. 15
4539
Communauté
  • Tutoriels
  • Documentation
  • Forum
Open Source
  • Téléchargement
  • Github
  • Runbot
  • Traductions
Services
  • Hébergement Odoo.sh
  • Assistance
  • Migration
  • Développements personnalisés
  • Éducation
  • Trouver un comptable
  • Trouver un partenaire
  • Devenez partenaire
À propos
  • Notre société
  • Actifs de la marque
  • Contactez-nous
  • Emplois
  • Événements
  • Podcast
  • Blog
  • Clients
  • Informations légales • Confidentialité
  • Sécurité.
الْعَرَبيّة 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 est une suite d'applications open source couvrant tous les besoins de votre entreprise : CRM, eCommerce, Comptabilité, Inventaire, Point de Vente, Gestion de Projet, etc.

Le positionnement unique d'Odoo est d'être à la fois très facile à utiliser et totalement intégré.

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