feat: Enhance Supply Chain Module with Analytic Move Line Features

- Added support for analytic move lines in InvoiceServiceSupplychainImpl.
- Implemented methods to check for missing analytic move lines in PurchaseOrderController and PurchaseRequestController.
- Introduced budget distribution line generation in PurchaseOrderController.
- Updated SaleOrderController to generate analytic move lines.
- Enhanced StockMoveController with budget distribution line generation.
- Modified StockMoveLineController to include analytic account and axis handling.
- Updated domain models to include references to analytic accounts and axes in Partner, StockLocation, and StockMoveLine.
- Created unit tests for StockMoveLineServiceSupplychainImpl to ensure proper functionality of new features.
- Added MockQuery class for testing purposes.
This commit is contained in:
BACHIR SOULDI
2026-02-17 15:13:17 +01:00
parent 9eb959f07a
commit 6881c439b2
74 changed files with 2975 additions and 930 deletions

View File

@@ -68,7 +68,7 @@ public class ProductBaseRepository extends ProductRepository {
FULL_NAME_FORMAT, product.getCode(), product.getName());
}
product = super.save(product);
// product = super.save(product);
if (product.getBarCode() == null
&& appBaseService.getAppBase().getActivateBarCodeGeneration()) {
try {

View File

@@ -9,10 +9,11 @@
<string name="code" title="Code" required="true" unique="true"/>
<string name="name" title="Name" unique="true" required="true" namecolumn="true"/>
<many-to-one name="familleParente" ref="FamilleProduit" title="Famille Parente"/>
<many-to-one name="familleParente" ref="FamilleProduit" title="Famille Parente"/>
<integer name="niveau" title="Niveau" />
<many-to-many name="parente" ref="com.axelor.apps.base.db.FamilleProduit" title="Famille Parente"/>
<many-to-many name="parente" ref="com.axelor.apps.base.db.FamilleProduit" title="Famille Parente"/>
<boolean name="usableOnImmobilisation" title="Usable on immobilisation" />
</entity>
</domain-models>