Sale Insurance Caser
sale_insurance_caser · OCA/l10n-spain
Health
60/100
fair
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity5/25In 1 Odoo series since 18.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.17 MB
Module directory on disk
Code analysis
0 migration notes
8 models
6 views
0 HTTP endpoints
Description
Integration module with Caser insurance API to automate insurance policy issuance for electronic device sales.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_caser_price_range_tree |
caser.price.range.tree | caser.price.range | list | New |
view_order_form_caser |
sale.order.form.caser | sale.order | form | Inherits sale.view_order_form |
view_product_brand_form_caser |
product.brand.form.caser | product.brand | form | Inherits product_brand.view_product_brand_form |
view_product_category_form_caser |
product.category.form.caser | product.category | form | Inherits product.product_category_form_view |
view_sale_config_settings_form |
res.config.settings.form.sale.insurance | res.config.settings | form | Inherits base.res_config_settings_view_form |
view_sales_order_filter_caser |
sale.order.search.caser | sale.order | search | Inherits sale.view_sales_order_filter |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 8
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (8)
-
caser_asset_typeSelectiondefault='200021'required=Trueselection=CASER_ASSET_TYPESstring='Asset Type' -
codeCharhelp='Code sent to Caser API for this price range'required=True -
insurance_priceFloatdigits='Product Price'help='Insurance price from Caser tarification (PRIMA_itotre - with taxes)' -
insurance_price_notaxFloatdigits='Product Price'help='Insurance price from Caser tarification (PRIMA_ipriom - without taxes)'string='Insurance Price (No Tax)' -
last_tarification_dateDatetimehelp='Last time tarification was requested from Caser'readonly=Truestring='Last Tarification' -
max_priceFloatdigits='Product Price'required=Truestring='Maximum Price' -
min_priceFloatdigits='Product Price'required=Truestring='Minimum Price' -
product_idMany2one → product.productcomodel_name='product.product'help='Product automatically created/updated with tarification price'string='Insurance Product'
-
action_get_tarification_prices(self) -
get_code_for_amount(self, amount, asset_type=None)@api.model -
get_insurance_product_for_price(self, price, asset_type=None)@api.model
New fields (2)
-
caser_mobile_codeCharhelp='Brand code sent to Caser API for mobile phone policies (asset type 200021)'string='Caser Code (Mobile)' -
caser_tablet_codeCharhelp='Brand code sent to Caser API for tablet policies (asset type 262)'string='Caser Code (Tablet)'
No public methods.
New fields (2)
-
caser_asset_typeSelectionhelp='Asset type code for Caser insurance (200021=Phone, 262=Tablet)'selection=CASER_ASSET_TYPES -
caser_protocolCharcompute='_compute_caser_protocol'help='Protocol code determined by asset type (61680=Phone, 61681=Tablet)'store=True
No public methods.
New fields (5)
-
caser_agency_codeCharconfig_parameter='sale_insurance_caser.agency_code'help='Agency code provided by Caser' -
caser_agent_codeCharconfig_parameter='sale_insurance_caser.agent_code'help='Agent code provided by Caser' -
caser_is_productionBooleanconfig_parameter='sale_insurance_caser.is_production'help='Use production Caser endpoint. If unchecked uses testing.'string='Caser Production Environment' -
caser_sica_codeCharconfig_parameter='sale_insurance_caser.sica_code'help='SICA code provided by Caser'string='Caser SICA Code' -
caser_usernameCharconfig_parameter='sale_insurance_caser.username'help='Username for Caser SOAP service authentication'string='Caser Web Username'
-
action_open_caser_price_ranges(self)
New fields (4)
-
caser_errorTextcompute='_compute_caser_insurance_state'store=Truestring='Caser Insurance Errors' -
caser_has_errorBooleancompute='_compute_caser_insurance_state'index=Truestore=Truestring='Caser Insurance Error' -
caser_insurance_line_idsOne2many → sale.order.linecomodel_name='sale.order.line'compute='_compute_caser_insurance_line_ids'string='Caser Insurance Lines' -
caser_insurance_stateSelectioncompute='_compute_caser_insurance_state'selection=[('no', 'No insurance'), ('to_send', 'Pending'), ('error', 'Error'), ('done', 'Insured')]store=True
No public methods.
New fields (9)
-
caser_error_messageTextcopy=Falsereadonly=True -
caser_insurance_priceFloatcopy=Falsedigits=(16, 2)readonly=Truestring='Insurance Price' -
caser_insure_quantityIntegercopy=Falsestring='Quantity to Insure' -
caser_insured_line_idMany2one → sale.order.linecomodel_name='sale.order.line'copy=Falseondelete='set null'string='Insured Product Line' -
caser_lot_idMany2one → stock.lotcopy=Falsereadonly=Truestring='Insured Lot' args: 'stock.lot' -
caser_policy_numberCharcopy=Falsereadonly=True -
caser_request_xmlTextcopy=Falsereadonly=True -
caser_response_xmlTextcopy=Falsereadonly=True -
is_caser_insuranceBooleancopy=False
-
action_caser_mark_reviewed(self) -
action_retry_caser_insurance(self) -
create(self, vals_list)@api.model_create_multi -
unlink(self) -
write(self, vals)
New fields (0)
No new fields.
Public methods (0)No public methods.