[16.0][ADD] agx_approval_dashboard: เพิ่ม dashboard แบบ Biz Portal สำหรับหน้าขออนุมัติออนไลน์ - #1139
Open
madara1150 wants to merge 3 commits into
Open
[16.0][ADD] agx_approval_dashboard: เพิ่ม dashboard แบบ Biz Portal สำหรับหน้าขออนุมัติออนไลน์#1139madara1150 wants to merge 3 commits into
madara1150 wants to merge 3 commits into
Conversation
… สำหรับหน้าขออนุมัติออนไลน์ แทนที่ kanban view เดิมของ approval.category ที่ใช้ group_by แบบคอลัมน์ ด้วย layout แบบ Biz Portal — แถบหมวดหมู่ซ้าย (approval.category.group) และ card grid ฝั่งขวา (approval.category) พร้อมช่องค้นหา live-filter - สร้างโมดูลใหม่ agx_approval_dashboard (UI-only, depends on agx_approval) - ir.actions.client (OWL component) แทนที่ act_window kanban dashboard - Override เมนูราก Approval และ New Request ให้ชี้ client action ใหม่ - Auto-select group แรกตาม sequence เมื่อเปิดหน้า - URL persistence ผ่าน router.pushState (back/forward/bookmark ใช้ได้) - Live-filter ใน group ที่เลือก หลัง 3 ตัวอักษร debounce 200ms - ซ่อน group ที่ไม่มี active category ลูก - ถอนติดตั้งได้ = กลับ kanban เดิมทันที
…ร SearchModel ControlPanel ของ Odoo render SearchBar ซึ่งอ่าน searchViewFields จาก SearchModel context โดยอัตโนมัติ — แต่ client action ไม่มี SearchModel จึง crash ด้วย TypeError: Cannot read properties of undefined แก้โดยเอา ControlPanel ออกและใช้ header div แบบ plain แทน dashboard มีช่องค้นหาของตัวเองอยู่แล้ว
…ist) บน header เพิ่มปุ่มสลับมุมมอง 3 ปุ่มที่ header ขวาบน: - Dashboard (active/disabled เพราะอยู่หน้านี้แล้ว) - Kanban → เปิด kanban view ของ approval.category แบบ group_by group_id - List → เปิด tree view ของ approval.category กดเมนูราก Approval กลับมา dashboard ใหม่ได้ตลอด
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
สรุป
approval.category(แบบ group_by คอลัมน์) ด้วย layout sidebar + card grid แบบ Biz Portalagx_approval_dashboard(UI-only) — ถอนติดตั้งได้ = กลับ kanban เดิมทันที ไม่แตะ data model หรือ business logic ใดๆปัญหาที่แก้
การออกแบบ
approval.category.groupapproval.categoryพฤติกรรมหลัก: auto-select group แรก, URL persistence (back/forward/bookmark), live-filter ≥3 ตัวอักษร debounce 200ms, ซ่อน group ว่าง
การทดสอบ
agx_approval_dashboard→ เมนูราก Approval เปิด dashboard ใหม่approval.requestพร้อม category ที่ถูกต้อง