ITA - DDT: documento di trasporto
l10n_it_ddt · OCA/l10n-italy
Health
75/100
good
-
Security25/25No findings
-
Activity0/25Last human commit 43 months ago
-
Required by25/255 modules depend on it
-
Maturity25/25In 5 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
5
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
3.12 MB
Module directory on disk
Code analysis
13 migration notes
18 models
32 views
0 HTTP endpoints
Migration considerations
AddPickingToDdt— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceDdTFromPickings— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceDdtCreateInvoice— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceDdtInvoicing— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (1 methods) migration-api-multi-one · sourceSaleOrder— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (6 methods) migration-api-multi-one · sourceStockPicking— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (3 methods) migration-api-multi-one · sourceStockPickingPackagePreparation— Migrating to 13.0: `@api.multi`/`@api.one` were removed (multi is the default): drop them, looping over `self` where `@api.one` was used. (16 methods) (2 occurrences in this file) migration-api-multi-one · sourceddt_stock_picking_package_preparation_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. (2 occurrences in this file) migration-view-attrs-states · sourceproduct_template_form_view_ddt_invoicing— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_ddt_type_tree— Migrating to 18.0: the `tree` view type was renamed to `list` (`<list>` roots, `view_mode`). (5 occurrences in this file) migration-view-tree-tag · sourceview_order_form_view_ddt— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_partner_form_ddt— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · sourceview_picking_form— Migrating to 17.0: `attrs=`/`states=` are rejected in views: convert them to Python expressions in `invisible`/`readonly`/`required`, keeping the original AND/OR logic. migration-view-attrs-states · source
Migration review checklist, not a compatibility verdict. "Migrating to X.0" applies once you upgrade to that version; "Since X.0" means this version already ignores or rejects that code. Methodology
Description
Dependencies
- Odoo dependencies
- Python dependencies
- None
- System dependencies
- None
- Required by
- account_invoice_report_ddt_group, l10n_it_accompanying_invoice, l10n_it_account_stamp_ddt, l10n_it_ddt_mrp_kit, l10n_it_fatturapa_out_ddt
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 32
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
ddt_stock_picking_package_preparation_form |
ddt.stock.picking.package.preparation.form | stock.picking.package.preparation | form | Inherits stock_picking_package_preparation.stock_picking_package_preparation_form |
ddt_stock_picking_package_preparation_search |
ddt.stock.picking.package.preparation.search | stock.picking.package.preparation | search | New |
ddt_stock_picking_package_preparation_tree |
ddt.stock.picking.package.preparation.tree | stock.picking.package.preparation | tree | Inherits stock_picking_package_preparation.stock_picking_package_preparation_tree |
delivery_data |
delivery_data | ir.ui.view | qweb | New |
invoice_form_view_ddt |
account.invoice.form.ddt | account.invoice | form | Inherits account.invoice_form |
product_template_form_view_ddt_invoicing |
product.template.form.ddt.invoicing | product.template | form | Inherits sale.product_template_form_view_invoice_policy |
report_ddt |
report_ddt | ir.ui.view | qweb | New |
report_ddt_main |
report_ddt_main | ir.ui.view | qweb | New |
sale_order_form_view_ddt |
sale.order.form.ddt | sale.order | form | Inherits sale.view_order_form |
sppp_line_stock_picking_package_preparation_form_ddt |
sppp.line.stock.picking.package.preparation.form.ddt | stock.picking.package.preparation | form | Inherits stock_picking_package_preparation_line.sppp_line_stock_picking_package_preparation_form |
stock_goods_description_form |
stock.picking.goods_description.form | stock.picking.goods_description | form | New |
stock_location_form_view_inherit |
stock.location.form.inherit | stock.location | form | Inherits stock.view_location_form |
stock_picking_package_preparation_invoicing_form |
stock.picking.package.preparation.invoicing.form | stock.picking.package.preparation | form | Inherits stock_picking_package_preparation.stock_picking_package_preparation_form |
stock_picking_package_preparation_invoicing_tree |
stock.picking.package.preparation.invoicing.tree | stock.picking.package.preparation | tree | Inherits stock_picking_package_preparation.stock_picking_package_preparation_tree |
stock_picking_tree_ddt |
stock.picking.tree.ddt | stock.picking | tree | Inherits stock.vpicktree |
view_add_pickings_to_ddt |
Add Pickings to TD | add.pickings.to.ddt | form | New |
view_carriage_condition_form |
stock.picking.carriage_condition.form | stock.picking.carriage_condition | form | New |
view_carriage_condition_tree |
stock.picking.carriage_condition.tree | stock.picking.carriage_condition | tree | New |
view_ddt_create_invoice |
TD Create Invoice | ddt.create.invoice | form | New |
view_ddt_from_pickings |
TD from Pickings | ddt.from.pickings | form | New |
view_ddt_invoicing |
TD Invoicing | ddt.invoicing | form | New |
view_ddt_type_form |
stock.ddt.type.form | stock.ddt.type | form | New |
view_ddt_type_tree |
stock.ddt.type.tree | stock.ddt.type | tree | New |
view_goods_description_tree |
stock.picking.goods_description.tree | stock.picking.goods_description | tree | New |
view_order_form_view_ddt |
sale.order.form.view.ddt | sale.order | form | Inherits sale_stock.view_order_form_inherit_sale_stock |
view_partner_form_ddt |
res.partner.form.ddt | res.partner | form | Inherits base.view_partner_form |
view_picking_form |
stock.picking.form.ddt | stock.picking | form | Inherits stock.view_picking_form |
view_picking_internal_search |
view.picking.search.ddt | stock.picking | search | Inherits stock.view_picking_internal_search |
view_transportation_method_form |
stock.picking.transportation_method.form | stock.picking.transportation_method | form | New |
view_transportation_method_tree |
stock.picking.transportation_method.tree | stock.picking.transportation_method | tree | New |
view_transportation_reason_form |
stock.picking.transportation_reason.form | stock.picking.transportation_reason | form | New |
view_transportation_reason_tree |
stock.picking.transportation_reason.tree | stock.picking.transportation_reason | tree | New |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 18
New fields (15)
-
carriage_condition_idMany2one → stock.picking.carriage_conditionstring='Carriage Condition' args: 'stock.picking.carriage_condition' -
carrier_idMany2one → res.partnerstring='Carrier' args: 'res.partner' -
carrier_tracking_refCharcopy=Falsestring='Tracking Reference' -
ddt_idsOne2many → stock.picking.package.preparationstring='TD' args: 'stock.picking.package.preparation', 'invoice_id' -
dimensionChar -
goods_description_idMany2one → stock.picking.goods_descriptionstring='Description of Goods' args: 'stock.picking.goods_description' -
gross_weightFloatstring='Gross Weight' -
gross_weight_uom_idMany2one → uom.uomdefault=<expr> args: 'uom.uom', 'Gross Weight UoM' -
parcelsIntegerargs: 'Parcels' -
transportation_method_idMany2one → stock.picking.transportation_methodstring='Method of Transportation' args: 'stock.picking.transportation_method' -
transportation_reason_idMany2one → stock.picking.transportation_reasonstring='Reason for Transportation' args: 'stock.picking.transportation_reason' -
volumeFloatargs: 'Volume' -
volume_uom_idMany2one → uom.uomdefault=<expr> args: 'uom.uom', 'Volume UoM' -
weightFloatstring='Weight' -
weight_manual_uom_idMany2one → uom.uomdefault=<expr> args: 'uom.uom', 'Net Weight UoM'
No public methods.
New fields (3)
-
ddt_idMany2one → stock.picking.package.preparationrelated='ddt_line_id.package_preparation_id'store=Truestring='TD' args: 'stock.picking.package.preparation' -
ddt_line_idMany2one → stock.picking.package.preparation.linestring='TD line' args: 'stock.picking.package.preparation.line' -
ddt_sequenceIntegerrelated='ddt_line_id.sequence'store=Truestring='TD sequence'
No public methods.
New fields (1)
-
ddt_idMany2one → stock.picking.package.preparationargs: 'stock.picking.package.preparation'
-
add_to_ddt(self)@api.multi
New fields (1)
-
ddt_idsMany2many → stock.picking.package.preparationdefault=_get_ddt_ids args: 'stock.picking.package.preparation'
-
create_invoice(self)@api.multi
New fields (1)
-
picking_idsMany2many → stock.pickingdefault=_get_picking_ids args: 'stock.picking'
-
create_ddt(self)@api.multi
New fields (4)
-
date_fromDaterequired=Truestring='Start Date' -
date_invoiceDatestring='Invoice Date' -
date_toDaterequired=Truestring='End Date' -
journal_idMany2one → account.journaldefault=_default_journaldomain=[('type', '=', 'sale')]string='Journal' args: 'account.journal'
-
create_invoices(self)@api.multi
New fields (1)
-
ddt_invoice_excludeBooleandefault=Truehelp='If flagged this service will not be automatically invoiced from DDT.'string='Exclude from DDT invoicing'
No public methods.
New fields (8)
-
carriage_condition_idMany2one → stock.picking.carriage_conditionstring='Carriage Condition' args: 'stock.picking.carriage_condition' -
ddt_code_groupCharstring='Code group' -
ddt_invoice_excludeBooleanhelp='If flagged services will not be automatically invoiced from DDT. If set on the partner, this parameter willbe automatically applied to Sale Orders.'string='Do not invoice services from DDT' -
ddt_invoicing_groupSelectiondefault='billing_partner'required=True args: TD_INVOICING_GROUPS, 'TD invoicing group' -
ddt_show_priceBooleanhelp='Show prices and discounts in TD report'string='TD show prices' -
goods_description_idMany2one → stock.picking.goods_descriptionstring='Description of Goods' args: 'stock.picking.goods_description' -
transportation_method_idMany2one → stock.picking.transportation_methodstring='Method of Transportation' args: 'stock.picking.transportation_method' -
transportation_reason_idMany2one → stock.picking.transportation_reasonstring='Reason for Transportation' args: 'stock.picking.transportation_reason'
No public methods.
New fields (17)
-
carriage_condition_idMany2one → stock.picking.carriage_conditionstring='Carriage Condition' args: 'stock.picking.carriage_condition' -
create_ddtBooleanargs: 'Automatically create the TD' -
ddt_carrier_idMany2one → res.partnerstring='Carrier' args: 'res.partner' -
ddt_idsMany2many → stock.picking.package.preparationcompute='_compute_ddt_ids'string='Related TDs' args: 'stock.picking.package.preparation' -
ddt_invoice_excludeBooleanhelp='If flagged services from this SO will not be automatically invoiced from DDT. This parameter can be set on partners and automatically applied to Sale Orders.'string='DDT do not invoice services' -
ddt_invoicing_groupSelectiondefault='billing_partner'required=True args: TD_INVOICING_GROUPS, 'TD invoicing group' -
ddt_show_priceBooleanhelp='Show prices and discounts in TD report'string='TD show prices' -
goods_description_idMany2one → stock.picking.goods_descriptionstring='Description of Goods' args: 'stock.picking.goods_description' -
gross_weightFloatstring='Gross Weight' -
gross_weight_uom_idMany2one → uom.uomdefault=<expr> args: 'uom.uom', 'Gross Weight UoM' -
parcelsIntegerargs: 'Parcels' -
transportation_method_idMany2one → stock.picking.transportation_methodstring='Method of Transportation' args: 'stock.picking.transportation_method' -
transportation_reason_idMany2one → stock.picking.transportation_reasonstring='Reason for Transportation' args: 'stock.picking.transportation_reason' -
volumeFloatargs: 'Volume' -
volume_uom_idMany2one → uom.uomdefault=<expr> args: 'uom.uom', 'Volume UoM' -
weightFloatstring='Weight' -
weight_manual_uom_idMany2one → uom.uomdefault=<expr> args: 'uom.uom', 'Net Weight UoM'
-
action_confirm(self)@api.multi -
action_invoice_create(self, grouped=False, final=False)@api.multi -
action_view_ddt(self)@api.multi -
onchange_partner_id(self)@api.multi@api.onchange('partner_id')
New fields (9)
-
company_idMany2one → res.companycomodel_name='res.company'default=<expr>string='Company' -
default_carriage_condition_idMany2one → stock.picking.carriage_conditionstring='Default Carriage Condition' args: 'stock.picking.carriage_condition' -
default_goods_description_idMany2one → stock.picking.goods_descriptionstring='Default Description of Goods' args: 'stock.picking.goods_description' -
default_noteTextstring='Default Note' -
default_transportation_method_idMany2one → stock.picking.transportation_methodstring='Default Method of Transportation' args: 'stock.picking.transportation_method' -
default_transportation_reason_idMany2one → stock.picking.transportation_reasonstring='Default Reason for Transportation' args: 'stock.picking.transportation_reason' -
nameCharrequired=True -
noteTextstring='Note' -
sequence_idMany2one → ir.sequencerequired=True args: 'ir.sequence'
No public methods.
New fields (1)
-
type_ddt_idMany2one → stock.ddt.typestring='TD type' args: 'stock.ddt.type'
No public methods.
New fields (4)
-
ddt_idsMany2many → stock.picking.package.preparationcolumn1='stock_picking_id'column2='stock_picking_package_preparation_id'comodel_name='stock.picking.package.preparation'copy=Falserelation='stock_picking_pack_prepare_rel'string='TD' -
ddt_supplier_dateDatecopy=Falsestring='Supplier TD Date' -
ddt_supplier_numberCharcopy=Falsestring='Supplier TD Number' -
ddt_typeMany2one → stock.ddt.typerelated='picking_type_id.default_location_src_id.type_ddt_id' args: 'stock.ddt.type'
-
create(self, values)@api.model -
get_ddt_shipping_partner(self) -
open_form_current(self)@api.multi -
unlink(self)@api.multi -
write(self, values)@api.multi
New fields (2)
-
nameCharrequired=Truestring='Carriage Condition' -
noteTextstring='Note'
No public methods.
New fields (2)
-
nameCharrequired=Truestring='Description of Goods' -
noteTextstring='Note'
No public methods.
New fields (23)
-
carriage_condition_idMany2one → stock.picking.carriage_conditionstring='Carriage Condition' args: 'stock.picking.carriage_condition' -
carrier_idMany2one → res.partnerstring='Carrier' args: 'res.partner' -
carrier_tracking_refCharcopy=Falsestring='Tracking Reference' -
check_if_picking_doneBooleancompute='_compute_check_if_picking_done' -
ddt_numberCharcopy=Falsestring='TD Number' -
ddt_show_priceBooleanstring='Show prices on report' -
ddt_type_idMany2one → stock.ddt.typedefault=_default_ddt_typestates={'done': [('readonly', True)], 'cancel': [('readonly', True)]}string='TD Type' args: 'stock.ddt.type' -
dimensionChar -
display_nameCharcompute='_compute_clean_display_name'string='Name' -
goods_description_idMany2one → stock.picking.goods_descriptionstring='Description of Goods' args: 'stock.picking.goods_description' -
gross_weightFloatstring='Gross Weight' -
gross_weight_uom_idMany2one → uom.uomdefault=<expr> args: 'uom.uom', 'Gross Weight UoM' -
invoice_idMany2one → account.invoicecopy=Falsereadonly=Truestring='Invoice' args: 'account.invoice' -
parcelsIntegerargs: 'Packages' -
partner_shipping_idMany2one → res.partnerstring='Shipping Address' args: 'res.partner' -
show_deadline_dateSelectionstring='Show lot deadline on report' args: [('life_date', 'End of Life Date'), ('use_date', 'Best before Date'), ('removal_date', 'Removal Date')] -
to_be_invoicedBooleanhelp="This depends on 'To be Invoiced' field of the Reason for Transportation of this TD"string='To be Invoiced' -
transportation_method_idMany2one → stock.picking.transportation_methodstring='Method of Transportation' args: 'stock.picking.transportation_method' -
transportation_reason_idMany2one → stock.picking.transportation_reasonstring='Reason for Transportation' args: 'stock.picking.transportation_reason' -
volumeFloatargs: 'Volume' -
volume_uom_idMany2one → uom.uomdefault=<expr> args: 'uom.uom', 'Volume UoM' -
weight_manualFloathelp='Fill this field with the value you want to be used as weight. Leave empty to let the system to compute it'string='Force Net Weight' -
weight_manual_uom_idMany2one → uom.uomdefault=<expr> args: 'uom.uom', 'Net Weight UoM'
-
action_done(self)@api.multi -
action_invoice_create(self)@api.multiCreate the invoice associated to the TD. :returns: list of created invoices -
action_put_in_pack(self)@api.multi -
action_send_ddt_mail(self)@api.multi -
check_linked_picking(self, picking)@api.model -
create_td_grouped_invoices(self)@api.multiCreate the invoices, grouped by `group_key` (see `get_td_group_key`). :return: ( dictionary group_key -> invoice record-set, dictionary invoice -> TD record-set, ) -
get_td_group_key(self)@api.multiGet the grouping key for current TD. -
on_change_partner(self)@api.onchange('partner_id', 'ddt_type_id') -
other_operations_on_ddt(self, invoice)@api.multiOnce invoices are created with stockable products, we add them all the invoiceable services available in the SO related to the DDTs linked to the invoice. Override this method in order to execute other additional operation on the invoices created from DDT. -
set_done(self)@api.multi -
unlink(self)@api.multi
New fields (4)
-
discountFloatdefault=0.0digits=dp.get_precision('Discount')string='Discount (%)' -
price_unitFloatdefault=0.0digits=dp.get_precision('Product Price') args: 'Unit Price' -
sale_line_idMany2onereadonly=Truerelated='move_id.sale_line_id'store=Truestring='Sale order line' -
tax_idsMany2many → account.taxstring='Taxes' args: 'account.tax'
-
allow_invoice_line(self)@api.multiThis method allows or not the invoicing of a specific DDT line. It can be inherited for different purposes, e.g. for proper invoicing of kit. -
invoice_line_create(self, invoice_id, qty)@api.multi:param invoice_id: integer :param qty: float quantity to invoice -
quantity_by_lot(self)@api.multiBuild a dictionary mapping each lot in the current line to its quantity (if the product is tracked with lots)
New fields (2)
-
nameCharrequired=Truestring='Method of Transportation' -
noteTextstring='Note'
No public methods.
New fields (3)
-
nameCharrequired=Truestring='Reason For Transportation' -
noteTextstring='Note' -
to_be_invoicedBooleanstring='To be Invoiced'
No public methods.
Loading…
Loading…
Loading…
Loading…