Skip to Content
Odoo เมนู
  • ลงชื่อเข้าใช้
  • ทดลองใช้ฟรี
  • แอป
    การเงิน
    • ระบบบัญชี
    • ระบบการออกใบแจ้งหนี้
    • ระบบบัญชีรายจ่าย
    • ระบบการจัดการข้อมูลผ่านสเปรดชีต (BI)
    • เอกสาร
    • ระบบลงลายเซ็น
    การขาย
    • ลูกค้าสัมพันธ์
    • การขาย
    • POS ร้านค้า
    • POS ร้านอาหาร
    • ระบบสมัครสมาชิก
    • การเช่า
    การจัดการเว็บไซต์
    • เครื่องมือสร้างเว็บไซต์
    • ระบบการขายออนไลน์
    • บล็อก
    • ฟอรั่ม
    • ไลฟ์แชท
    • ระบบการอบรมออนไลน์
    ซัพพลายเชน
    • คลังสินค้า
    • ระบบการผลิต
    • PLM
    • ระบบการจัดซื้อ
    • การซ่อมบำรุง
    • ระบบจัดการคุณภาพ
    ทรัพยากรบุคคล
    • ข้อมูลพนักงาน
    • ระบบสรรหาบุคลากร
    • ระบบการลา
    • การประเมิน
    • ระบบการแนะนำพนักงาน
    • ระบบจัดการยานพาหนะ
    การตลาด
    • โซเชียลมาร์เก็ตติ้ง
    • การตลาดผ่านอีเมล
    • ระบบการตลาดผ่าน SMS
    • ระบบการจัดงานอีเวนต์
    • การตลาดแบบอัตโนมัติ
    • ระบบแบบสำรวจ
    การบริการ
    • โปรเจกต์
    • ระบบบันทึกเวลา
    • ระบบการจัดการบริการภาคสนาม
    • ระบบดูแลช่วยเหลือ
    • การวางแผน
    • การนัดหมาย
    ประสิทธิผล
    • ระบบแสดงความคิดเห็น
    • ระบบการอนุมัติ
    • ไอโอที
    • VoIP
    • คลังข้อมูล
    • WhatsApp
    แอปพลิเคชันของบุคคลที่สาม Odoo สตูดิโอ แพลตฟอร์มคลาวด์ของ Odoo
  • อุตสาหกรรม
    การค้าปลีก
    • ร้านขายหนังสือ
    • ร้านขายเสื้อผ้า
    • ร้านขายเฟอร์นิเจอร์
    • ร้านขายของชำ
    • ร้านขายฮาร์ดแวร์
    • ร้านขายของเล่น
    Food & Hospitality
    • บาร์และผับ
    • ร้านอาหาร
    • อาหารฟาสต์ฟู้ด
    • Guest House
    • ตัวแทนจำหน่ายเครื่องดื่ม
    • Hotel
    อสังหาริมทรัพย์
    • Real Estate Agency
    • บริษัทสถาปัตยกรรม
    • บริษัทรับเหมา
    • การจัดการอสังหาริมทรัพย์
    • การจัดสวน
    • สมาคมเจ้าของอสังหาริมทรัพย์
    ปรึกษา
    • สำนักงานบัญชี
    • Odoo พาร์ทเนอร์
    • เอเจนซี่การตลาด
    • สำนักงานกฎหมาย
    • บริการสรรหาบุคลากร
    • การตรวจสอบและการรับรอง
    ระบบการผลิต
    • Textile
    • เหล็ก
    • เฟอร์นิเจอร์
    • อาหาร
    • Brewery
    • ของขวัญขององค์กร
    สุขภาพ & ฟิตเนส
    • ชมรมกีฬา
    • ร้านขายแว่นตา
    • ฟิตเนส
    • ผู้ประกอบวิชาชีพด้านสุขภาพ
    • ร้านขายยา
    • ร้านทำผม
    Trades
    • ช่างซ่อม
    • ฮาร์ดแวร์และการสนับสนุนด้านไอที
    • ระบบพลังงานแสงอาทิตย์
    • ช่างทำรองเท้า
    • บริการทำความสะอาด
    • HVAC Services
    อื่น ๆ
    • Nonprofit Organization
    • สำนักงานสิ่งแวดล้อม
    • ร้านเช่าป้ายโฆษณา
    • การถ่ายภาพ
    • ร้านเช่าจักรยาน
    • ตัวแทนจำหน่ายซอฟต์แวร์
    Browse all Industries
  • คอมมูนิตี้
    ศึกษา
    • บทเรียน
    • เอกสารกำกับโปรแกรม
    • การรับรอง
    • การฝึกอบรม
    • บล็อก
    • พอดแคสต์
    เพิ่มศักยภาพให้กับการศึกษา
    • โปรแกรมการศึกษา
    • Scale Up! Business Game
    • เยี่ยมชม Odoo
    รับซอฟต์แวร์
    • ดาวน์โหลด
    • เปรียบเทียบรุ่น
    • เผยแพร่
    ทำงานร่วมกัน
    • Github
    • ฟอรั่ม
    • ระบบการจัดงานอีเวนต์
    • การแปล
    • ร่วมเป็นพาร์ทเนอร์
    • Services for Partners
    • ลงทะเบียนเพื่อสร้างบัญชีบริษัทของคุณ
    รับบริการ
    • ค้นหาพาร์ทเนอร์
    • ค้นหานักบัญชี
    • พบกับที่ปรึกษา
    • บริการติดตั้งระบบเพื่อใช้งาน
    • ข้อมูลอ้างอิงลูกค้า
    • การสนับสนุน
    • อัปเกรด
    Github Youtube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    รับการสาธิต
  • ราคา
  • ช่วยเหลือ

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

  • ลูกค้าสัมพันธ์
  • e-Commerce
  • ระบบบัญชี
  • สินค้าคงคลัง
  • PoS
  • โปรเจกต์
  • MRP
All apps
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
All Posts คน เหรียญรางวัล
แท็ก (View all)
odoo accounting v14 pos v15
เกี่ยวกับฟอรั่มนี้
ช่วยเหลือ

Credit limit with blocking feature using Studio

ติดตาม

รับการแจ้งเตือนเมื่อมีกิจกรรมในโพสต์นี้

คำถามนี้ถูกตั้งค่าสถานะ
credit_limitquickstartStudioapprovalsQuickstart
2 ตอบกลับ
9028 มุมมอง
อวตาร
Omar Lucas (olu)

This customization is designed for Odoo V15.X with Studio App

⚠️ Constraints: the following Studio customization works as expected in single currency databases, within Odoo Sales module and assumes ALL clients have a credit line. It has unexpected behaviours in other scenarios. There, additional logic might be required.



Display useful fields in Contacts

In the model res.partner two required fields are available but hidden to the user interface by default. Open the form view with Studio and bring them to the interface:

  • Credit limit (credit_limit)
  • Total Receivable (credit)



⚠️ Warning: a credit limit above 0 is required for this solution to work


Display credit info in Sale Order

  • Create related fields in sale.order model using the customer field for the relation with res.partner:
    • Credit limit (x_studio_credit_limit) from Customer > Credit limit
    • Total Receivable (x_studio_credit) from Customer > Total Receivable.


Bonus: set monetary widget on these two related fields



Credit consumption with current sale order

In order to configure a blocking feature, a basic logic is constructed through a credit usage ratio. If ratio is above 100% (1.000) the credit is surpassed by current transaction. Without the two related fields created in sales order, this calculation is not possible due to technicalities of Odoo.

  • Create “Consumed (%)” field (x_studio_ratio, type=float, widget=progressbar) in sale.order model
  • Create Automated action (Settings / Technical / Automation / Automated Actions)
    • Model: sale.order

    • Trigger: On creation & Update

    • Data to write

      • Field: Credit usage
      • Evaluation Type: Python expression (in this specific configuration does not create billable lines of code)
      • Value: the following python expression will sum both Total Receivable and the current transaction subtotal (tax excluded)

(record.x_studio_credit+record.amount_untaxed)/record.x_studio_credit_limit

Bonus: use amount_total instead of amount_untaxed if taxes are included in the calculation. If progress bar widget is used, multiple the whole expression by 100 in order to get a percentage (1 to 100) visualization.

⚠️ Warning: if credit amount is not set on the customer contact, Odoo might encounter errors (division by zero) when creating a sales order.



This automation works when the sale order is created or updated (in any field).



Blocking feature and authorized approvers

This blocking feature has the intention to avoid the order confirmation when the credit limit is surpassed.

⚠️ Constraints: this feature only works for total receivable amount. If there are uninvoiced sales order (other than the current transaction), the amount is not considered as part of the used credit.


  • Create approval user group (Settings / Users & Companies / Groups)


  • Export this user group in order to be used in Studio Approvals


  • In sale order form view, enable Studio and select Confirm button
  • Set approval for the approval group with the following condition rule: Credit usage > 1



Bonus: if progress bar widget is chosen, use 100 instead of 1




Proof of Concept

The following scenario is below credit limit. Thus, the user can confirm the sales order.




The following scenario is above credit limit. Thus, the user cannot confirm the sales order and manager approval (defined by user group) is required.



9
อวตาร
ละทิ้ง
Dr. Thomas Koliwer

I find your implementation very convincing (even if I wouldn't do it with Studio, that's forbidden in our project - for good reason - with maximum penalty).
I just wonder why Odoo itself does not come up with such ideas. What I can see at the moment from the credit limit check in V.16 is completely inadequate in my opinion.

อวตาร
Andrey Kolesnikov
คำตอบที่ดีที่สุด

It looks like this implementation would provide a simplistic credit limit functionality.


I'd suggest also looking into totals from open SO's that are not delivered and done deliveries that are not invoiced - not just the total invoiced amount.  Aside from that - there can also be payments for the customer that are not linked to invoices, and credit memos too. 


Furthermore, aside from just not accepting new orders if a customer is over a credit limit - it is sensible to block doing deliveries for some instances where you want to take an order but want it to not ship until something is resolved, or to generally block deliveries (for example, if a customer is really late on payments). 


Our team created a major credit limit and credit blocking feature for our Odoo customers - I think its much more robust than modules on the Odoo marketplace or this Studio implementation. Read about it here: https://steersman.works/a/392-customer-credit-limits-and-blocks   maybe you can use some of our feature ideas and recreate a bit more via Studio.

0
อวตาร
ละทิ้ง
อวตาร
Josep Anton Belchi Riera
คำตอบที่ดีที่สุด

There are some modules in the following repository that give full credit limit functionality

https://github.com/OCA/credit-control 

0
อวตาร
ละทิ้ง
Omar Lucas (olu)
ผู้เขียน

Thank you for your contribution. This solution works for companies without resources for sh (cost and programming knowledge) but for ones with it, the sky is the limit!

สนุกกับการพูดคุยนี้ใช่ไหม? เข้าร่วมเลย!

สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!

ลงชื่อ
Related Posts ตอบกลับ มุมมอง กิจกรรม
How to change/select the date field used in the calendar view? [STUDIO] แก้ไขแล้ว
calendarview studio quickstart Studio Quickstart
อวตาร
1
ก.ย. 23
2179
How do I connect the Epson TM-T88VII to Odoo?
quickstart Quickstart
อวตาร
อวตาร
2
ต.ค. 25
903
How to Set Customer-Specific Product Names แก้ไขแล้ว
quickstart Quickstart
อวตาร
1
พ.ย. 25
1376
✅ Odoo E-commerce: How to discriminate deliveries based on the type of clients
quickstart Quickstart
อวตาร
0
ส.ค. 25
1414
How can Import an existing Spreadsheets with formulas with out doing it manually? แก้ไขแล้ว
quickstart Quickstart
อวตาร
2
ส.ค. 25
1829
คอมมูนิตี้
  • บทเรียน
  • เอกสารกำกับโปรแกรม
  • ฟอรั่ม
โอเพนซอร์ส
  • ดาวน์โหลด
  • Github
  • Runbot
  • การแปล
บริการ
  • โฮสติ้ง odoo.sh เซิร์ฟเวอร์
  • การสนับสนุน
  • อัปเกรด
  • การพัฒนาที่กำหนดเอง
  • การศึกษา
  • ค้นหานักบัญชี
  • ค้นหาพาร์ทเนอร์
  • ร่วมเป็นพาร์ทเนอร์
เกี่ยวกับเรา
  • บริษัทของเรา
  • ทรัพย์สินในรูปของเครื่องหมายการค้า
  • ติดต่อเรา
  • งาน
  • ระบบการจัดงานอีเวนต์
  • พอดแคสต์
  • บล็อก
  • ลูกค้า
  • กฎหมาย • ความเป็นส่วนตัว
  • ความปลอดภัย
الْعَرَبيّة 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 เป็นชุดแอปธุรกิจแบบเปิดที่ครอบคลุมทุกความต้องการของบริษัทของคุณ อาธิ CRM eCommerce ระบบบัญชี ระบบสินค้าคงคลัง ระบบการขายหน้าร้าน โปรเจกต์ และ อีกมากมาย

ความเหนือกว่าอันเป็นเอกลักษณ์ของ Odoo คือการใช้งานที่ง่ายดายและผสานการทำงานอย่างสมบูรณ์แบบในเวลาเดียวกัน

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