Skip to content

Conversation

@JAntonioSalas
Copy link
Collaborator

This module provides comprehensive tools to manage sales orders, invoices, purchase orders,shipping information,
and customer contacts in Odoo. It includes endpoints for creating and updating various entities,
enhancing the overall efficiency and reliability of business processes.

Endpoints included:

Contact Management:

  • /search_contact: Search contacts by email, phone, mobile, or name
  • /create_contact: Create or find existing contacts
  • /update_contact/: Update contact information
  • /create_delivery_address, /create_invoice_address: Manage addresses

Sale Order Operations:

  • /create_sale_order: Create new sale orders
  • /update_sale_order/: Update sale order details
  • /confirm_sale_order/: Confirm sale orders
  • /send_message_sale_order/: Post messages to order chatter

Delivery & Returns:

  • /validate_delivery/: Validate delivery pickings
  • /return_delivery/: Create return pickings
  • /get_shipping_info/: Retrieve shipping information

Invoicing & Payments:

  • /invoice_sale_order/: Create invoices from sale orders
  • /create_schedule_activity_invoice: Create scheduled activities for invoices
  • /register_payment_invoice/: Register invoice payments
  • /stamp_invoice/: Stamp invoices (Mexican CFDI)
  • /create_credit_note/: Create credit notes
  • /update_credit_note/<credit_note>: Confirm credit notes
  • /send_invoice_by_email/: Send invoices via email
  • /download_invoice/: Download invoice PDF and XML

Inventory:

  • /get_inventory_by_lot: Query inventory by lot/serial
  • /update_move_line_quant_by_name: Update stock move line quants
  • /get_product_id: Get product ID by SKU
  • /get_product_stock: Get product stock by location

Purchase Order

  • /create_purchase_order: Create and confirm purchase orders
  • /cancel_purchase_order/<purchase.order>: Cancel purchase orders
  • /invoice_purchase_order/<purchase.order>: Create vendor bills from purchase orders

Reception:

  • /get_reception_info/<purchase.order>: Get reception info for purchase orders
  • /get_reception_lines/<stock.picking>: Get reception lines for stock pickings
  • /validate_reception/<stock.picking>: Validate receptions for stock pickings
  • /return_reception/<purchase.order>: Create return to vendor for purchase orders

Utilities:

  • /get_states/: Get states list by country
  • /get_localities/: Get localities list by state
  • /create_schedule_activity: Create scheduled activities
  • /get_journals: Retrieve accounting journals
  • /get_picking_types: Retrieve stock picking types
  • /get_taxes: Retrieve tax information

JAntonioSalas and others added 2 commits November 21, 2025 12:08
This module provides comprehensive tools to manage sales orders, invoices, purchase orders,shipping information,
and customer contacts in Odoo. It includes endpoints for creating and updating various entities,
enhancing the overall efficiency and reliability of business processes.

Endpoints included:

Contact Management:
- /search_contact: Search contacts by email, phone, mobile, or name
- /create_contact: Create or find existing contacts
- /update_contact/<partner>: Update contact information
- /create_delivery_address, /create_invoice_address: Manage addresses

Sale Order Operations:
- /create_sale_order: Create new sale orders
- /update_sale_order/<order>: Update sale order details
- /confirm_sale_order/<order>: Confirm sale orders
- /send_message_sale_order/<order>: Post messages to order chatter

Delivery & Returns:
- /validate_delivery/<order>: Validate delivery pickings
- /return_delivery/<order>: Create return pickings
- /get_shipping_info/<order>: Retrieve shipping information

Invoicing & Payments:
- /invoice_sale_order/<order>: Create invoices from sale orders
- /create_schedule_activity_invoice: Create scheduled activities for invoices
- /register_payment_invoice/<invoice>: Register invoice payments
- /stamp_invoice/<invoice>: Stamp invoices (Mexican CFDI)
- /create_credit_note/<invoice>: Create credit notes
- /update_credit_note/<credit_note>: Confirm credit notes
- /send_invoice_by_email/<invoice>: Send invoices via email
- /download_invoice/<invoice>: Download invoice PDF and XML

Inventory:
- /get_inventory_by_lot: Query inventory by lot/serial
- /update_move_line_quant_by_name: Update stock move line quants
- /get_product_id: Get product ID by SKU
- /get_product_stock: Get product stock by location

Purchase Order
- /create_purchase_order: Create and confirm purchase orders
- /cancel_purchase_order/<purchase.order>: Cancel purchase orders
- /invoice_purchase_order/<purchase.order>: Create vendor bills from purchase orders

Reception:
- /get_reception_info/<purchase.order>: Get reception info for purchase orders
- /get_reception_lines/<stock.picking>: Get reception lines for stock pickings
- /validate_reception/<stock.picking>: Validate receptions for stock pickings
- /return_reception/<purchase.order>: Create return to vendor for purchase orders

Utilities:
- /get_states/<country>: Get states list by country
- /get_localities/<state>: Get localities list by state
- /create_schedule_activity: Create scheduled activities
- /get_journals: Retrieve accounting journals
- /get_picking_types: Retrieve stock picking types
- /get_taxes: Retrieve tax information
@JAntonioSalas JAntonioSalas requested a review from hugho-ad January 7, 2026 16:10
…ling reception and delivery operations

- Implement PurchasesController with methods for validating receptions, returning receptions, and retrieving reception info.
- Implement SalesController with methods for validating deliveries, returning deliveries, and retrieving shipping info.
- Introduce StockSerializer for JSON serialization of stock-related responses.
- Create StockController for stock operations including inventory retrieval and stock updates.
- Enhance models with new methods for handling vendor bills, credit notes, and stock operations.
- Add stock.lot and stock.move.line models with methods for inventory management and lot assignment.
- Update stock.picking model to manage delivery validations and returns.
- Refactor stock.quant model to improve inventory retrieval and validation processes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants