### 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