feat(integrations): add SaleOrder service for Odoo sales
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
31
services/integrations/app/schemas/product.py
Normal file
31
services/integrations/app/schemas/product.py
Normal file
@@ -0,0 +1,31 @@
|
||||
from pydantic import BaseModel
|
||||
from typing import Optional
|
||||
|
||||
|
||||
class ProductResponse(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
default_code: Optional[str] = None
|
||||
list_price: float
|
||||
qty_available: float
|
||||
virtual_available: float
|
||||
description: Optional[str] = None
|
||||
categ_name: Optional[str] = None
|
||||
|
||||
|
||||
class ProductSearchResult(BaseModel):
|
||||
id: int
|
||||
name: str
|
||||
default_code: Optional[str] = None
|
||||
list_price: float
|
||||
qty_available: float
|
||||
|
||||
|
||||
class StockInfo(BaseModel):
|
||||
product_id: int
|
||||
product_name: str
|
||||
qty_available: float
|
||||
qty_reserved: float
|
||||
qty_incoming: float
|
||||
qty_outgoing: float
|
||||
virtual_available: float
|
||||
Reference in New Issue
Block a user