Skip to Content
Odoo Menu
  • Zaloguj się
  • Wypróbuj za darmo
  • Aplikacje
    Finanse
    • Księgowość
    • Fakturowanie
    • Wydatki
    • Arkusz kalkulacyjny (BI)
    • Dokumenty
    • Podpisy
    Sprzedaż
    • CRM
    • Sprzedaż
    • PoS Sklep
    • PoS Restauracja
    • Subskrypcje
    • Wypożyczalnia
    Strony Internetowe
    • Kreator Stron Internetowych
    • eCommerce
    • Blog
    • Forum
    • Czat na Żywo
    • eLearning
    Łańcuch dostaw
    • Magazyn
    • Produkcja
    • PLM
    • Zakupy
    • Konserwacja
    • Jakość
    Zasoby Ludzkie
    • Pracownicy
    • Rekrutacja
    • Urlopy
    • Ocena pracy
    • Polecenia Pracownicze
    • Flota
    Marketing
    • Marketing Społecznościowy
    • E-mail Marketing
    • SMS Marketing
    • Wydarzenia
    • Automatyzacja Marketingu
    • Ankiety
    Usługi
    • Projekt
    • Ewidencja czasu pracy
    • Usługi Terenowe
    • Helpdesk
    • Planowanie
    • Spotkania
    Produktywność
    • Dyskusje
    • Zatwierdzenia
    • IoT
    • VoIP
    • Baza wiedzy
    • WhatsApp
    Aplikacje trzecich stron Studio Odoo Odoo Cloud Platform
  • Branże
    Sprzedaż detaliczna
    • Księgarnia
    • Sklep odzieżowy
    • Sklep meblowy
    • Sklep spożywczy
    • Sklep z narzędziami
    • Sklep z zabawkami
    Żywienie i hotelarstwo
    • Bar i Pub
    • Restauracja
    • Fast Food
    • Pensjonat
    • Dystrybutor napojów
    • Hotel
    Agencja nieruchomości
    • Agencja nieruchomości
    • Biuro architektoniczne
    • Budowa
    • Zarządzanie nieruchomościami
    • Ogrodnictwo
    • Stowarzyszenie właścicieli nieruchomości
    Doradztwo
    • Biuro księgowe
    • Partner Odoo
    • Agencja marketingowa
    • Kancelaria prawna
    • Agencja rekrutacyjna
    • Audyt i certyfikacja
    Produkcja
    • Tekstylia
    • Metal
    • Meble
    • Jedzenie
    • Browar
    • Prezenty firmowe
    Zdrowie & Fitness
    • Klub sportowy
    • Salon optyczny
    • Centrum fitness
    • Praktycy Wellness
    • Apteka
    • Salon fryzjerski
    Transakcje
    • Złota rączka
    • Wsparcie Sprzętu IT
    • Systemy energii słonecznej
    • Szewc
    • Firma sprzątająca
    • Usługi HVAC
    Inne
    • Organizacja non-profit
    • Agencja Środowiskowa
    • Wynajem billboardów
    • Fotografia
    • Leasing rowerów
    • Sprzedawca oprogramowania
    Przeglądaj wszystkie branże
  • Community
    Ucz się
    • Samouczki
    • Dokumentacja
    • Certyfikacje
    • Szkolenie
    • Blog
    • Podcast
    Pomóż w nauce innym
    • Program Edukacyjny
    • Scale Up! Gra biznesowa
    • Odwiedź Odoo
    Skorzystaj z oprogramowania
    • Pobierz
    • Porównaj edycje
    • Wydania
    Współpracuj
    • Github
    • Forum
    • Wydarzenia
    • Tłumaczenia
    • Zostań partnerem
    • Usługi dla partnerów
    • Zarejestruj swoją firmę rachunkową
    Skorzystaj z usług
    • Znajdź partnera
    • Znajdź księgowego
    • Spotkaj się z doradcą
    • Usługi wdrożenia
    • Opinie klientów
    • Wsparcie
    • Aktualizacje
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Zaplanuj demo
  • Cennik
  • Pomoc

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

  • CRM
  • e-Commerce
  • Księgowość
  • Zapasy
  • PoS
  • Projekt
  • MRP
All apps
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
Wszystkie posty Osoby Odznaki
Tagi (Zobacz wszystko)
odoo accounting v14 pos v15
O tym forum
Pomoc

Odoo data update without the DB access and SSH access

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
developmentconfigurationsystemfunction
2 Odpowiedzi
1952 Widoki
Awatar
Hari

If we face the support from the client to update the Quotation Date in the  sale module, when the fields was in readonly, is there any options in odoo to do that without the DB access and SSH access, only with the admin username and password.

Is it possible in odoo ? if it's there  any options means, let me know the proper way to update the data.

0
Awatar
Odrzuć
Hari
Autor

Thanks Ray

Awatar
Nikhil Dhiman
Najlepsza odpowiedź

1. Use Odoo's Debug Mode

Enable Developer Mode:


Go to your Odoo instance.

Add ?debug=1 to the URL or use the developer tools from the settings menu.

Modify Field Properties Temporarily:


Navigate to the form where the field is readonly.

Use the developer tools to locate the field (Inspect Field option).

Temporarily remove the readonly attribute in the view by duplicating the view and editing it via the "Edit View: Form" menu.

Example:


Locate the XML snippet in the view:

xml

Copy code

<field name="quotation_date" readonly="1"/>

Remove readonly="1" or set it conditionally:

xml

Copy code

<field name="quotation_date" attrs="{'readonly': [('state', '=', 'done')]}"/>

Save and Reload:


After saving the view, reload the form. The field will now be editable.


2. Use Automated Actions

If modifying the field directly is not an option, you can use an automated action to update the field value programmatically.


Steps:

Go to Settings > Technical > Automated Actions.


Create a New Automated Action:


Model: Select the model you want to update (eg, sale.order).

Trigger: Choose On Update or On Time-Based Conditions.

Action: Add Python code to update the field.

Example:


python

Copy code

if record.id == your_record_id:

    record.quotation_date = '2023-12-01'

0
Awatar
Odrzuć
Hari
Autor

Thanks Nikhil

Awatar
Ray Carnes (ray)
Najlepsza odpowiedź

The Quotation date is only readonly once the Quotation has been confirmed into a Sales Order.

Assuming you want to update the Order Date (date_order) of a Sales Order (which is updated to the Date the Quotation was confirmed) you can do this in a Server Action.

Activate Developer Mode


Create a Server Action


sale_order = env['sale.order'].search([('name','=','S00019')])

if sale_order:
    sale_order['date_order'] = '2024-12-01'


Using Server Action as the model allows you to see the RUN button so you can execute the code. 


 - this approach can bypass business logic​, so only do it if you know what the impact of your changes will be (and test first in a duplicate database) and only do this on simple fields - you can't back date transactions impacting inventory or accounting transactions for example.

0
Awatar
Odrzuć
Podoba Ci się ta dyskusja? Dołącz do niej!

Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!

Zarejestruj się
Powiązane posty Odpowiedzi Widoki Czynność
V16-Managing data in property field
development configuration setup system function
Awatar
1
kwi 25
1442
Section with a customer number Rozwiązane
configuration system function
Awatar
Awatar
2
paź 25
711
Upload Overtime and Commission in Payroll?
development configuration system
Awatar
0
kwi 25
1283
Integrate or start from scratch Rozwiązane
development configuration system
Awatar
Awatar
2
mar 25
1648
Cron job completes Instantly on production without throwing errors – works correctly on dev Rozwiązane
development configuration function debug
Awatar
Awatar
2
wrz 25
1132
Społeczność
  • Samouczki
  • Dokumentacja
  • Forum
Open Source
  • Pobierz
  • Github
  • Runbot
  • Tłumaczenia
Usługi
  • Hosting Odoo.sh
  • Wsparcie
  • Aktualizacja
  • Indywidualne rozwiązania
  • Edukacja
  • Znajdź księgowego
  • Znajdź partnera
  • Zostań partnerem
O nas
  • Nasza firma
  • Zasoby marki
  • Skontaktuj się z nami
  • Oferty pracy
  • Wydarzenia
  • Podcast
  • Blog
  • Klienci
  • Informacje prawne • Prywatność
  • Bezpieczeństwo Odoo
الْعَرَبيّة 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 to pakiet aplikacji biznesowych typu open source, które zaspokoją wszystkie potrzeby Twojej firmy: CRM, eCommerce, księgowość, inwentaryzacja, punkt sprzedaży, zarządzanie projektami itp.

Unikalną wartością Odoo jest to, że jest jednocześnie bardzo łatwe w użyciu i w pełni zintegrowane.

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