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

Default payment terms

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
defaultpaymentterm
6 Odpowiedzi
25821 Widoki
Awatar
Tor Asbjørn Øvrebø

Where can I set the default payment term to use, insted of blank?

1
Awatar
Odrzuć
Awatar
Jignesh Mehta
Najlepsza odpowiedź

Hello Tor,


If you want same payment term in all the customers by default, you have to add following code in your python file.


class res_partner(osv.Model):

     _inherit = "res.partner"


     _defaults = {

        'property_payment_term' : '15 Days'

     }


Its for 15 Days, you can set another one as of your choice.


Thanks,

5
Awatar
Odrzuć
Raffaele

Good point, but coding in this case is not needed, thanks to the flexibility of Odoo. Dealing with default parameters from the interface (or XML records) is more maintainable than dealing with code that overrides base models (plus, you are using old API).

Jignesh Mehta

Yes, i agree with you. but in this you have to do the same for all databases manually so isn't code is more flexible than this.

Awatar
Raffaele
Najlepsza odpowiedź

Late reply, but the question is still valid.

In Odoo 8, for setting the default customer payment term to the "30 Days Net" value, for every company, for any customer:

From web client: Settings > Technical > Parameters > Company Properties

Create new

Name: property_payment_term
Field: (choose) Customer Payment Term
Resource: [leave empty]
Value: account.payment.term,3
Company: [leave empty]

Via data file:

<record id="payment_term_default_30" model="ir.property">
<field name="name">property_payment_term</field>
<field name="fields_id" search="[('model','=','res.partner'),('name','=','property_payment_term')]" />
<field name="value">account.payment.term,3</field>
</record>

As previously pointed out by Priyesh Solanki (pso), leaving blank the resource and the company makes the value in "Value" field as default for any instance ("document" in Odoo lexicon) of the model that the field ("Customer Payment Term", in this case) is referred to (res.partner, in this case). 

4
Awatar
Odrzuć
Awatar
Priyesh Solanki (pso)
Najlepsza odpowiedź

I am assuming that you want to set default payment term in Partner form. In Partner, You will find Customer Payment Term and Supplier Payment Term.

If it is, Go to Settings --> Technical --> Parameters --> Configuration Parameters. For Customer Payment Term, create a new record with this name 'property_payment_term' and set related field, company, object and value, you want to show as default in that field. For Supplier Payment Term, create a new record with this name 'property_supplier_payment_term' and set related field, company, object and value, you want to show as default in that field.

Make sure You are not selecting any resource (Partner/Product) otherwise it will be come for that particular resource value.

Thanks, Priyesh Solanki

2
Awatar
Odrzuć
Ashish Singh

How its work??

Awatar
Seguridad y Halogenados
Najlepsza odpowiedź

Default sales order payment term Odoo 9.0

This will set a default payment term for any customer that does not have a default payment term on they properties:

1. Edit sale.py SaleOrder class at def onchange_partner_id(self) section, where you find the following line:

'payment_term_id': self.partner_id.property_payment_term_id and self.partner_id.property_payment_term_id.id or False

and replace False for 1 so it will look like:

'payment_term_id': self.partner_id.property_payment_term_id and self.partner_id.property_payment_term_id.id or 1

This will make default the first option defined as payment term in Accounting - Configuration - Management - Payment terms if there is no default payment term assigned for that customer. You can also replace False for 'whatever you want as payment term'

1
Awatar
Odrzuć
Awatar
Herve
Najlepsza odpowiedź

I know this is a very old question, but I still have the issue in v12 to set a default value for my quotation orders, and I didn't find the full solution there.

He is my contribution :

- default value for payment_term_id (I am in v12) can be set in two places :

   - in the user-defined defaults (i.e. the "normal" default values)

   - in the field "payment_terms" in the part "Sales" (on the left) of the tab "sales & purshase" in the Contacts form


In the sale.order form, the issue is that :

- if the is customer not defined, the python code don't look if a default value exists for payment term at  the user level and initializes the value empty

- if the customer is defined (in fact, it is a "contact"), its default value is got, even if it is empty

so in both cases, the user-defined default value is simply ignored.


So, a possible workaround is :

1) define the user-defined default value for payment term in the Contacts form instead of the "normal" user-defined value for a quotation order

2) and update the sales payment term value for all the existing contacts


If you want to really use the user-defined default for payment_term, you need to fix it in sale.py code (explained in the other answers), or better in a addons module


1
Awatar
Odrzuć
Awatar
Mike
Najlepsza odpowiedź

You need to have the Accounting module installed and have developer mode enabled. Then go to Accounting > Configuration > Management > Payment Terms. Here you can edit existing terms or create new ones. 

1
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ść
what is the purpose of payment term?
payment term purpose
Awatar
0
mar 15
8737
How to configure payment term for early payment discount?
invoice payment supplier term
Awatar
Awatar
1
mar 15
11025
Payment Status Rozwiązane
payment
Awatar
Awatar
Awatar
Awatar
3
wrz 25
10508
Check is not enabled for Internal Transfers Odoo 18
payment
Awatar
Awatar
1
wrz 25
3095
How to generate a payment link from sale.order in programming
payment
Awatar
Awatar
Awatar
2
cze 25
7802
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