بنقرة واحدة
odoo-qweb-and-kanban-views
Create flexible Kanban cards using QWeb templates and directives.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Create flexible Kanban cards using QWeb templates and directives.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
A router skill that identifies and recommends the most appropriate Odoo skill for a given user request.
Create HTTP endpoints for Websites and APIs.
Comprehensive guide to Odoo fields, including basic, relational, computed, and robust technical features (indexing, company_dependent, properties).
Master the Odoo ORM for data manipulation, environment management, and CRUD operations.
Configure Access Control Lists (ACLs) using CSV files.
Write automated tests using TransactionCase and Form emulators to ensure code quality.
| name | Odoo QWeb and Kanban Views |
| description | Create flexible Kanban cards using QWeb templates and directives. |
Visualize records as cards in a Kanban board.
Root element is <kanban>. It uses class attributes for layout and <templates> for the card design.
Example:
<kanban default_group_by="property_type_id" records_draggable="false">
<field name="state"/>
<templates>
<t t-name="card">
<div class="oe_kanban_global_click">
<div class="fw-bold">
<field name="name"/>
</div>
<div>
Expected Price: <field name="expected_price"/>
</div>
<!-- Conditional Display -->
<div t-if="record.state.raw_value == 'offer_received'">
Best Offer: <field name="best_price"/>
</div>
</div>
</t>
</templates>
</kanban>
Kanban cards use QWeb (Odoo's templating engine).
<t t-name="card">: Root template for the card.t-if="condition": Conditionally render an element.t-foreach="list" t-as="item": Loop over a list.t-esc="variable": Output a variable (escaped).t-out="variable": Output a variable (trusted HTML).record)In Kanban QWeb, data is accessed via the record object.
record.field_name.value: Formatted value (e.g., "1,000.00 $").record.field_name.raw_value: Database value (e.g., 1000.0).<field name="..."/> outside the template.default_group_by="field_name": Groups cards by this field (columns).records_draggable="false": Disables moving cards between columns.group_create="false": Disables creating new columns.