Repository
odoo/odoo · module folder
Module version
0.1.0
Category
Sales/Sales
Folder size
0.95 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
None
Last tracking update
2026-08-08 22:45:27
Authors
Odoo S.A.
Maintainers
Odoo S.A.
Committers
Xavier ALT, Thibault Delavallée, Odoo Translation Bot, Toufik Ben Jaa, Julien Castiaux, Tiffany Chang (tic), Thomas Becquevort (thbe), Dylan Kiss (dyki), Anita (anko), Mohammad Abdulmoneim (abdu), Mahdi Alijani (malj), anko-odoo, Krzysztof Magusiak (krma), defl
Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
sale_gelato_stock, website_sale_gelato
Description

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
delivery_carrier_form Delivery Carrier Form delivery.carrier form Inherits delivery.view_delivery_carrier_form
product_document_form Product Document Form product.document form New
product_product_easy_form Product Product Easy Form product.product form Inherits product.product_variant_easy_edit_view
product_product_normal_form Product Product Normal Form product.product form Inherits product.product_normal_form_view
product_template_form Product Template Form product.template form Inherits product.product_template_only_form_view
res_config_settings_form Res Config Settings Form res.config.settings form Inherits sale.res_config_settings_view_form
HTTP endpoints (1)
Route(s)HandlerAuthTypeMethodsFlags
(inherited route override) GelatoController.gelato_webhook public http POST csrf off sudo
Models touched (9)

New fields (2)
  • delivery_type Selection
    ondelete={'gelato': 'cascade'} selection_add=[('gelato', 'Gelato')]
  • gelato_shipping_service_type Selection
    default='normal' required=True selection=[('normal', 'Standard Delivery'), ('express', 'Express Delivery')] string='Gelato Shipping Service Type'
Public methods (2)
  • available_carriers(self, partner, source)
    Override of `delivery` to filter out regular delivery methods from Gelato orders and Gelato delivery methods from non-Gelato orders. :param res.partner partner: The partner to check. :param sale.order or stock.picking source: The current order or stock transfer. :return: The available delivery methods. :rtype: delivery.carrier
  • gelato_rate_shipment(self, order)
    Fetch the Gelato delivery price based on products, quantity and address. This method is called by `delivery`'s `rate_shipment` method. Note: `self._ensure_one()` from `rate_shipment` :param sale.order order: The order for which to fetch the delivery price. :return: The shipment rate request results. :rtype: dict

New fields (1)
  • is_gelato Boolean
    readonly=True
Public methods (0)

No public methods.

New fields (1)
  • gelato_product_uid Char
    name='Gelato Product UID' readonly=True
Public methods (0)

No public methods.

New fields (4)
  • gelato_image_ids One2many → product.document
    comodel_name='product.document' domain=[('is_gelato', '=', True)] inverse_name='res_id' readonly=True string='Gelato Print Images'
  • gelato_missing_images Boolean
    compute='_compute_gelato_missing_images' string='Missing Print Images'
  • gelato_product_uid Char
    compute='_compute_gelato_product_uid' inverse='_inverse_gelato_product_uid' readonly=True string='Gelato Product UID'
  • gelato_template_ref Char
    help='Synchronize to fetch variants from Gelato' string='Gelato Template Reference'
Public methods (1)
  • action_sync_gelato_template_info(self)
    Fetch the template information from Gelato and update the product template accordingly. :return: The action to display a toast notification to the user. :rtype: dict

New fields (2)
  • gelato_api_key Char
    groups='base.group_system' string='Gelato API Key'
  • gelato_webhook_secret Char
    groups='base.group_system' string='Gelato Webhook Secret'
Public methods (0)

No public methods.

New fields (2)
  • gelato_api_key Char
    readonly=False related='company_id.gelato_api_key'
  • gelato_webhook_secret Char
    readonly=False related='company_id.gelato_webhook_secret'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (2)
  • action_confirm(self)
    Override of `sale` to send the order to Gelato on confirmation.
  • action_open_delivery_wizard(self)
    Override of `delivery` to set a Gelato delivery method by default in the wizard.

New fields (0)

No new fields.

Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

Loading…