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

Create credit notes from returns

Zaprenumeruj

Otrzymaj powiadomienie o aktywności w tym poście

To pytanie dostało ostrzeżenie
inventoryreturnscreditnotesAutomatedActionsOdooThinking!
3 Odpowiedzi
7106 Widoki
Awatar
Ricardo Gross

Is it possible to automatically create credit notes when confirming returns of goods using automated actions?

2
Awatar
Odrzuć
Awatar
CandidRoot Solutions Private Limited
Najlepsza odpowiedź

Hello Ricardo Gross

Yes, it is possible to create credit notes while returning goods.

when we returns product, system create stock.picking record with value of Reference = "Return of WH/OUT/00016". so we can create automatic action on create new record of stock.picking model to check reference value if it is start with "Return" keyword then get sale_id (default field in stock.picking)

Now sale order do have invoice_ids fiels to get invoice and we can call "reverse_move" of those invoice to crate credit notes.

please check automated action with python code 


# check if action trigger for return order and related sale order has invoice created with payment
if
record.origin.startswith('Return of') and record.sale_id.invoice_ids.filtered(lambda move: move.state == 'posted'):
invoice_ids = record.sale_id.invoice_ids.filtered(lambda move: move.state == 'posted')
# create refund wizard
move_reversal = env['account.move.reversal'].with_context(active_model="account.move", active_ids=invoice_ids.ids).create({
'date': datetime.datetime.today().strftime('%Y-%m-%d'),
'reason': 'no reason',
'refund_method': 'refund',
'journal_id': invoice_ids.journal_id.id,})
# create revese move
move_reversal.reverse_moves()
# get last invoice as credit note
invoice_refund = record.sale_id.invoice_ids.sorted(key=lambda inv: inv.id, reverse=False)[-1]
# post credit note invoice_refund.action_post()

Result:



Thanks & Regards,

​

CandidRoot Solutions Pvt. Ltd.

Mobile: (+91) 8849036209
Email: info@candidroot.com
Skype: live:candidroot
Web: https://www.candidroot.com
Address: 1229-1230, Iconic Shyamal, Near Shyamal Cross Road, Ahmedabad, Gujarat 380015
     

4
Awatar
Odrzuć
Ricardo Gross
Autor

Thank you CandidRoot for your answer and the information provided, but trying to create the automated action, I must be making some mistake, could you please explain how to setup this, I am sure that other followers of this forum would also appreciate

CandidRoot Solutions Private Limited

Hello Ricardo Gross,
Based on your request i have provied automation action with python code.

please check my updated answer and mark as best answer if it is helpfull

NS

Thank you very much for detailed solution

Ricardo Gross
Autor

Thank you very much! there is still a small detail to correct, because in this way, the credit note is already being created before I confirm the return, and if I delivery 2 units and return only 1, the credit note should be only for 1, not 2 units

Awatar
Jose S. May
Najlepsza odpowiedź

I usually solve the problem of automatically generating credit notes after a confirmed return using Automated Actions combined with a small Python script. The key is to make sure that the credit note is only generated after a confirmed return and only for orders that have been invoiced. If you have time, check out https://unblockedgamespremium.io for more details.

0
Awatar
Odrzuć
Awatar
Flavio Guzman
Najlepsza odpowiedź

Gracias amigo, me funcionó para V17 pero tuve que eliminar #'refund_method': 'refund' ya que ese campo no está disponible en el modelo account.move.reversal

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ść
How to manage Inventory Valuation and Credit note journal entries when doing a return? Rozwiązane
accounting inventory returns quickstart creditnotes
Awatar
1
gru 24
7528
Apply one credit note to multiple invoices
returns creditnotes
Awatar
Awatar
1
sie 24
2735
Can we have non-sellable locations? Odoo v14e Rozwiązane
inventory returns
Awatar
Awatar
2
lut 23
5496
How to associate two transfers(OUT & IN) to a Sales Order
sales inventory returns
Awatar
Awatar
2
lip 18
5538
How to trigger (create) a delivery order for a rental order?
rental inventory deliveryorder AutomatedActions
Awatar
Awatar
Awatar
Awatar
3
paź 24
3312
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