first commit

This commit is contained in:
root
2026-03-14 09:42:12 +00:00
commit 0adbd20c2c
10991 changed files with 1646955 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.
__all__ = ['ShipmentCostMixin']
def __getattr__(name):
if name == 'ShipmentCostMixin':
from .stock import ShipmentCostMixin
return ShipmentCostMixin
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")

View File

@@ -0,0 +1,18 @@
# 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 trytond.model import fields
from trytond.pool import PoolMeta
class Carrier(metaclass=PoolMeta):
__name__ = 'carrier'
shipment_cost_allocation_method = fields.Selection([
('cost', "By Cost"),
], "Allocation Method", required=True,
help="Method to allocate shipment cost.")
@classmethod
def default_shipment_cost_allocation_method(cls):
return 'cost'

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="carrier_view_form">
<field name="model">carrier</field>
<field name="inherit" ref="carrier.carrier_view_form"/>
<field name="name">carrier_form</field>
</record>
</data>
</tryton>

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr "Mètode d'assignació"
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr "Preu de cost del enviament"
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr "Inclou cost del enviament"
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr "Transportista"
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr "Cost"
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr "Moneda cost"
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr "Moneda cost"
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr "Edita cost"
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr "Cost"
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr "Cost enviament només lectura"
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr "Transportista"
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr "Cost"
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr "Moneda cost"
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr "Moneda cost"
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr "Edita cost"
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr "Cost"
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr "Cost enviament només lectura"
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr "Mètode per assignar les despeses d'enviament."
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr "Marca per editar el cost."
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr "Marca per editar el cost."
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr "Per cost"
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr "Costos"
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr "Costos"

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr "Zuordnungsmethode"
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr "Lieferkosten Warenausgangslieferung"
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr "Lieferkosten Warenausgangslieferung Berücksichtigen"
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr "Versanddienstleister"
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr "Kosten"
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr "Währung Kosten"
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr "Währung Kosten"
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr "Kosten Bearbeiten"
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr "Kosten"
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr "Lieferkosten Schreibgeschützt"
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr "Versanddienstleister"
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr "Kosten"
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr "Währung Kosten"
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr "Währung Kosten"
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr "Kosten Bearbeiten"
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr "Kosten"
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr "Lieferkosten Schreibgeschützt"
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr "Methode zum Zuordnen von Lieferkosten."
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr "Aktivieren um die Kosten zu bearbeiten."
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr "Aktivieren um die Kosten zu bearbeiten."
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr "Kosten"
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr "Kosten"
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr "Kosten"

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr "Método de asignación"
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr "Precio de coste del envío"
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr "Incluir coste del envío"
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr "Transportista"
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr "Coste"
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr "Moneda coste"
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr "Moneda coste"
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr "Editar coste"
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr "Coste"
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr "Coste envío solo lectura"
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr "Transportista"
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr "Coste"
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr "Moneda coste"
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr "Moneda coste"
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr "Editar coste"
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr "Coste"
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr "Coste envío solo lectura"
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr "Método para asignar los costes de envío."
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr "Marcar para editar el coste."
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr "Marcar para editar el coste."
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr "Por coste"
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr "Costes"
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr "Costes"

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr "Méthode d'allocation"
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr "Prix des frais d'expédition"
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr "Inclure les frais d'expédition"
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr "Transporteur"
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr "Coût"
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr "Devise du coût"
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr "Devise du coût"
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr "Modifier le coût"
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr "Coût"
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr "Frais d'expédition en lecture seule"
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr "Transporteur"
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr "Coût"
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr "Devise du coût"
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr "Devise du coût"
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr "Modifier le coût"
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr "Coût"
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr "Frais d'expédition en lecture seule"
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr "Méthode d'allocation des frais d'expédition."
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr "Cochez pour modifier le coût."
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr "Cochez pour modifier le coût."
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr "Par coût"
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr "Coûts"
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr "Coûts"

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr "Metodo di allocazione"
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr "Prezzo di costo di spedizione"
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr "Includi il costo di spedizione"
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr "Vettore"
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr "Costo"
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr "Valuta di costo"
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr "Valuta di costo"
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr "Modifica costo"
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr "Costo"
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr "Costo di spedizione in sola lettura"
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr "Vettore"
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr "Costo"
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr "Valuta di costo"
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr "Valuta di costo"
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr "Modifica costo"
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr "Costo"
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr "Costo di spedizione in sola lettura"
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr "Metodo per allocare il costo di spedizione."
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr "Spunta per modificare il costo."
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr "Spunta per modificare il costo."
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr "Per costo"
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr "Costi"
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr "Costi"

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr "Toewijzingsmethode"
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr "Verzendkosten"
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr "Inclusief verzendkosten"
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr "Transporteur"
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr "Kosten"
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr "Kosten Valuta"
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr "Kosten Valuta"
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr "Kosten bewerken"
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr "Kosten"
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr "Verzendkosten Alleen Lezen"
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr "Transporteur"
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr "Kosten"
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr "Kosten Valuta"
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr "Kosten Valuta"
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr "Kosten bewerken"
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr "Kosten"
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr "Verzendkosten Alleen Lezen"
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr "Methode om verzendkosten toe te wijzen."
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr "Vink aan om de kosten te bewerken."
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr "Vink aan om de kosten te bewerken."
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr "Op kosten"
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr "Kosten"
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr "Kosten"

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,95 @@
#
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:carrier,shipment_cost_allocation_method:"
msgid "Allocation Method"
msgstr ""
msgctxt "field:stock.move,shipment_out_cost_price:"
msgid "Shipment Cost Price"
msgstr ""
msgctxt "field:stock.reporting.margin.context,include_shipment_cost:"
msgid "Include Shipment Cost"
msgstr ""
msgctxt "field:stock.shipment.out,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "field:stock.shipment.out.return,carrier:"
msgid "Carrier"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_currency_used:"
msgid "Cost Currency"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_edit:"
msgid "Edit Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,cost_used:"
msgid "Cost"
msgstr ""
msgctxt "field:stock.shipment.out.return,shipment_cost_readonly:"
msgid "Shipment Cost Read Only"
msgstr ""
msgctxt "help:carrier,shipment_cost_allocation_method:"
msgid "Method to allocate shipment cost."
msgstr ""
msgctxt "help:stock.shipment.out,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "help:stock.shipment.out.return,cost_edit:"
msgid "Check to edit the cost."
msgstr ""
msgctxt "selection:carrier,shipment_cost_allocation_method:"
msgid "By Cost"
msgstr ""
msgctxt "view:stock.shipment.out.return:"
msgid "Costs"
msgstr ""
msgctxt "view:stock.shipment.out:"
msgid "Costs"
msgstr ""

View File

@@ -0,0 +1,259 @@
# 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 decimal import Decimal
from sql import Null
from trytond.model import ModelView, Workflow, fields
from trytond.modules.product import price_digits, round_price
from trytond.pool import Pool, PoolMeta
from trytond.pyson import Bool, Eval
from trytond.transaction import Transaction
class Move(metaclass=PoolMeta):
__name__ = 'stock.move'
shipment_out_cost_price = fields.Numeric(
"Shipment Cost Price", digits=price_digits, readonly=True,
states={
'invisible': ~Eval('shipment_out_cost_price'),
},
)
@classmethod
def __setup__(cls):
super().__setup__()
cls._allow_modify_closed_period.add('shipment_out_cost_price')
class ShipmentCostMixin:
__slots__ = ()
carrier = fields.Many2One(
'carrier', "Carrier",
states={
'readonly': Eval('shipment_cost_readonly', True),
},
context={
'company': Eval('company', -1),
},
depends=['company'])
cost_currency_used = fields.Function(fields.Many2One(
'currency.currency', "Cost Currency",
states={
'readonly': (
Eval('shipment_cost_readonly', True)
| ~Eval('cost_edit', False)),
}),
'on_change_with_cost_currency_used', setter='set_cost')
cost_currency = fields.Many2One(
'currency.currency', "Cost Currency",
states={
'required': Bool(Eval('cost')),
'readonly': Eval('shipment_cost_readonly', True),
})
cost_used = fields.Function(fields.Numeric(
"Cost", digits=price_digits,
states={
'readonly': (
Eval('shipment_cost_readonly', True)
| ~Eval('cost_edit', False)),
}),
'on_change_with_cost_used', setter='set_cost')
cost = fields.Numeric("Cost", digits=price_digits, readonly=True)
cost_edit = fields.Boolean(
"Edit Cost",
states={
'readonly': Eval('shipment_cost_readonly', True),
'invisible': Eval('shipment_cost_readonly', True),
},
help="Check to edit the cost.")
shipment_cost_readonly = fields.Function(
fields.Boolean("Shipment Cost Read Only"),
'on_change_with_shipment_cost_readonly')
def _get_carrier_context(self):
return {}
def get_carrier_context(self):
return self._get_carrier_context()
@fields.depends('carrier', 'company', methods=['_get_carrier_context'])
def _compute_costs(self):
costs = {
'cost': None,
'cost_currency': None,
}
if self.carrier:
with Transaction().set_context(self._get_carrier_context()):
cost, currency_id = self.carrier.get_purchase_price()
if cost is not None:
costs['cost'] = round_price(cost)
costs['cost_currency'] = currency_id
return costs
@fields.depends(
'cost_currency', 'cost_edit',
methods=['_compute_costs', 'on_change_with_shipment_cost_readonly'])
def on_change_with_cost_currency_used(self, name=None):
readonly = self.on_change_with_shipment_cost_readonly()
if not self.cost_edit and not readonly:
return self._compute_costs()['cost_currency']
elif self.cost_currency:
return self.cost_currency
@fields.depends(
'cost', 'cost_edit',
methods=['_compute_costs', 'on_change_with_shipment_cost_readonly'])
def on_change_with_cost_used(self, name=None):
cost = self.cost
readonly = self.on_change_with_shipment_cost_readonly()
if not self.cost_edit and not readonly:
cost = self._compute_costs()['cost']
return cost
@classmethod
def set_cost(cls, lines, name, value):
if name.endswith('_used'):
name = name[:-len('_used')]
cls.write([l for l in lines if l.cost_edit], {
name: value,
})
def on_change_with_shipment_cost_readonly(self, name=None):
raise NotImplementedError
@classmethod
def index_set_field(cls, name):
index = super().index_set_field(name)
if name == 'cost_used':
index = cls.index_set_field('cost_currency_used') + 1
return index
@property
def shipment_cost_moves(self):
raise NotImplementedError
def _get_shipment_cost(self):
"Return the cost for the shipment in the company currency"
pool = Pool()
Currency = pool.get('currency.currency')
if self.cost_used:
return Currency.compute(
self.cost_currency_used, self.cost_used,
self.company.currency, round=False)
else:
return Decimal(0)
class ShipmentOutCostMixin(ShipmentCostMixin):
@classmethod
def __register__(cls, module):
pool = Pool()
Company = pool.get('company.company')
table = cls.__table__()
table_h = cls.__table_handler__(module)
company = Company.__table__()
cursor = Transaction().connection.cursor()
cost_currency_exists = table_h.column_exist('cost_currency')
super().__register__(module)
# Migration from 6.4: fill cost_currency
if not cost_currency_exists:
cursor.execute(*table.update(
columns=[table.cost_currency],
values=[company.select(
company.currency,
where=company.id == table.company)],
where=table.cost != Null))
@fields.depends('state')
def on_change_with_shipment_cost_readonly(self, name=None):
return self.state in {'done', 'cancelled'}
@classmethod
def set_shipment_cost(cls, shipments):
pool = Pool()
Move = pool.get('stock.move')
moves = []
for shipment in shipments:
cost = shipment._get_shipment_cost()
if cost is None:
continue
factors = getattr(shipment,
'_get_allocation_shipment_cost_factors_by_%s' %
shipment.allocation_shipment_cost_method)()
moves.extend(shipment._allocate_shipment_cost(cost, factors))
Move.save(moves)
@property
def allocation_shipment_cost_method(self):
if self.carrier:
return self.carrier.shipment_cost_allocation_method
return 'cost'
def _get_allocation_shipment_cost_factors_by_cost(self):
sum_ = Decimal(0)
costs = {}
for move in self.shipment_cost_moves:
move_cost = (
(move.cost_price or 0) * Decimal(str(move.internal_quantity)))
costs[move] = move_cost
sum_ += move_cost
factors = {}
for move in self.shipment_cost_moves:
if sum_:
ratio = costs[move] / sum_
else:
ratio = Decimal(1) / len(self.shipment_cost_moves)
factors[move.id] = ratio
return factors
def _allocate_shipment_cost(self, cost, factors):
moves = []
for move in self.shipment_cost_moves:
ratio = factors[move.id]
quantity = Decimal(str(move.internal_quantity))
if quantity and ratio:
cost_price = round_price(cost * ratio / quantity)
else:
cost_price = Decimal(0)
if move.shipment_out_cost_price != cost_price:
move.shipment_out_cost_price = cost_price
moves.append(move)
return moves
@classmethod
@ModelView.button
@Workflow.transition('done')
def do(cls, shipments):
for shipment in shipments:
shipment.cost = shipment.cost_used
shipment.cost_currency = shipment.cost_currency_used
cls.save(shipments)
super().do(shipments)
cls.set_shipment_cost(shipments)
class ShipmentOut(ShipmentOutCostMixin, metaclass=PoolMeta):
__name__ = 'stock.shipment.out'
@property
def shipment_cost_moves(self):
return self.outgoing_moves
class ShipmentOutReturn(ShipmentOutCostMixin, metaclass=PoolMeta):
__name__ = 'stock.shipment.out.return'
@property
def shipment_cost_moves(self):
return self.incoming_moves

View File

@@ -0,0 +1,30 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="stock_move_view_form">
<field name="model">stock.move</field>
<field name="inherit" ref="stock.move_view_form"/>
<field name="name">stock_move_form</field>
</record>
<record model="ir.ui.view" id="shipment_out_view_list">
<field name="model">stock.shipment.out</field>
<field name="inherit" ref="stock.shipment_out_view_tree"/>
<field name="name">shipment_out_list</field>
</record>
<record model="ir.ui.view" id="shipment_out_view_form">
<field name="model">stock.shipment.out</field>
<field name="inherit" ref="stock.shipment_out_view_form"/>
<field name="name">shipment_out_form</field>
</record>
<record model="ir.ui.view" id="shipment_out_return_view_form">
<field name="model">stock.shipment.out.return</field>
<field name="inherit" ref="stock.shipment_out_return_view_form"/>
<field name="name">shipment_out_form</field>
</record>
</data>
</tryton>

View File

@@ -0,0 +1,32 @@
# 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 sql.aggregate import Sum
from sql.conditionals import Coalesce
from trytond.model import fields
from trytond.pool import PoolMeta
from trytond.transaction import Transaction
class AbstractShipmentOutCostMixin:
__slots__ = ()
@classmethod
def _column_cost(cls, tables, withs, sign):
move = tables['move']
cost = super()._column_cost(tables, withs, sign)
if Transaction().context.get('include_shipment_cost'):
cost += Sum(
sign * cls.cost.sql_cast(move.internal_quantity)
* Coalesce(move.shipment_out_cost_price, 0))
return cost
class Context(metaclass=PoolMeta):
__name__ = 'stock.reporting.margin.context'
include_shipment_cost = fields.Boolean("Include Shipment Cost")
@classmethod
def default_include_shipment_cost(cls):
return Transaction().context.get('include_shipment_cost', False)

View File

@@ -0,0 +1,12 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<tryton>
<data>
<record model="ir.ui.view" id="reporting_margin_context_view_form">
<field name="model">stock.reporting.margin.context</field>
<field name="inherit" ref="stock.reporting_margin_context_view_form"/>
<field name="name">reporting_margin_context_form</field>
</record>
</data>
</tryton>

View File

@@ -0,0 +1,2 @@
# This file is part of Tryton. The COPYRIGHT file at the top level of
# this repository contains the full copyright notices and license terms.

View File

@@ -0,0 +1,127 @@
============================
Stock Shipment Cost Scenario
============================
Imports::
>>> import datetime as dt
>>> from decimal import Decimal
>>> from proteus import Model
>>> from trytond.modules.company.tests.tools import create_company
>>> from trytond.modules.currency.tests.tools import get_currency
>>> from trytond.tests.tools import activate_modules
>>> today = dt.date.today()
>>> yesterday = today - dt.timedelta(days=1)
Activate modules::
>>> config = activate_modules('stock_shipment_cost', create_company)
Get currency::
>>> currency = get_currency()
Create customer::
>>> Party = Model.get('party.party')
>>> customer = Party(name='Customer')
>>> customer.save()
Create products::
>>> ProductUom = Model.get('product.uom')
>>> ProductTemplate = Model.get('product.template')
>>> unit, = ProductUom.find([('name', '=', 'Unit')])
>>> template = ProductTemplate()
>>> template.name = 'Product1'
>>> template.default_uom = unit
>>> template.type = 'goods'
>>> template.save()
>>> product1, = template.products
>>> product1.cost_price = Decimal('10.0000')
>>> product1.save()
>>> template = ProductTemplate()
>>> template.name = 'Product2'
>>> template.default_uom = unit
>>> template.type = 'goods'
>>> template.save()
>>> product2, = template.products
>>> product2.cost_price = Decimal('20.0000')
>>> product2.save()
Get stock locations::
>>> Location = Model.get('stock.location')
>>> warehouse_loc, = Location.find([('code', '=', 'WH')])
>>> supplier_loc, = Location.find([('code', '=', 'SUP')])
>>> customer_loc, = Location.find([('code', '=', 'CUS')])
>>> output_loc, = Location.find([('code', '=', 'OUT')])
>>> storage_loc, = Location.find([('code', '=', 'STO')])
Create a customer shipment::
>>> Shipment = Model.get('stock.shipment.out')
>>> shipment = Shipment()
>>> shipment.customer = customer
>>> move = shipment.outgoing_moves.new()
>>> move.product = product1
>>> move.quantity = 1
>>> move.from_location = output_loc
>>> move.to_location = customer_loc
>>> move.unit_price = Decimal('30')
>>> move.currency = currency
>>> move = shipment.outgoing_moves.new()
>>> move.product = product2
>>> move.quantity = 2
>>> move.from_location = output_loc
>>> move.to_location = customer_loc
>>> move.unit_price = Decimal('40')
>>> move.currency = currency
>>> shipment.click('wait')
>>> shipment.click('assign_force')
>>> shipment.click('pick')
>>> shipment.click('pack')
>>> shipment.cost_edit = True
>>> shipment.cost_used = Decimal('5')
>>> shipment.cost_currency_used = currency
>>> shipment.click('do')
>>> shipment.state
'done'
Check move costs::
>>> sorted([
... (m.cost_price, m.shipment_out_cost_price)
... for m in shipment.outgoing_moves])
[(Decimal('10.0000'), Decimal('1.0000')), (Decimal('20.0000'), Decimal('2.0000'))]
Check reporting margin::
>>> MarginProduct = Model.get('stock.reporting.margin.product')
>>> MarginProductTimeseries = Model.get(
... 'stock.reporting.margin.product.time_series')
>>> context = {
... 'from_date': yesterday,
... 'to_date': today,
... 'period': 'day',
... }
>>> with config.set_context(context=context):
... reports = MarginProduct.find([])
... time_series = MarginProductTimeseries.find([])
>>> len(reports)
2
>>> sorted([r.cost for r in reports])
[Decimal('10.00'), Decimal('40.00')]
>>> context['include_shipment_cost'] = True
>>> with config.set_context(context=context):
... reports = MarginProduct.find([])
... time_series = MarginProductTimeseries.find([])
>>> len(reports)
2
>>> sorted([r.cost for r in reports])
[Decimal('11.00'), Decimal('44.00')]

View File

@@ -0,0 +1,12 @@
# 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 trytond.tests.test_tryton import ModuleTestCase
class StockShipmentCostTestCase(ModuleTestCase):
'Test Stock Shipment Cost module'
module = 'stock_shipment_cost'
del ModuleTestCase

View File

@@ -0,0 +1,8 @@
# 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 trytond.tests.test_tryton import load_doc_tests
def load_tests(*args, **kwargs):
return load_doc_tests(__name__, __file__, *args, **kwargs)

View File

@@ -0,0 +1,22 @@
[tryton]
version=7.8.0
depends:
carrier
ir
product
stock
xml:
carrier.xml
stock.xml
stock_reporting_margin.xml
[register]
model:
carrier.Carrier
stock.Move
stock.ShipmentOut
stock.ShipmentOutReturn
stock_reporting_margin.Context
[register_mixin]
stock_reporting_margin.AbstractShipmentOutCostMixin: trytond.modules.stock.stock_reporting_margin.Abstract

View File

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//field[@name='carrier_cost_method']" position="after">
<newline/>
<label name="shipment_cost_allocation_method"/>
<field name="shipment_cost_allocation_method"/>
<newline/>
</xpath>
</data>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//field[@name='include_lost']" position="after">
<label name="include_shipment_cost"/>
<field name="include_shipment_cost" xexpand="0" width="25"/>
</xpath>
</data>

View File

@@ -0,0 +1,19 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//field[@name='warehouse']" position="after">
<label name="carrier"/>
<field name="carrier"/>
</xpath>
<xpath expr="//page[@id='other']" position="before">
<page id="costs" string="Costs">
<label name="cost_used"/>
<group id="cost_used" col="-1" colspan="3">
<field name="cost_used" xexpand="0"/>
<field name="cost_currency_used"/>
<field name="cost_edit" xexpand="0" xalign="0"/>
</group>
</page>
</xpath>
</data>

View File

@@ -0,0 +1,8 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//field[@name='delivery_address']" position="after">
<field name="carrier" expand="1"/>
</xpath>
</data>

View File

@@ -0,0 +1,9 @@
<?xml version="1.0"?>
<!-- This file is part of Tryton. The COPYRIGHT file at the top level of
this repository contains the full copyright notices and license terms. -->
<data>
<xpath expr="//field[@name='cost_price']" position="after">
<label name="shipment_out_cost_price"/>
<field name="shipment_out_cost_price"/>
</xpath>
</data>