Skip to content
Health
85/100
good
  • Security22/25
    1 minor finding
  • Activity25/25
    Last human commit 2 months ago
  • Required by20/25
    2 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 18.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
Required by
2
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.92 MB
Module directory on disk
Code analysis 0 migration notes 9 models 5 views 1 HTTP endpoint

Description

Dependencies

Odoo dependencies
Python dependencies
None
System dependencies
None
Required by
sale_gelato_stock, website_sale_gelato

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

Views touched 5

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_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 (2)
  • gelato_product_uid Char
    name='Gelato Product UID' readonly=True
  • gelato_variant_image_ids One2many → product.document
    comodel_name='product.document' domain=[('is_gelato', '=', True)] help='To ensure a good printing result, upload a PNG of the entire printing area with your graphics correctly placed on it.' inverse_name='res_id' readonly=True string='Gelato Variant Print Images'
Public methods (1)
  • action_generate_variant_gelato_images(self)
    Create separate Gelato image placements for selected product variant. :return: The action to display a toast notification to the user. :rtype: dict

New fields (4)
  • gelato_image_ids One2many → product.document
    comodel_name='product.document' domain=[('is_gelato', '=', True)] help='To ensure a good printing result, upload a PNG of the entire printing area with your graphics correctly placed on it.' 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…

Loading…