### Configure Product Form Fields Conditionally (XML)
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
This XML snippet demonstrates how to configure fields within a product form based on module installations, application configurations, and company-specific settings. It utilizes `if-module`, `if`, and `showIf` attributes to conditionally display or enable fields like `isActivity`, `configurator`, `salePrice`, `salesUnit`, and stock management features.
```xml
```
--------------------------------
### Axelor XML: Define Product Action Group
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
Creates an action group in Axelor XML to execute a sequence of predefined actions for a new product, including setting defaults, adjusting scale and precision, and marking it as sellable.
```xml
```
--------------------------------
### Axelor XML: Define Product Validation Action
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
Sets up a validation action in Axelor XML to display an alert message when specific conditions are met, such as attempting to procure a 'service' type product from stock.
```xml
```
--------------------------------
### Axelor XML: Define Product View Action
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
Configures a view action in Axelor XML to open a grid or form view for product variants, filtered by the parent product's ID and setting a context variable for available quantities.
```xml
self.parentProduct.id = :id
```
--------------------------------
### Define Product Grid and Form Views in XML
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
Defines the user interface for the 'Product' entity in Axelor Open Suite, including a grid view for displaying lists of products and a form view for detailed editing. These XML definitions control how data is presented and interacted with in the application's UI.
```xml
```
--------------------------------
### Define Product Domain Model in XML
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
Defines the data structure and business entities for a 'Product' within the Axelor Open Suite. It includes fields, relationships, constraints, and business logic. This XML file is part of the domain model definition and specifies how product data is stored and managed.
```xml
```
--------------------------------
### Configure CSV Data Import Mapping in XML
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
This XML configuration defines how data from a 'products.csv' file is imported into the 'com.axelor.apps.base.db.Product' entity. It maps CSV columns to entity fields, specifies search criteria for related entities (like category and unit), and uses an adapter for boolean type conversion.
```xml
```
--------------------------------
### Axelor XML: Define Product Record Action
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
Defines a record action in Axelor XML to compute the sale price of a product based on its cost price and management coefficient. It includes conditional logic for updates.
```xml
```
--------------------------------
### Generate Axelor Open Suite CHANGELOG.md
Source: https://github.com/minhtuanvu/axelor-open-suite/blob/master/changelogs/README.md
This command executes the Gradle task to generate the `CHANGELOG.md` file from unreleased entries. It also handles the removal of entries from the `changelogs/unreleased` directory after generation. A `--preview` argument is available for a dry run.
```bash
./gradlew generateChangeLog
```
--------------------------------
### Document Release Changes with YAML
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
This YAML snippet documents changes for Axelor Open Suite releases, detailing bug fixes and new features. It includes information on module impact, developer notes, and migration steps, such as updating view definitions or regenerating domain classes using Gradle.
```yaml
---
title: Invoice type is now correctly hidden in canceled invoices
module: axelor-account
developer: |
Fixed hidden attribute handling for Invoice.typeSelect field:
- The field is now properly hidden when statusSelect equals STATUS_CANCELED
- View definition updated in views/Invoice.xml
- Impact on custom modules: If you have overridden the invoice form view,
update your hideIf conditions for typeSelect field
Migration steps:
```bash
# Update any custom view overrides
$ find . -name "Invoice*.xml" | xargs grep -l "typeSelect"
# Review and update hideIf/showIf conditions as needed
```
---
title: New barcode generation feature for products
module: axelor-base
developer: |
Added barcode generation support to Product entity:
- New fields: barCode (MetaFile), barcodeTypeConfig (BarcodeTypeConfig)
- Configuration option: activateBarCodeGeneration in AppBase
- Controller method: ProductController.generateBarcode()
Breaking changes:
- Product.xml domain model updated with new barCode relationship
- Product form view includes new barcode panel
If you extend Product entity, regenerate domain classes:
```bash
$ ./gradlew clean build
```
```
--------------------------------
### Structure Axelor Forms with Panels and Tabs
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
This XML defines a complex form layout in Axelor using nested panels, tabs, and conditional rendering for better data organization. It includes panels for general information, images, sales, purchase/costs, and stock, with specific widgets and related views.
```xml
```
--------------------------------
### Axelor XML: Define Product Search Filters
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
Defines a set of search filters in Axelor XML for the 'Product' model, including simple field filters and predefined domain filters for categorizing products (current, storable, service, obsolete).
```xml
self.endDate IS NULL or CURRENT_DATE < self.endDate(self.endDate IS NULL or CURRENT_DATE < self.endDate)
and self.productTypeSelect = 'storable'(self.endDate IS NULL or CURRENT_DATE < self.endDate)
and self.productTypeSelect = 'service'CURRENT_DATE > self.endDate
```
--------------------------------
### Axelor XML: Define Product Method Action
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
Implements a method action in Axelor XML to call a specific Java controller method ('updateCostPrice') in the 'ProductController' class. This is used for executing custom business logic.
```xml
```
--------------------------------
### Axelor Open Suite Changelog Entry Format
Source: https://github.com/minhtuanvu/axelor-open-suite/blob/master/changelogs/README.md
Defines the structure for changelog entries in YAML format. It includes fields for the title, the affected module, and detailed technical information for developers. The `developer` field can contain code snippets for migration steps.
```yaml
---
title: Some text
module: axelor-base
developer: |
some description here with technical details about breaking changes
and migrations steps.
```
$ find -iregex ".*domains.*.xml" | xargs -l sed -i 's|cachable=|cacheable=|g'
```
```
--------------------------------
### Define Sales Order Entity Schema in XML
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
Defines the 'SaleOrder' entity for the sales module in Axelor Open Suite. It includes fields for customer information, dates, pricing, status, and associated order lines and taxes. This XML schema dictates the structure of sales order data within the application.
```xml
```
--------------------------------
### Axelor XML: Define Product Attribute Action
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
Configures attribute actions in Axelor XML to dynamically change the 'title' property of the 'salePrice' field and control the 'hidden' property of 'purchasePrice' based on conditions like 'inAti' and 'purchasable'.
```xml
```
--------------------------------
### Implement Field Tracking and Audit in Axelor Entities
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
This XML snippet demonstrates how to configure tracking for specific field changes on entity updates in Axelor. It defines which fields to track and sets up custom messages to be logged in the audit trail upon modification.
```xml
```
--------------------------------
### Configure Dynamic Field Behavior in Axelor Forms
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
This XML snippet illustrates how to control field behavior (readonly, show/hide, required) in Axelor forms based on dynamic conditions using expression language. It also shows data binding with transformations and domain filtering for related records.
```xml
```
--------------------------------
### Define Multi-Entity Relationships in Axelor XML
Source: https://context7.com/minhtuanvu/axelor-open-suite/llms.txt
This snippet demonstrates how to define various relationships (many-to-one, one-to-many, many-to-many, self-referential) between entities in Axelor using XML. It specifies the referenced entity and mapping details for cascading operations.
```xml
```
=== COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.