trytond_carrier_weight-3.8.0/ 0000755 0001750 0001750 00000000000 12615673235 015625 5 ustar ced ced 0000000 0000000 trytond_carrier_weight-3.8.0/locale/ 0000755 0001750 0001750 00000000000 12615673235 017064 5 ustar ced ced 0000000 0000000 trytond_carrier_weight-3.8.0/locale/bg_BG.po 0000644 0001750 0001750 00000003634 12615107607 020365 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Валута"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr "Цифри на валута за тегло"
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr "Ценова листа"
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr "Мер. ед. за тегло"
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr "Цифри на мер. ед, за тегло"
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr "Превозвач"
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr "Създадено на"
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr "Създадено от"
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr "ID"
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr "Цена"
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Име"
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Тегло"
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr "Променено на"
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr "Променено от"
#, fuzzy
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr "Ценови лист на карго тегло"
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Тегло"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr "Ценови лист на карго тегло"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr "Ценови листи на карго тегло"
trytond_carrier_weight-3.8.0/locale/ca_ES.po 0000644 0001750 0001750 00000003311 12615107626 020370 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Moneda"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr "Decimals de la moneda del pes"
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr "Tarifa"
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr "UdM del pes"
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr "Decimals de la UdM del pes"
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr "Transportista"
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr "Data creació"
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr "Usuari creació"
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr "ID"
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr "Preu"
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Nom"
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Pes"
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr "Data modificació"
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr "Usuari modificació"
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr "Tarifa pes transportista"
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Pes"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr "Tarifa pes transportista"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr "Tarifes pes transportista"
trytond_carrier_weight-3.8.0/locale/cs_CZ.po 0000644 0001750 0001750 00000002726 12615107643 020427 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr ""
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr ""
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr ""
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr ""
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr ""
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr ""
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr ""
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr ""
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr ""
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr ""
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr ""
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr ""
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr ""
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr ""
trytond_carrier_weight-3.8.0/locale/de_DE.po 0000644 0001750 0001750 00000003364 12615107657 020372 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Währung"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr "Nachkommastellen Währung Gewicht"
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr "Preisliste"
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr "Gewicht Maßeinheit"
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr "Nachkommastellen Maßeinheit Gewicht"
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr "Frachtführer"
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr "Erstellungsdatum"
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr "Erstellt durch"
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr "ID"
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr "Preis"
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Name"
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Gewicht"
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr "Zuletzt geändert"
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr "Letzte Änderung durch"
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr "Frachtgewicht Preisliste"
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Gewicht"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr "Frachtgewicht Preisliste"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr "Frachtgewicht Preislisten"
trytond_carrier_weight-3.8.0/locale/es_AR.po 0000644 0001750 0001750 00000003412 12615107673 020413 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Moneda"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr "Decimales de moneda del peso"
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr "Lista de precios"
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr "UdM del Peso"
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr "Dígitos UdM del Peso"
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr "Transportista"
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr "Fecha creación"
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr "Usuario creación"
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr "ID"
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr "Precio"
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Nombre"
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Peso"
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr "Fecha modificación"
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr "Usuario modificación"
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr "Lista de precios del peso transportista"
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Peso"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr "Lista de precios del peso transportista"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr "Listas de precios del peso transportista"
trytond_carrier_weight-3.8.0/locale/es_CO.po 0000644 0001750 0001750 00000003414 12615107735 020413 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Moneda"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr "Decimales de Moneda "
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr "Lista de Precios"
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr "UdM de Peso"
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr "Decimales de UdM de Peso"
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr "Transportadora"
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr "Fecha de Creación"
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr "Creado por Usuario"
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr "ID"
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr "Precio"
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Nombre"
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Peso"
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr "Fecha de Modificación"
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr "Modificado por Usuario"
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr "Precio de Lista de Transporte de Carga"
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Peso"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr "Lista de Precios de Transporte de Carga"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr "Listas de Precios de Transporte de Carga"
trytond_carrier_weight-3.8.0/locale/es_EC.po 0000644 0001750 0001750 00000003422 12615107706 020376 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Moneda"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr "Decimales de moneda del peso"
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr "Lista de precios"
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr "UdM del peso"
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr "Decimales de UdM del peso"
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr "Transporte"
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr "Fecha de creación"
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr "Creado por usuario"
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr "ID"
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr "Precio"
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Nombre"
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Peso"
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr "Fecha de modificación"
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr "Modificado por usuario"
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr "Lista de precio de transporte por peso"
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Peso"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr "Lista de precios de transporte por peso"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr "Listas de precios de transporte por peso"
trytond_carrier_weight-3.8.0/locale/es_ES.po 0000644 0001750 0001750 00000003340 12615107721 020412 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Moneda"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr "Decimales de la moneda del peso"
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr "Tarifa"
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr "UdM del peso"
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr "Decimales de la UdM del peso"
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr "Transportista"
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr "Fecha creación"
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr "Usuario creación"
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr "ID"
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr "Precio"
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Nombre"
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Peso"
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr "Fecha modificación"
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr "Usuario modificación"
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr "Tarifa peso transportista"
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Peso"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr "Tarifa peso transportista"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr "Tarifas peso transportista"
trytond_carrier_weight-3.8.0/locale/es_MX.po 0000644 0001750 0001750 00000003255 12615110055 020426 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Moneda"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr "Decimales de la moneda del peso"
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr "Tarifa"
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr "UdM del peso"
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr "Decimales de la UdM del peso"
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr "Transportista"
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr "Fecha creación"
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr "Usuario creación"
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr "ID"
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr "Precio"
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Nombre"
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Peso"
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr "Fecha modificación"
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr "Usuario modificación"
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr "Tarifa peso transportista"
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Peso"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr ""
trytond_carrier_weight-3.8.0/locale/fr_FR.po 0000644 0001750 0001750 00000003353 12615107750 020420 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Devise"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr "Décimales de la devise de poids"
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr "Liste de prix"
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr "Unité de poids"
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr "Décimales de l'unité de poids"
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr "Transporteur"
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr "Date de création"
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr "Créé par"
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr "ID"
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr "Prix"
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Nom"
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Poids"
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr "Date de mise à jour"
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr "Mis à jour par"
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr "Liste de prix par poids"
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Poids"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr "List de prix transport par poids"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr "List de prix transport par poids"
trytond_carrier_weight-3.8.0/locale/hu_HU.po 0000644 0001750 0001750 00000002726 12615110103 020417 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr ""
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr ""
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr ""
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr ""
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr ""
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr ""
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr ""
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr ""
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr ""
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr ""
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr ""
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr ""
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr ""
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr ""
trytond_carrier_weight-3.8.0/locale/it_IT.po 0000644 0001750 0001750 00000002726 12615110116 020423 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr ""
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr ""
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr ""
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr ""
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr ""
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr ""
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr ""
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr ""
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr ""
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr ""
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr ""
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr ""
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr ""
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr ""
trytond_carrier_weight-3.8.0/locale/ja_JP.po 0000644 0001750 0001750 00000002726 12615110044 020376 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr ""
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr ""
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr ""
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr ""
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr ""
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr ""
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr ""
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr ""
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr ""
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr ""
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr ""
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr ""
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr ""
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr ""
trytond_carrier_weight-3.8.0/locale/lt_LT.po 0000644 0001750 0001750 00000002726 12615107764 020450 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr ""
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr ""
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr ""
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr ""
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr ""
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr ""
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr ""
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr ""
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr ""
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr ""
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr ""
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr ""
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr ""
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr ""
trytond_carrier_weight-3.8.0/locale/nl_NL.po 0000644 0001750 0001750 00000003032 12615107777 020427 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
#, fuzzy
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Valuta"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr ""
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr ""
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr ""
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr ""
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr ""
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr ""
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr ""
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr ""
#, fuzzy
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Naam bijlage"
#, fuzzy
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Gewicht"
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr ""
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr ""
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr ""
#, fuzzy
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Gewicht"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr ""
trytond_carrier_weight-3.8.0/locale/pt_BR.po 0000644 0001750 0001750 00000003405 12615110065 020417 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Moeda"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr "Decimais da moeda do peso"
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr "Lista de preços"
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr "UDM do peso"
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr "Dígitos decimais da UDM do peso"
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr "Transportadora"
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr "Data de criação"
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr "Criado por"
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr "ID"
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr "Preço"
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Nome"
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Peso"
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr "Data de edição"
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr "Editado por"
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr "Lista de preço por peso da transportadora"
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Peso"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr "Lista de preço por peso da transportadora"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr "Lista de preço por peso da transportadora"
trytond_carrier_weight-3.8.0/locale/ru_RU.po 0000644 0001750 0001750 00000003355 12615110012 020441 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
#, fuzzy
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Валюты"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr ""
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr ""
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr ""
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr ""
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr ""
#, fuzzy
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr "Дата создания"
#, fuzzy
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr "Создано пользователем"
#, fuzzy
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr "ID"
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr ""
#, fuzzy
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Наименование"
#, fuzzy
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Ширина"
#, fuzzy
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr "Дата изменения"
#, fuzzy
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr "Изменено пользователем"
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr ""
#, fuzzy
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Ширина"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr ""
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr ""
trytond_carrier_weight-3.8.0/locale/sl_SI.po 0000644 0001750 0001750 00000003155 12615110025 020420 0 ustar ced ced 0000000 0000000 #
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,weight_currency:"
msgid "Currency"
msgstr "Valuta"
msgctxt "field:carrier,weight_currency_digits:"
msgid "Weight Currency Digits"
msgstr "Decimalke"
msgctxt "field:carrier,weight_price_list:"
msgid "Price List"
msgstr "Cenik"
msgctxt "field:carrier,weight_uom:"
msgid "Weight Uom"
msgstr "ME za težo"
msgctxt "field:carrier,weight_uom_digits:"
msgid "Weight Uom Digits"
msgstr "Decimalke za težo"
msgctxt "field:carrier.weight_price_list,carrier:"
msgid "Carrier"
msgstr "Špediter"
msgctxt "field:carrier.weight_price_list,create_date:"
msgid "Create Date"
msgstr "Izdelano"
msgctxt "field:carrier.weight_price_list,create_uid:"
msgid "Create User"
msgstr "Izdelal"
msgctxt "field:carrier.weight_price_list,id:"
msgid "ID"
msgstr "ID"
msgctxt "field:carrier.weight_price_list,price:"
msgid "Price"
msgstr "Cena"
msgctxt "field:carrier.weight_price_list,rec_name:"
msgid "Name"
msgstr "Ime"
msgctxt "field:carrier.weight_price_list,weight:"
msgid "Weight"
msgstr "Teža"
msgctxt "field:carrier.weight_price_list,write_date:"
msgid "Write Date"
msgstr "Zapisano"
msgctxt "field:carrier.weight_price_list,write_uid:"
msgid "Write User"
msgstr "Zapisal"
msgctxt "model:carrier.weight_price_list,name:"
msgid "Carrier Weight Price List"
msgstr "Ceniki po teži"
msgctxt "selection:carrier,carrier_cost_method:"
msgid "Weight"
msgstr "Teža"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price List"
msgstr "Cenik po teži"
msgctxt "view:carrier.weight_price_list:"
msgid "Carrier Weight Price Lists"
msgstr "Ceniki po teži"
trytond_carrier_weight-3.8.0/tests/ 0000755 0001750 0001750 00000000000 12615673235 016767 5 ustar ced ced 0000000 0000000 trytond_carrier_weight-3.8.0/tests/__init__.py 0000644 0001750 0001750 00000000314 12437324617 021075 0 ustar ced ced 0000000 0000000 # This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
from test_carrier_weight import suite
__all__ = ['suite']
trytond_carrier_weight-3.8.0/tests/scenario_carrier_weight.rst 0000644 0001750 0001750 00000016741 12531700264 024401 0 ustar ced ced 0000000 0000000 =======================
Carrier Weight Scenario
=======================
Imports::
>>> import datetime
>>> from dateutil.relativedelta import relativedelta
>>> from decimal import Decimal
>>> from proteus import config, Model, Wizard
>>> from trytond.modules.company.tests.tools import create_company, \
... get_company
>>> from trytond.modules.account.tests.tools import create_fiscalyear, \
... create_chart, get_accounts
>>> from.trytond.modules.account_invoice.tests.tools import \
... set_fiscalyear_invoice_sequences, create_payment_term
>>> today = datetime.date.today()
Create database::
>>> config = config.set_trytond()
>>> config.pool.test = True
Install carrier_weight, purchase_shipment_cost and sale_shipment_cost::
>>> Module = Model.get('ir.module')
>>> modules = Module.find([
... ('name', 'in', ['carrier_weight',
... 'purchase_shipment_cost', 'sale_shipment_cost']),
... ])
>>> for module in modules:
... module.click('install')
>>> Wizard('ir.module.install_upgrade').execute('upgrade')
Create company::
>>> _ = create_company()
>>> company = get_company()
Reload the context::
>>> User = Model.get('res.user')
>>> config._context = User.get_preferences(True, config.context)
Create fiscal year::
>>> fiscalyear = set_fiscalyear_invoice_sequences(
... create_fiscalyear(company))
>>> fiscalyear.click('create_period')
Create chart of accounts::
>>> _ = create_chart(company)
>>> accounts = get_accounts(company)
>>> revenue = accounts['revenue']
Create supplier::
>>> Party = Model.get('party.party')
>>> supplier = Party(name='Supplier')
>>> supplier.save()
Create customer::
>>> Party = Model.get('party.party')
>>> customer = Party(name='Customer')
>>> customer.save()
Create category::
>>> ProductCategory = Model.get('product.category')
>>> category = ProductCategory(name='Category')
>>> category.save()
Create product::
>>> ProductUom = Model.get('product.uom')
>>> ProductTemplate = Model.get('product.template')
>>> Product = Model.get('product.product')
>>> unit, = ProductUom.find([('name', '=', 'Unit')])
>>> gram, = ProductUom.find([('name', '=', 'Gram')])
>>> product = Product()
>>> template = ProductTemplate()
>>> template.name = 'Product'
>>> template.category = category
>>> template.default_uom = unit
>>> template.type = 'goods'
>>> template.salable = True
>>> template.list_price = Decimal('20')
>>> template.cost_price = Decimal('8')
>>> template.account_revenue = revenue
>>> template.weight = 250
>>> template.weight_uom = gram
>>> template.save()
>>> product.template = template
>>> product.save()
>>> carrier_product = Product()
>>> carrier_template = ProductTemplate()
>>> carrier_template.name = 'Carrier Product'
>>> carrier_template.category = category
>>> carrier_template.default_uom = unit
>>> carrier_template.type = 'service'
>>> carrier_template.salable = True
>>> carrier_template.list_price = Decimal('3')
>>> carrier_template.cost_price = Decimal('3')
>>> carrier_template.account_revenue = revenue
>>> carrier_template.save()
>>> carrier_product.template = carrier_template
>>> carrier_product.save()
Create carrier::
>>> Carrier = Model.get('carrier')
>>> WeightPriceList = Model.get('carrier.weight_price_list')
>>> kilogram, = ProductUom.find([('name', '=', 'Kilogram')])
>>> carrier = Carrier()
>>> party = Party(name='Carrier')
>>> party.save()
>>> carrier.party = party
>>> carrier.carrier_product = carrier_product
>>> carrier.carrier_cost_method = 'weight'
>>> carrier.weight_currency = company.currency
>>> carrier.weight_uom = kilogram
>>> for weight, price in (
... (0.5, Decimal(25)),
... (1, Decimal(40)),
... (5, Decimal(180)),
... ):
... line = WeightPriceList(weight=weight, price=price)
... carrier.weight_price_list.append(line)
>>> carrier.save()
Receive a single product line::
>>> ShipmentIn = Model.get('stock.shipment.in')
>>> Location = Model.get('stock.location')
>>> supplier_location, = Location.find([
... ('code', '=', 'SUP'),
... ])
>>> shipment = ShipmentIn()
>>> shipment.supplier = supplier
>>> move = shipment.incoming_moves.new()
>>> move.from_location = supplier_location
>>> move.to_location = shipment.warehouse.input_location
>>> move.product = product
>>> move.quantity = 4
>>> move.unit_price
Decimal('8')
>>> shipment.carrier = carrier
>>> shipment.cost
Decimal('25')
>>> shipment.cost_currency == company.currency
True
>>> shipment.click('receive')
>>> shipment.state
u'received'
>>> move, = shipment.incoming_moves
>>> move.unit_price
Decimal('14.2500')
Create payment term::
>>> payment_term = create_payment_term()
>>> payment_term.save()
Sale products with cost on shipment::
>>> Sale = Model.get('sale.sale')
>>> sale = Sale()
>>> sale.party = customer
>>> sale.carrier = carrier
>>> sale.payment_term = payment_term
>>> sale.invoice_method = 'shipment'
>>> sale.shipment_cost_method = 'shipment'
>>> sale_line = sale.lines.new()
>>> sale_line.product = product
>>> sale_line.quantity = 5.0
>>> sale.click('quote')
>>> cost_line = sale.lines[-1]
>>> cost_line.product == carrier_product
True
>>> cost_line.quantity == 1
True
>>> cost_line.amount
Decimal('40.00')
>>> sale.click('confirm')
>>> sale.click('process')
>>> sale.state
u'processing'
>>> sale.untaxed_amount
Decimal('140.00')
Send products::
>>> ShipmentOut = Model.get('stock.shipment.out')
>>> shipment, = sale.shipments
>>> shipment.carrier == carrier
True
>>> shipment.cost
Decimal('40')
>>> shipment.cost_currency == company.currency
True
>>> move, = shipment.inventory_moves
>>> move.quantity = 4
>>> shipment.cost
Decimal('25')
>>> shipment.cost_currency == company.currency
True
>>> shipment.state
u'waiting'
>>> shipment.click('assign_force')
>>> shipment.state
u'assigned'
>>> shipment.click('pack')
>>> shipment.state
u'packed'
>>> shipment.click('done')
>>> shipment.state
u'done'
Check customer invoice::
>>> sale.reload()
>>> invoice, = sale.invoices
>>> invoice.untaxed_amount
Decimal('105.00')
Sale products with cost on order::
>>> sale = Sale()
>>> sale.party = customer
>>> sale.carrier = carrier
>>> sale.payment_term = payment_term
>>> sale.invoice_method = 'order'
>>> sale.shipment_cost_method = 'order'
>>> sale_line = sale.lines.new()
>>> sale_line.product = product
>>> sale_line.quantity = 3.0
>>> sale.click('quote')
>>> cost_line = sale.lines[-1]
>>> cost_line.product == carrier_product
True
>>> cost_line.quantity == 1
True
>>> cost_line.amount
Decimal('25.00')
>>> sale.click('confirm')
>>> sale.click('process')
>>> sale.state
u'processing'
>>> sale.untaxed_amount
Decimal('85.00')
Check customer shipment::
>>> shipment, = sale.shipments
>>> shipment.carrier == carrier
True
Check customer invoice::
>>> sale.reload()
>>> invoice, = sale.invoices
>>> invoice.untaxed_amount
Decimal('85.00')
trytond_carrier_weight-3.8.0/tests/test_carrier_weight.py 0000644 0001750 0001750 00000010111 12461746523 023370 0 ustar ced ced 0000000 0000000 # This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
import unittest
import doctest
from decimal import Decimal
import trytond.tests.test_tryton
from trytond.tests.test_tryton import ModuleTestCase
from trytond.tests.test_tryton import POOL, DB_NAME, USER, CONTEXT
from trytond.tests.test_tryton import doctest_setup, doctest_teardown
from trytond.transaction import Transaction
class CarrierWeightTestCase(ModuleTestCase):
'Test CarrierWeight module'
module = 'carrier_weight'
def setUp(self):
super(CarrierWeightTestCase, self).setUp()
self.party = POOL.get('party.party')
self.uom = POOL.get('product.uom')
self.template = POOL.get('product.template')
self.product = POOL.get('product.product')
self.category = POOL.get('product.category')
self.currency = POOL.get('currency.currency')
self.carrier = POOL.get('carrier')
self.weight_price_list = POOL.get('carrier.weight_price_list')
def test0010compute_weight_price(self):
'Test compute_weight_price'
with Transaction().start(DB_NAME, USER, context=CONTEXT):
party, = self.party.create([{
'name': 'Carrier',
}])
uom, = self.uom.search([
('name', '=', 'Unit'),
])
category, = self.category.create([{
'name': 'Category',
}])
template, = self.template.create([{
'name': 'Carrier',
'default_uom': uom.id,
'category': category.id,
'type': 'service',
'list_price': Decimal(0),
'cost_price': Decimal(0),
}])
product, = self.product.create([{
'template': template.id,
}])
weight_uom, = self.uom.search([
('name', '=', 'Kilogram'),
])
currency, = self.currency.search([
('code', '=', 'cu1'),
])
carrier, = self.carrier.create([{
'party': party.id,
'carrier_product': product.id,
'carrier_cost_method': 'weight',
'weight_uom': weight_uom.id,
'weight_currency': currency.id,
}])
for i, weight in enumerate(xrange(0, 100, 20)):
self.weight_price_list.create([{
'carrier': carrier.id,
'weight': weight,
'price': Decimal(i),
}])
self.assertEqual(
carrier.compute_weight_price(0), Decimal(0))
for weight, price in [
(1, Decimal(0)),
(10, Decimal(0)),
(20, Decimal(0)),
(21, Decimal(1)),
(80, Decimal(3)),
(81, Decimal(4)),
(100, Decimal(4)),
]:
self.assertEqual(carrier.compute_weight_price(weight), price)
def suite():
suite = trytond.tests.test_tryton.suite()
from trytond.modules.product.tests import test_product
for test in test_product.suite():
if test not in suite and not isinstance(test, doctest.DocTestCase):
suite.addTest(test)
from trytond.modules.currency.tests import test_currency
for test in test_currency.suite():
if test not in suite and not isinstance(test, doctest.DocTestCase):
suite.addTest(test)
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(
CarrierWeightTestCase))
suite.addTests(doctest.DocFileSuite('scenario_carrier_weight.rst',
setUp=doctest_setup, tearDown=doctest_teardown, encoding='utf-8',
optionflags=doctest.REPORT_ONLY_FIRST_FAILURE))
return suite
trytond_carrier_weight-3.8.0/view/ 0000755 0001750 0001750 00000000000 12615673235 016577 5 ustar ced ced 0000000 0000000 trytond_carrier_weight-3.8.0/view/carrier_form.xml 0000644 0001750 0001750 00000000763 12122427774 021777 0 ustar ced ced 0000000 0000000