Compare commits
2 Commits
06ab659ff1
...
b6bc9b5dd3
Author | SHA1 | Date |
---|---|---|
Harald Welte | b6bc9b5dd3 | |
Harald Welte | cf9f30057f |
|
@ -130,7 +130,7 @@ def gen_customs_item(origin, desc, hts, qty, value, net_weight):
|
|||
'description': desc,
|
||||
'hs_tariff_number': str(hts),
|
||||
'quantity': qty,
|
||||
'value_amount': value,
|
||||
'value_amount': '%.2f' % value,
|
||||
'net_weight': net_weight,
|
||||
#'gross_weight': ,
|
||||
}
|
||||
|
@ -144,7 +144,7 @@ def gen_customs_decl(currency, invoice_nr, net_total, items, importer_ref=None,
|
|||
#'contents_explanation': ,
|
||||
'currency' : currency,
|
||||
'invoice_number': str(invoice_nr),
|
||||
'total_value_amount': net_total,
|
||||
'total_value_amount': int(net_total),
|
||||
'items': customs_items,
|
||||
}
|
||||
if importer_ref:
|
||||
|
|
|
@ -10,8 +10,8 @@ class SMCShippingShipcloud(models.Model):
|
|||
# extend stock.picking with fields related to shipcloud
|
||||
class SMCStockPickingShipclodu(models.Model):
|
||||
_inherit = 'stock.picking'
|
||||
sc_shipment_id = fields.Char(string='shipcloud shipment ID', readonly=True)
|
||||
sc_tracking_url = fields.Char(string='shipcloud tracking URL', readonly=True)
|
||||
sc_shipment_id = fields.Char(string='shipcloud shipment ID', readonly=True, copy=False)
|
||||
sc_tracking_url = fields.Char(string='shipcloud tracking URL', readonly=True, copy=False)
|
||||
sc_content_desc = fields.Char(string='Description of Contents')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue