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

Existing Field Labels not displayed after installing new module

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
odoo17
1 Odpowiedz
2721 Widoki
Awatar
othmane elmeziani

​ created a module named Custom_ETA_Module in my openerp 1 7 and the it has been installed successfully and is working fine now.The only issue is the existing field labels in the formview of purchzse module are not displayed.What might be the reason for this.I searched for a long but the solution is not yet available.The module files are :

View.xml
<odoo>
<record id="view_purchase_order_form_inherited" model="ir.ui.view">
<field name="name">purchase.order.form.inherited</field>
<field name="model">purchase.order</field>
<field name="inherit_id" ref="purchase.purchase_order_form"/>
<field name="arch" type="xml">
<!-- Insert fields after 'currency_id' while keeping the labels -->
<xpath expr="//field[@name='currency_id']" position="after">
<group string="ETA Container Information" colspan="2">
<group>
<field name="eta_pcd1" nolabel="0"/>
<field name="eta_pcd2" nolabel="0"/>
<field name="eta_pcd3" nolabel="0"/>
</group>
<group>
<field name="container_1" nolabel="0" placeholder="Enter Container 1"/>
<field name="container_2" nolabel="0" placeholder="Enter Container 2"/>
<field name="container_3" nolabel="0" placeholder="Enter Container 3"/>
</group>
</group>
</xpath>
</field>
</record>
</odoo>
Module.py
from odoo import models, fields, api
import re
from odoo.exceptions import ValidationError


class PurchaseOrder(models.Model):
_inherit = "purchase.order"

eta_pcd1 = fields.Date(string="ETA / PCD1", oldname="x_studio_eta_pcd1")
eta_pcd2 = fields.Date(string="ETA / PCD2", oldname="x_studio_eta_pcd2")
eta_pcd3 = fields.Date(string="ETA / PCD3", oldname="x_studio_eta_pcd3")

container_1 = fields.Char(string="Container 1", oldname="x_studio_container_1")
container_2 = fields.Char(string="Container 2", oldname="x_studio_container_2")
container_3 = fields.Char(string="Container 3", oldname="x_studio_container_1_1")

@api.constrains('container_1', 'container_2', 'container_3')
def _check_container_format(self):
pattern = re.compile(r'^[A-Za-z0-9]+$')
for record in self:
if record.container_1 and not pattern.match(record.container_1):
raise ValidationError("Container 1 can only contain letters and digits.")
if record.container_2 and not pattern.match(record.container_2):
raise ValidationError("Container 2 can only contain letters and digits.")
if record.container_3 and not pattern.match(record.container_3):
raise ValidationError("Container 3 can only contain letters and digits.")
​
  • Manifest :
    {
    "name": "Custom ETA Module",
    "version": "1.0",
    "summary": "Module for managing ETA and container details in purchase orders",
    "description": "Adds custom ETA and container tracking fields in the purchase order form.",
    "author": "Your Name",
    "category": "Purchase",
    "depends": ["purchase"],
    "data": [
    "security/ir.model.access.csv",
    "views/eta_model_views.xml"
    ],
    "installable": True,
    "application": False
    }


0
Awatar
Odrzuć
Awatar
Ramki M
Najlepsza odpowiedź

Try by removing the "no_label=0" it might remove the String of the field in the View that may be the reason you cant able to see the fields in the view.


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ść
Error while posting invoice to ZATCA odoo sh Rozwiązane
odoo17
Awatar
Awatar
Awatar
Awatar
3
lip 25
3322
How to send a real-time notification to POS UI using bus.bus in Odoo 17?
odoo17
Awatar
Awatar
1
cze 25
5805
Odoo time-sheets rights to add
odoo17
Awatar
Awatar
2
maj 25
3224
POS is not recognizing short barcodes like "95" or "96" (Code 39 or custom short codes)
odoo17
Awatar
1
maj 25
2214
Odoo 17
odoo17
Awatar
1
lut 25
40
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