Skip to Content
Odoo Menu
  • Prisijungti
  • Išbandykite nemokamai
  • Programėlės
    Finansai
    • Apskaita
    • Pateikimas apmokėjimui
    • Sąnaudos
    • Skaičiuoklė (BI)
    • Dokumentai
    • Pasirašymas
    Pardavimai
    • CRM
    • Pardavimai
    • Kasų sistema - Parduotuvė
    • Kasų sistema - Restoranas
    • Prenumeratos
    • Nuoma
    Svetainės
    • Svetainių kūrėjimo įrankis
    • El. Prekyba
    • Internetinis Tinklaraštis
    • Forumas
    • Tiesioginis pokalbis
    • eMokymasis
    Tiekimo grandinė
    • Atsarga
    • Gamyba
    • PLM
    • Įsigijimai
    • Priežiūra
    • Kokybė
    Žmogaus ištekliai
    • Darbuotojai
    • Įdarbinimas
    • Atostogos
    • Įvertinimai
    • Rekomendacijos
    • Transporto priemonės
    Rinkodara
    • Socialinė rinkodara
    • Rinkodara el. paštu
    • SMS rinkodara
    • Renginiai
    • Rinkodaros automatizavimas
    • Apklausos
    Paslaugos
    • Projektas
    • Darbo laiko žiniaraščiai
    • Priežiūros tarnyba
    • Pagalbos tarnyba
    • Planavimas
    • Rezervacijos
    Produktyvumas
    • Diskucija
    • Patvirtinimai
    • IoT
    • VoIP
    • Žinių biblioteka
    • WhatsApp
    Trečiųjų šalių programos Odoo Studija Odoo debesijos platforma
  • Pramonės šakos
    Mažmeninė prekyba
    • Knygynas
    • Drabužių parduotuvė
    • Baldų parduotuvė
    • Maisto prekių parduotuvė
    • Techninės įrangos parduotuvė
    • Žaislų parduotuvė
    Food & Hospitality
    • Barai ir pub'ai
    • Restoranas
    • Greitasis maistas
    • Guest House
    • Gėrimų platintojas
    • Hotel
    Nekilnojamasis turtas
    • Real Estate Agency
    • Architektūros įmonė
    • Konstrukcija
    • Estate Managament
    • Sodininkauti
    • Turto savininkų asociacija
    Konsultavimas
    • Accounting Firm
    • Odoo Partneris
    • Marketing Agency
    • Teisinė firma
    • Talentų paieška
    • Auditai & sertifikavimas
    Gamyba
    • Textile
    • Metal
    • Furnitures
    • Maistas
    • Brewery
    • Įmonių dovanos
    Sveikata & Fitnesas
    • Sporto klubas
    • Akinių parduotuvė
    • Fitneso Centras
    • Sveikatos praktikai
    • Vaistinė
    • Kirpėjas
    Trades
    • Handyman
    • IT įranga ir palaikymas
    • Saulės energijos sistemos
    • Shoe Maker
    • Cleaning Services
    • HVAC Services
    Kiti
    • Nonprofit Organization
    • Aplinkos agentūra
    • Reklaminių stendų nuoma
    • Fotografavimas
    • Dviračių nuoma
    • Programinės įrangos perpardavėjas
    Browse all Industries
  • Bendrija
    Mokykitės
    • Mokomosios medžiagos
    • Dokumentacija
    • Sertifikatai
    • Mokymai
    • Internetinis Tinklaraštis
    • Tinklalaidės
    Skatinkite švietinimą
    • Švietimo programa
    • Scale Up! Verslo žaidimas
    • Aplankykite Odoo
    Gaukite programinę įrangą
    • Atsisiųsti
    • Palyginkite versijas
    • Leidimai
    Bendradarbiauti
    • Github
    • Forumas
    • Renginiai
    • Vertimai
    • Tapkite partneriu
    • Services for Partners
    • Registruokite jūsų apskaitos įmonę
    Gaukite paslaugas
    • Susiraskite partnerį
    • Susirask buhalterį
    • Susitikti su konsultantu
    • Diegimo paslaugos
    • Klientų rekomendavimas
    • Palaikymas
    • Atnaujinimai
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Gaukite demo
  • Kainodara
  • Pagalba

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

  • CRM
  • e-Commerce
  • Apskaita
  • Atsarga
  • PoS
  • Projektas
  • MRP
All apps
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
You need to be registered to interact with the community.
All Posts People Badges
Žymos (View all)
odoo accounting v14 pos v15
About this forum
Pagalba

How to add a new status to the sales app(quotation) using studio?

Prenumeruoti

Get notified when there's activity on this post

This question has been flagged
sale.order.formsale.orderdeveloperv14
2 Replies
4781 Rodiniai
Portretas
Abdul Razak

Can anyone help me to add a new status in the existing status bar in the quotation. I am using odoo version 14 enterprise edition.

Many thanks.

1
Portretas
Atmesti
Portretas
Gopakumar N G
Best Answer

You can use the selection_add property in a field definition for achieving this.

state = fields.Selection(selection_add=[('new_status', 'New Status')]

You can add the above code in a new module and also need to add it in the form view by inheriting it.


You need to create a new module for doing the above. You can check the official documentation for getting started with Odoo module development( Module development ). Then inside your module you need to inherit the "sale.order" model and add the field as suggested above. After that you need to add it in the form view of sales order(in an XML file) to see the field in the UI. You can check the documentation for inheritance here Inheritance


Detailed:

Create a folder inside your addons(or create a folder outside of it naming 'custom_addons' and add it in your addons_path) naming 'sale_order_new_status'. Inside that folder add an __init__.py file and __manifest__.py file. In the __initt__.py file you need to import the python files you are going to use for the new module. In the manifest file you can specify the module details and also add the XML files (Manifest File). Then add two folders naming 'models' and 'views' inside your module.

Inside the models folder add two python files naming __init__.py and sale.py. In the '__init__.py' file inside your module add the following line:

from . import models

Then in the __init__.py file inside models folder add the following line:

from . import sale

Then in the sale.py file add the following:

from odoo import fields, models
class SaleOrder(models.Model):
    _inherit = "sale.order"
    state = fields.Selection(selection_add=[('new_status', 'New Status')]


Then add the view inheritance in the sale_views file inside views directory and also mention the file name inside data section of the manifest file.


Then add the file to the manifest file(data section). Then you can go to "Update apps list" inside the Apps menu and then search for your module and install it. You may also need to add python methods for the transition from and to the new status added.

1
Portretas
Atmesti
Abdul Razak
Autorius

Since I am new to odoo can you help me where we can put the code and how to inherit it?

Gopakumar N G

I have updated the answer. Hope you can use it to add the new status.

Portretas
Asha
Best Answer

Inherit model sale.order

then add state=fields.Selection(selection_add=[('new_status', 'New Status')]  in .py 

Inherit the form view sale.view_order_form and add the new status inside the statusbar_visible

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

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

Registracija
Related Posts Replies Rodiniai Veikla
How to show sales/purchase (order/quotation) to the new company?
salesteams forum sale.order.form developer v14
Portretas
Portretas
Portretas
2
geg. 22
3093
I need a today filter with confirmed sale order. Solved
filter sale.order developer odoo v14
Portretas
Portretas
1
bal. 22
2702
Modificación Lista de Productos en una Orden de Venta Solved
sale.order.line sale.order.form sale.order
Portretas
Portretas
2
bal. 25
1535
Issue with amount_untaxed field value getting overwritten after saving in sale order module in Odoo14
sale.order compute v14
Portretas
0
saus. 24
169
In which method and module is created new delivery from sale order? Solved
delivery sale.order v14
Portretas
Portretas
1
spal. 21
5528
Bendrija
  • Mokomosios medžiagos
  • Dokumentacija
  • Forumas
Atvirasis kodas
  • Atsisiųsti
  • Github
  • Runbot
  • Vertimai
Paslaugos
  • Odoo.sh talpinimas
  • Palaikymas
  • Atnaujinti
  • Pritaikytas programavimo kūrimas
  • Švietimas
  • Susirask buhalterį
  • Susiraskite partnerį
  • Tapkite partneriu
Apie mus
  • Mūsų įmonė
  • Prekės ženklo turtas
  • Susisiekite su mumis
  • Darbo pasiūlymai
  • Renginiai
  • Tinklalaidės
  • Internetinis Tinklaraštis
  • Klientai
  • Teisinis • Privatumas
  • Saugumas
الْعَرَبيّة 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 yra atvirojo kodo verslo programų rinkinys, kuris apima visas įmonės poreikius: CRM, El. Prekybą, Apskaitą, Atsargų, Kasų sistemą, Projektų valdymą ir kt.

Unikali Odoo vertės pasiūla – būti tuo pačiu metu labai lengvai naudojama ir visiškai integruota sistema.

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