first commit
This commit is contained in:
2
modules/purchase_shipment_cost/__init__.py
Normal file
2
modules/purchase_shipment_cost/__init__.py
Normal 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.
|
||||
Binary file not shown.
Binary file not shown.
BIN
modules/purchase_shipment_cost/__pycache__/stock.cpython-311.pyc
Normal file
BIN
modules/purchase_shipment_cost/__pycache__/stock.cpython-311.pyc
Normal file
Binary file not shown.
15
modules/purchase_shipment_cost/carrier.py
Normal file
15
modules/purchase_shipment_cost/carrier.py
Normal file
@@ -0,0 +1,15 @@
|
||||
# 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'
|
||||
carrier_cost_allocation_method = fields.Selection([
|
||||
('value', 'By Value'),
|
||||
], 'Carrier Cost Allocation Method', required=True)
|
||||
|
||||
@staticmethod
|
||||
def default_carrier_cost_allocation_method():
|
||||
return 'value'
|
||||
13
modules/purchase_shipment_cost/carrier.xml
Normal file
13
modules/purchase_shipment_cost/carrier.xml
Normal file
@@ -0,0 +1,13 @@
|
||||
<?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="type" eval="None"/>
|
||||
<field name="inherit" ref="carrier.carrier_view_form"/>
|
||||
<field name="name">carrier_form</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
56
modules/purchase_shipment_cost/locale/bg.po
Normal file
56
modules/purchase_shipment_cost/locale/bg.po
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "Начин на разпределяне на остойностяване на превоз"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "Остойностяване на доставка на единица"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr "Превозвач"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Разход"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Валута при разход"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Валута при разход"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Разход"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Разход"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "Остойностяване на доставка на единица"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "По стойност"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Разход"
|
||||
51
modules/purchase_shipment_cost/locale/ca.po
Normal file
51
modules/purchase_shipment_cost/locale/ca.po
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "Mètode d'assignació cost transportista"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "Cost unitat enviament"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr "Transportista"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Cost"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Moneda cost"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Moneda cost"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Edita cost"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Cost"
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "Cost enviament només lectura"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr "Marca per editar el cost."
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "Per valor"
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Costos"
|
||||
51
modules/purchase_shipment_cost/locale/cs.po
Normal file
51
modules/purchase_shipment_cost/locale/cs.po
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr ""
|
||||
51
modules/purchase_shipment_cost/locale/de.po
Normal file
51
modules/purchase_shipment_cost/locale/de.po
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "Zuordnungsmethode Versandkosten"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "Einheit Lieferkosten"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr "Versanddienstleister"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Kosten"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Währung Kosten"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Währung Kosten"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Kosten Bearbeiten"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Kosten"
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "Lieferkosten Schreibgeschützt"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr "Aktivieren um die Kosten zu bearbeiten."
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "Nach Wert"
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Kosten"
|
||||
51
modules/purchase_shipment_cost/locale/es.po
Normal file
51
modules/purchase_shipment_cost/locale/es.po
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "Método asignación coste del transportista"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "Coste unidad envío"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr "Transportista"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Coste"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Moneda coste"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Moneda coste"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Editar coste"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Coste"
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "Coste envío solo lectura"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr "Marcar para editar el coste."
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "Por valor"
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Costes"
|
||||
56
modules/purchase_shipment_cost/locale/es_419.po
Normal file
56
modules/purchase_shipment_cost/locale/es_419.po
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "Método de asignación de costo del transportista"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "Costo unitario de envío"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Costo"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Moneda de costo"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Moneda de costo"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Costo"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Costo"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "Costo unitario de envío"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Costo"
|
||||
56
modules/purchase_shipment_cost/locale/et.po
Normal file
56
modules/purchase_shipment_cost/locale/et.po
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "Vedaja kulu jaotamise meetod"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "Veokulu ühik"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr "Vedaja"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Kulu"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Kulu valuuta"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Kulu valuuta"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Kulu"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Kulu"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "Veokulu ühik"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "Väärtuses"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Kulu"
|
||||
56
modules/purchase_shipment_cost/locale/fa.po
Normal file
56
modules/purchase_shipment_cost/locale/fa.po
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "روش تخصیص هزینه حمل"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "واحد هزینه حمل ونقل"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr "حمل کننده"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "هزینه"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "واحد پول هزینه"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "واحد پول هزینه"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "هزینه"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "هزینه"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "واحد هزینه حمل ونقل"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "براساس مقدار"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "هزینه"
|
||||
51
modules/purchase_shipment_cost/locale/fi.po
Normal file
51
modules/purchase_shipment_cost/locale/fi.po
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr ""
|
||||
51
modules/purchase_shipment_cost/locale/fr.po
Normal file
51
modules/purchase_shipment_cost/locale/fr.po
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "Méthode d'affectation des coûts de transport"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "Frais d'expédition unitaire"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr "Transporteur"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Coût"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Devise du coût"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Devise du coût"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Modifier le coût"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Coût"
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "Frais d'expédition en lecture seule"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr "Cochez pour modifier le coût."
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "Par valeur"
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Coûts"
|
||||
55
modules/purchase_shipment_cost/locale/hu.po
Normal file
55
modules/purchase_shipment_cost/locale/hu.po
Normal file
@@ -0,0 +1,55 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Költség"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Költség"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Költség"
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Költség"
|
||||
51
modules/purchase_shipment_cost/locale/id.po
Normal file
51
modules/purchase_shipment_cost/locale/id.po
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr ""
|
||||
53
modules/purchase_shipment_cost/locale/it.po
Normal file
53
modules/purchase_shipment_cost/locale/it.po
Normal file
@@ -0,0 +1,53 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "Metodo di allocazione del costo del vettore"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "Costo unitario di spedizione"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr "Vettore"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Costo"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Valuta di costo"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Valuta di costo"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Modifica costo"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Costo"
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "Costo di spedizione in sola lettura"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr "Spunta per modificare il costo."
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "A valore"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Costo"
|
||||
56
modules/purchase_shipment_cost/locale/lo.po
Normal file
56
modules/purchase_shipment_cost/locale/lo.po
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "ວິທີການຈັດສັນຕົ້ນທຶນຂອງຜູ້ບໍລິການ"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "ຫົວໜ່ວຍລາຄາຄ່າຈັດສົ່ງ"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr "ຜູ້ບໍລິການ"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "ລາຄາ"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "ມູນຄ່າສະກຸນເງິນ"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "ມູນຄ່າສະກຸນເງິນ"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "ລາຄາ"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "ລາຄາ"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "ຫົວໜ່ວຍລາຄາຄ່າຈັດສົ່ງ"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "ດ້ວຍມູນຄ່າ"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "ລາຄາ"
|
||||
52
modules/purchase_shipment_cost/locale/lt.po
Normal file
52
modules/purchase_shipment_cost/locale/lt.po
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Savikainos valiuta"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Savikainos valiuta"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr ""
|
||||
51
modules/purchase_shipment_cost/locale/nl.po
Normal file
51
modules/purchase_shipment_cost/locale/nl.po
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "Toewijzingsmethode verzendkosten"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "eenheidskost verzending"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr "Transporteur"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Kosten"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Kostenvaluta"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Kostenvaluta"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Kosten bewerken"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Kosten"
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "Verzendkosten Alleen Lezen"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr "Vink aan om de kosten te bewerken."
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "Op waarde"
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Kosten"
|
||||
55
modules/purchase_shipment_cost/locale/pl.po
Normal file
55
modules/purchase_shipment_cost/locale/pl.po
Normal file
@@ -0,0 +1,55 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Koszt"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Koszt waluty"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Koszt waluty"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Koszt"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Koszt"
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "Wg wartości"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Koszt"
|
||||
56
modules/purchase_shipment_cost/locale/pt.po
Normal file
56
modules/purchase_shipment_cost/locale/pt.po
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "Método de atribuição de custo da transportadora"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "Custo unitário de remessa"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr "Transportadora"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Custo"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Moeda de custo"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Moeda de custo"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Custo"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Custo"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "Custo unitário de remessa"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "Por valor"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Custo"
|
||||
51
modules/purchase_shipment_cost/locale/ro.po
Normal file
51
modules/purchase_shipment_cost/locale/ro.po
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr ""
|
||||
55
modules/purchase_shipment_cost/locale/ru.po
Normal file
55
modules/purchase_shipment_cost/locale/ru.po
Normal file
@@ -0,0 +1,55 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Стоимость"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Стоимость"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Стоимость"
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Стоимость"
|
||||
56
modules/purchase_shipment_cost/locale/sl.po
Normal file
56
modules/purchase_shipment_cost/locale/sl.po
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr "Porazdelitev špedicijskih stroškov"
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr "Strošek dostave na enoto"
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr "Špediter"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr "Strošek"
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Valuta stroška"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr "Valuta stroška"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr "Strošek"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr "Strošek"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr "Strošek dostave na enoto"
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr "Po vrednosti"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr "Strošek"
|
||||
51
modules/purchase_shipment_cost/locale/tr.po
Normal file
51
modules/purchase_shipment_cost/locale/tr.po
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr ""
|
||||
51
modules/purchase_shipment_cost/locale/uk.po
Normal file
51
modules/purchase_shipment_cost/locale/uk.po
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr ""
|
||||
51
modules/purchase_shipment_cost/locale/zh_CN.po
Normal file
51
modules/purchase_shipment_cost/locale/zh_CN.po
Normal file
@@ -0,0 +1,51 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:carrier,carrier_cost_allocation_method:"
|
||||
msgid "Carrier Cost Allocation Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.move,unit_shipment_cost:"
|
||||
msgid "Unit Shipment Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,carrier:"
|
||||
msgid "Carrier"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_currency_used:"
|
||||
msgid "Cost Currency"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_edit:"
|
||||
msgid "Edit Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,cost_used:"
|
||||
msgid "Cost"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:stock.shipment.in,shipment_cost_readonly:"
|
||||
msgid "Shipment Cost Read Only"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:stock.shipment.in,cost_edit:"
|
||||
msgid "Check to edit the cost."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:carrier,carrier_cost_allocation_method:"
|
||||
msgid "By Value"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:stock.shipment.in:"
|
||||
msgid "Costs"
|
||||
msgstr ""
|
||||
182
modules/purchase_shipment_cost/stock.py
Normal file
182
modules/purchase_shipment_cost/stock.py
Normal file
@@ -0,0 +1,182 @@
|
||||
# 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 ROUND_DOWN, ROUND_HALF_EVEN, Decimal
|
||||
from operator import itemgetter
|
||||
|
||||
from trytond.model import ModelView, Workflow, fields
|
||||
from trytond.modules.product import price_digits, round_price
|
||||
from trytond.modules.stock_shipment_cost import ShipmentCostMixin
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.pyson import Eval
|
||||
|
||||
|
||||
class ShipmentIn(ShipmentCostMixin, metaclass=PoolMeta):
|
||||
__name__ = 'stock.shipment.in'
|
||||
|
||||
@fields.depends('state')
|
||||
def on_change_with_shipment_cost_readonly(self, name=None):
|
||||
return self.state != 'draft'
|
||||
|
||||
@property
|
||||
def shipment_cost_moves(self):
|
||||
return [
|
||||
m for m in self.incoming_moves
|
||||
if m.state not in {'done', 'cancelled'}]
|
||||
|
||||
def allocate_cost_by_value(self):
|
||||
pool = Pool()
|
||||
Currency = pool.get('currency.currency')
|
||||
Move = pool.get('stock.move')
|
||||
|
||||
cost = self._get_shipment_cost()
|
||||
if not cost:
|
||||
return
|
||||
|
||||
moves = self.shipment_cost_moves
|
||||
|
||||
sum_value = 0
|
||||
unit_prices = {}
|
||||
for move in moves:
|
||||
unit_price = Currency.compute(move.currency, move.unit_price,
|
||||
self.company.currency, round=False)
|
||||
unit_prices[move.id] = unit_price
|
||||
sum_value += unit_price * Decimal(str(move.quantity))
|
||||
|
||||
costs = []
|
||||
digit = Move.unit_price.digits[1]
|
||||
exp = Decimal(str(10.0 ** -digit))
|
||||
difference = cost
|
||||
for move in moves:
|
||||
quantity = Decimal(str(move.quantity))
|
||||
if not sum_value:
|
||||
move_cost = cost / Decimal(len(moves))
|
||||
else:
|
||||
move_cost = cost * quantity * unit_prices[move.id] / sum_value
|
||||
unit_shipment_cost = round_price(
|
||||
move_cost / quantity, rounding=ROUND_DOWN)
|
||||
costs.append({
|
||||
'unit_shipment_cost': unit_shipment_cost,
|
||||
'difference': move_cost - (unit_shipment_cost * quantity),
|
||||
'move': move,
|
||||
})
|
||||
difference -= unit_shipment_cost * quantity
|
||||
costs.sort(key=itemgetter('difference'))
|
||||
for cost in costs:
|
||||
move = cost['move']
|
||||
quantity = Decimal(str(move.quantity))
|
||||
if exp * quantity < difference:
|
||||
cost['unit_shipment_cost'] += exp
|
||||
difference -= exp * quantity
|
||||
if difference < exp:
|
||||
break
|
||||
|
||||
for cost in costs:
|
||||
move = cost['move']
|
||||
unit_shipment_cost = Currency.compute(
|
||||
self.company.currency, cost['unit_shipment_cost'],
|
||||
move.currency, round=False)
|
||||
unit_shipment_cost = round_price(
|
||||
unit_shipment_cost, rounding=ROUND_HALF_EVEN)
|
||||
move.unit_price += unit_shipment_cost
|
||||
move.unit_shipment_cost = unit_shipment_cost
|
||||
Move.save(moves)
|
||||
|
||||
@classmethod
|
||||
@ModelView.button
|
||||
@Workflow.transition('received')
|
||||
def receive(cls, shipments):
|
||||
Carrier = Pool().get('carrier')
|
||||
for shipment in shipments:
|
||||
shipment.cost = shipment.cost_used
|
||||
shipment.cost_currency = shipment.cost_currency_used
|
||||
if shipment.carrier:
|
||||
allocation_method = \
|
||||
shipment.carrier.carrier_cost_allocation_method
|
||||
else:
|
||||
allocation_method = \
|
||||
Carrier.default_carrier_cost_allocation_method()
|
||||
getattr(shipment, 'allocate_cost_by_%s' % allocation_method)()
|
||||
super().receive(shipments)
|
||||
|
||||
@classmethod
|
||||
@ModelView.button
|
||||
@Workflow.transition('cancelled')
|
||||
def cancel(cls, shipments):
|
||||
for shipment in shipments:
|
||||
shipment.cost = None
|
||||
shipment.cost_currency = None
|
||||
cls.save(shipments)
|
||||
super().cancel(shipments)
|
||||
|
||||
|
||||
class Move(metaclass=PoolMeta):
|
||||
__name__ = 'stock.move'
|
||||
unit_shipment_cost = fields.Numeric(
|
||||
"Unit Shipment Cost", digits=price_digits, readonly=True,
|
||||
states={
|
||||
'invisible': ~Eval('unit_shipment_cost'),
|
||||
})
|
||||
|
||||
def _compute_unit_price(self, unit_price):
|
||||
if self.unit_shipment_cost:
|
||||
unit_price -= self.unit_shipment_cost
|
||||
unit_price = super()._compute_unit_price(unit_price)
|
||||
if self.unit_shipment_cost:
|
||||
unit_price += self.unit_shipment_cost
|
||||
return unit_price
|
||||
|
||||
def _compute_component_unit_price(self, unit_price):
|
||||
if self.unit_shipment_cost:
|
||||
unit_price -= self.unit_shipment_cost
|
||||
unit_price = super()._compute_component_unit_price(unit_price)
|
||||
if self.unit_shipment_cost:
|
||||
unit_price += self.unit_shipment_cost
|
||||
return unit_price
|
||||
|
||||
# Split the shipment cost if account_stock_continental is activated
|
||||
def _get_account_stock_move_lines(self, type_):
|
||||
pool = Pool()
|
||||
AccountMoveLine = pool.get('account.move.line')
|
||||
Currency = pool.get('currency.currency')
|
||||
move_lines = super()._get_account_stock_move_lines(type_)
|
||||
if (type_.startswith('in_')
|
||||
and self.unit_shipment_cost
|
||||
and self.shipment
|
||||
and self.shipment.carrier):
|
||||
shipment_cost = Currency.compute(self.currency,
|
||||
Decimal(str(self.quantity)) * self.unit_shipment_cost,
|
||||
self.company.currency)
|
||||
shipment_cost_account = \
|
||||
self.shipment.carrier.carrier_product.account_expense_used
|
||||
account = self.product.account_stock_in_used
|
||||
for move_line in move_lines:
|
||||
if move_line.account == account:
|
||||
move_line.credit -= shipment_cost
|
||||
shipment_cost_line = AccountMoveLine(
|
||||
debit=Decimal('0'),
|
||||
credit=shipment_cost,
|
||||
account=shipment_cost_account,
|
||||
)
|
||||
move_lines.append(shipment_cost_line)
|
||||
break
|
||||
else:
|
||||
raise AssertionError('missing account_stock_supplier')
|
||||
return move_lines
|
||||
|
||||
# Remove shipment cost if account_stock_anglo_saxon is activated
|
||||
@classmethod
|
||||
def _get_anglo_saxon_move(cls, moves, quantity, type_):
|
||||
pool = Pool()
|
||||
Currency = pool.get('currency.currency')
|
||||
Uom = pool.get('product.uom')
|
||||
for move, qty, cost_price in super()._get_anglo_saxon_move(
|
||||
moves, quantity, type_):
|
||||
if (type_.startswith('in_')
|
||||
and move.unit_shipment_cost):
|
||||
shipment_cost = Uom.compute_price(
|
||||
move.unit, move.unit_shipment_cost,
|
||||
move.product.default_uom)
|
||||
shipment_cost = Currency.compute(move.currency,
|
||||
shipment_cost, move.company.currency)
|
||||
cost_price -= shipment_cost
|
||||
yield move, qty, cost_price
|
||||
19
modules/purchase_shipment_cost/stock.xml
Normal file
19
modules/purchase_shipment_cost/stock.xml
Normal 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. -->
|
||||
<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_in_view_form">
|
||||
<field name="model">stock.shipment.in</field>
|
||||
<field name="type" eval="None"/>
|
||||
<field name="inherit" ref="stock.shipment_in_view_form"/>
|
||||
<field name="name">shipment_in_form</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
2
modules/purchase_shipment_cost/tests/__init__.py
Normal file
2
modules/purchase_shipment_cost/tests/__init__.py
Normal 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.
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,135 @@
|
||||
===============================
|
||||
Purchase Shipment Cost Scenario
|
||||
===============================
|
||||
|
||||
Imports::
|
||||
|
||||
>>> from decimal import Decimal
|
||||
|
||||
>>> from proteus import Model
|
||||
>>> from trytond.modules.company.tests.tools import create_company
|
||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||
|
||||
Activate modules::
|
||||
|
||||
>>> config = activate_modules('purchase_shipment_cost', create_company)
|
||||
|
||||
Create supplier::
|
||||
|
||||
>>> Party = Model.get('party.party')
|
||||
>>> supplier = Party(name='Supplier')
|
||||
>>> supplier.save()
|
||||
|
||||
Create products::
|
||||
|
||||
>>> ProductUom = Model.get('product.uom')
|
||||
>>> ProductTemplate = Model.get('product.template')
|
||||
>>> unit, = ProductUom.find([('name', '=', 'Unit')])
|
||||
|
||||
>>> template = ProductTemplate()
|
||||
>>> template.name = 'Product'
|
||||
>>> template.default_uom = unit
|
||||
>>> template.type = 'goods'
|
||||
>>> template.list_price = Decimal('20')
|
||||
>>> product, = template.products
|
||||
>>> product.cost_price = Decimal('8')
|
||||
>>> template.save()
|
||||
>>> product, = template.products
|
||||
|
||||
>>> carrier_template = ProductTemplate()
|
||||
>>> carrier_template.name = 'Carrier Product'
|
||||
>>> carrier_template.default_uom = unit
|
||||
>>> carrier_template.type = 'service'
|
||||
>>> carrier_template.list_price = Decimal('5')
|
||||
>>> carrier_product, = carrier_template.products
|
||||
>>> carrier_product.cost_price = Decimal('3')
|
||||
>>> carrier_template.save()
|
||||
>>> carrier_product, = carrier_template.products
|
||||
|
||||
Create carrier::
|
||||
|
||||
>>> Carrier = Model.get('carrier')
|
||||
>>> carrier = Carrier()
|
||||
>>> party = Party(name='Carrier')
|
||||
>>> party.save()
|
||||
>>> carrier.party = party
|
||||
>>> carrier.carrier_product = carrier_product
|
||||
>>> carrier.save()
|
||||
|
||||
Receive a single product line::
|
||||
|
||||
>>> ShipmentIn = Model.get('stock.shipment.in')
|
||||
>>> Move = Model.get('stock.move')
|
||||
>>> Location = Model.get('stock.location')
|
||||
>>> supplier_location, = Location.find([
|
||||
... ('code', '=', 'SUP'),
|
||||
... ])
|
||||
>>> shipment = ShipmentIn()
|
||||
>>> shipment.supplier = supplier
|
||||
>>> move = Move()
|
||||
>>> shipment.incoming_moves.append(move)
|
||||
>>> move.from_location = supplier_location
|
||||
>>> move.to_location = shipment.warehouse.input_location
|
||||
>>> move.product = product
|
||||
>>> move.quantity = 50
|
||||
>>> move.unit_price = Decimal('8')
|
||||
>>> move.currency = shipment.company.currency
|
||||
>>> shipment.carrier = carrier
|
||||
>>> shipment.cost_used
|
||||
Decimal('3.0000')
|
||||
>>> assertEqual(shipment.cost_currency_used, shipment.company.currency)
|
||||
>>> shipment.click('receive')
|
||||
>>> shipment.state
|
||||
'received'
|
||||
>>> move, = shipment.incoming_moves
|
||||
>>> move.unit_price
|
||||
Decimal('8.0600')
|
||||
|
||||
Receive many product lines::
|
||||
|
||||
>>> shipment = ShipmentIn()
|
||||
>>> shipment.supplier = supplier
|
||||
>>> for quantity in (1, 3, 5):
|
||||
... move = Move()
|
||||
... shipment.incoming_moves.append(move)
|
||||
... move.from_location = supplier_location
|
||||
... move.to_location = shipment.warehouse.input_location
|
||||
... move.product = product
|
||||
... move.quantity = quantity
|
||||
... move.unit_price = Decimal('8')
|
||||
... move.currency = shipment.company.currency
|
||||
>>> shipment.carrier = carrier
|
||||
>>> shipment.cost_used
|
||||
Decimal('3.0000')
|
||||
>>> shipment.click('receive')
|
||||
>>> shipment.state
|
||||
'received'
|
||||
>>> [move.unit_price for move in shipment.incoming_moves]
|
||||
[Decimal('8.3334'), Decimal('8.3333'), Decimal('8.3333')]
|
||||
|
||||
Receive a two lines with no cost::
|
||||
|
||||
>>> 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 = 75
|
||||
>>> move.unit_price = Decimal('0.0')
|
||||
>>> move.currency = shipment.company.currency
|
||||
>>> move = shipment.incoming_moves.new()
|
||||
>>> move.from_location = supplier_location
|
||||
>>> move.to_location = shipment.warehouse.input_location
|
||||
>>> move.product = product
|
||||
>>> move.quantity = 25
|
||||
>>> move.unit_price = Decimal('0.0')
|
||||
>>> move.currency = shipment.company.currency
|
||||
>>> shipment.carrier = carrier
|
||||
>>> shipment.cost_used
|
||||
Decimal('3.0000')
|
||||
>>> shipment.click('receive')
|
||||
>>> shipment.state
|
||||
'received'
|
||||
>>> tuple(m.unit_price for m in shipment.incoming_moves)
|
||||
(Decimal('0.0200'), Decimal('0.0600'))
|
||||
@@ -0,0 +1,136 @@
|
||||
==================================================
|
||||
Purchase Shipment Cost with Invoice Stock Scenario
|
||||
==================================================
|
||||
|
||||
Imports::
|
||||
|
||||
>>> import datetime as dt
|
||||
>>> from decimal import Decimal
|
||||
|
||||
>>> from proteus import Model
|
||||
>>> from trytond.modules.account.tests.tools import (
|
||||
... create_chart, create_fiscalyear, get_accounts)
|
||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||
... set_fiscalyear_invoice_sequences)
|
||||
>>> from trytond.modules.company.tests.tools import create_company
|
||||
>>> from trytond.tests.tools import activate_modules
|
||||
|
||||
>>> today = dt.date.today()
|
||||
|
||||
Activate modules::
|
||||
|
||||
>>> config = activate_modules([
|
||||
... 'purchase_shipment_cost',
|
||||
... 'account_invoice_stock',
|
||||
... 'purchase',
|
||||
... ],
|
||||
... create_company, create_chart)
|
||||
|
||||
>>> Carrier = Model.get('carrier')
|
||||
>>> Move = Model.get('stock.move')
|
||||
>>> Party = Model.get('party.party')
|
||||
>>> ProductCategory = Model.get('product.category')
|
||||
>>> ProductTemplate = Model.get('product.template')
|
||||
>>> ProductUom = Model.get('product.uom')
|
||||
>>> Purchase = Model.get('purchase.purchase')
|
||||
>>> ShipmentIn = Model.get('stock.shipment.in')
|
||||
|
||||
Get accounts::
|
||||
|
||||
>>> accounts = get_accounts()
|
||||
|
||||
Create fiscal year::
|
||||
|
||||
>>> fiscalyear = set_fiscalyear_invoice_sequences(
|
||||
... create_fiscalyear(today=today))
|
||||
>>> fiscalyear.click('create_period')
|
||||
|
||||
Create account categories::
|
||||
|
||||
>>> account_category = ProductCategory(name="Account Category")
|
||||
>>> account_category.accounting = True
|
||||
>>> account_category.account_expense = accounts['expense']
|
||||
>>> account_category.save()
|
||||
|
||||
Create supplier::
|
||||
|
||||
>>> supplier = Party(name='Supplier')
|
||||
>>> supplier.save()
|
||||
|
||||
Create products::
|
||||
|
||||
>>> unit, = ProductUom.find([('name', '=', 'Unit')])
|
||||
|
||||
>>> template = ProductTemplate()
|
||||
>>> template.name = 'Product'
|
||||
>>> template.default_uom = unit
|
||||
>>> template.type = 'goods'
|
||||
>>> template.list_price = Decimal('20')
|
||||
>>> template.purchasable = True
|
||||
>>> template.account_category = account_category
|
||||
>>> product, = template.products
|
||||
>>> product.cost_price = Decimal('8')
|
||||
>>> template.save()
|
||||
>>> product, = template.products
|
||||
|
||||
>>> carrier_template = ProductTemplate()
|
||||
>>> carrier_template.name = 'Carrier Product'
|
||||
>>> carrier_template.default_uom = unit
|
||||
>>> carrier_template.type = 'service'
|
||||
>>> carrier_template.list_price = Decimal('5')
|
||||
>>> carrier_product, = carrier_template.products
|
||||
>>> carrier_product.cost_price = Decimal('3')
|
||||
>>> carrier_template.save()
|
||||
>>> carrier_product, = carrier_template.products
|
||||
|
||||
Create carrier::
|
||||
|
||||
>>> carrier = Carrier()
|
||||
>>> party = Party(name='Carrier')
|
||||
>>> party.save()
|
||||
>>> carrier.party = party
|
||||
>>> carrier.carrier_product = carrier_product
|
||||
>>> carrier.save()
|
||||
|
||||
Purchase a product::
|
||||
|
||||
>>> purchase = Purchase()
|
||||
>>> purchase.party = supplier
|
||||
>>> line = purchase.lines.new()
|
||||
>>> line.product = product
|
||||
>>> line.quantity = 1
|
||||
>>> line.unit_price = Decimal('10')
|
||||
>>> purchase.click('quote')
|
||||
>>> purchase.click('confirm')
|
||||
>>> purchase.state
|
||||
'processing'
|
||||
|
||||
Receive the product::
|
||||
|
||||
>>> shipment = ShipmentIn()
|
||||
>>> shipment.supplier = supplier
|
||||
>>> move, = purchase.moves
|
||||
>>> shipment.incoming_moves.append(Move(id=move.id))
|
||||
>>> shipment.carrier = carrier
|
||||
>>> shipment.cost_used
|
||||
Decimal('3.0000')
|
||||
>>> shipment.click('receive')
|
||||
>>> shipment.state
|
||||
'received'
|
||||
>>> move, = shipment.incoming_moves
|
||||
>>> move.unit_price
|
||||
Decimal('13.0000')
|
||||
|
||||
Post the invoice with a different price::
|
||||
|
||||
>>> invoice, = purchase.invoices
|
||||
>>> line, = invoice.lines
|
||||
>>> line.unit_price = Decimal('9')
|
||||
>>> invoice.invoice_date = today
|
||||
>>> invoice.click('post')
|
||||
|
||||
Check unit price of move::
|
||||
|
||||
>>> move.reload()
|
||||
>>> move.unit_price
|
||||
Decimal('12.0000')
|
||||
@@ -0,0 +1,183 @@
|
||||
==================================================
|
||||
Purchase Shipment Cost with Account Stock Scenario
|
||||
==================================================
|
||||
|
||||
Imports::
|
||||
|
||||
>>> from decimal import Decimal
|
||||
|
||||
>>> from proteus import Model
|
||||
>>> from trytond.modules.account.tests.tools import (
|
||||
... create_chart, create_fiscalyear, get_accounts)
|
||||
>>> from trytond.modules.account_stock_continental.tests.tools import (
|
||||
... add_stock_accounts)
|
||||
>>> from trytond.modules.company.tests.tools import create_company
|
||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||
|
||||
Activate modules::
|
||||
|
||||
>>> config = activate_modules([
|
||||
... 'purchase_shipment_cost',
|
||||
... 'account_stock_continental',
|
||||
... ],
|
||||
... create_company, create_chart)
|
||||
|
||||
Create fiscal year::
|
||||
|
||||
>>> fiscalyear = create_fiscalyear()
|
||||
>>> fiscalyear.account_stock_method = 'continental'
|
||||
>>> fiscalyear.click('create_period')
|
||||
|
||||
Get accounts::
|
||||
|
||||
>>> accounts = add_stock_accounts(get_accounts())
|
||||
>>> receivable = accounts['receivable']
|
||||
>>> revenue = accounts['revenue']
|
||||
>>> expense = accounts['expense']
|
||||
>>> stock = accounts['stock']
|
||||
>>> stock_in = accounts['stock_expense']
|
||||
>>> stock_out, = stock_in.duplicate()
|
||||
|
||||
>>> AccountJournal = Model.get('account.journal')
|
||||
>>> stock_journal, = AccountJournal.find([('code', '=', 'STO')])
|
||||
|
||||
Create supplier::
|
||||
|
||||
>>> Party = Model.get('party.party')
|
||||
>>> supplier = Party(name='Supplier')
|
||||
>>> supplier.save()
|
||||
|
||||
Create account category::
|
||||
|
||||
>>> ProductCategory = Model.get('product.category')
|
||||
>>> account_category = ProductCategory(name="Account Category")
|
||||
>>> account_category.accounting = True
|
||||
>>> account_category.account_expense = expense
|
||||
>>> account_category.account_revenue = revenue
|
||||
>>> account_category.account_stock = stock
|
||||
>>> account_category.account_stock_in = stock_in
|
||||
>>> account_category.account_stock_out = stock_out
|
||||
>>> account_category.save()
|
||||
|
||||
Create products::
|
||||
|
||||
>>> ProductUom = Model.get('product.uom')
|
||||
>>> ProductTemplate = Model.get('product.template')
|
||||
>>> unit, = ProductUom.find([('name', '=', 'Unit')])
|
||||
|
||||
>>> template = ProductTemplate()
|
||||
>>> template.name = 'Product'
|
||||
>>> template.default_uom = unit
|
||||
>>> template.type = 'goods'
|
||||
>>> template.list_price = Decimal('20')
|
||||
>>> template.account_category = account_category
|
||||
>>> product, = template.products
|
||||
>>> product.cost_price = Decimal('8')
|
||||
>>> template.save()
|
||||
>>> product, = template.products
|
||||
>>> template_average, = template.duplicate({
|
||||
... 'cost_price_method': 'average',
|
||||
... })
|
||||
>>> template_average.account_category = account_category
|
||||
>>> template_average.save()
|
||||
>>> product_average, = template_average.products
|
||||
|
||||
>>> carrier_template = ProductTemplate()
|
||||
>>> carrier_template.name = 'Carrier Product'
|
||||
>>> carrier_template.default_uom = unit
|
||||
>>> carrier_template.type = 'service'
|
||||
>>> carrier_template.list_price = Decimal('5')
|
||||
>>> carrier_template.account_category = account_category
|
||||
>>> carrier_product, = carrier_template.products
|
||||
>>> carrier_product.cost_price = Decimal('3')
|
||||
>>> carrier_template.save()
|
||||
>>> carrier_product, = carrier_template.products
|
||||
|
||||
Create carrier::
|
||||
|
||||
>>> Carrier = Model.get('carrier')
|
||||
>>> carrier = Carrier()
|
||||
>>> party = Party(name='Carrier')
|
||||
>>> party.save()
|
||||
>>> carrier.party = party
|
||||
>>> carrier.carrier_product = carrier_product
|
||||
>>> carrier.save()
|
||||
|
||||
Receive a single product line::
|
||||
|
||||
>>> ShipmentIn = Model.get('stock.shipment.in')
|
||||
>>> Move = Model.get('stock.move')
|
||||
>>> Location = Model.get('stock.location')
|
||||
>>> supplier_location, = Location.find([
|
||||
... ('code', '=', 'SUP'),
|
||||
... ])
|
||||
>>> shipment = ShipmentIn()
|
||||
>>> shipment.supplier = supplier
|
||||
>>> move = Move()
|
||||
>>> shipment.incoming_moves.append(move)
|
||||
>>> move.from_location = supplier_location
|
||||
>>> move.to_location = shipment.warehouse.input_location
|
||||
>>> move.product = product
|
||||
>>> move.quantity = 30
|
||||
>>> move.unit_price = Decimal('8')
|
||||
>>> move.currency = shipment.company.currency
|
||||
>>> move = Move()
|
||||
>>> shipment.incoming_moves.append(move)
|
||||
>>> move.from_location = supplier_location
|
||||
>>> move.to_location = shipment.warehouse.input_location
|
||||
>>> move.product = product_average
|
||||
>>> move.quantity = 20
|
||||
>>> move.unit_price = Decimal('8')
|
||||
>>> move.currency = shipment.company.currency
|
||||
>>> shipment.carrier = carrier
|
||||
>>> shipment.cost_used
|
||||
Decimal('3.0000')
|
||||
>>> assertEqual(shipment.cost_currency_used, shipment.company.currency)
|
||||
>>> shipment.click('receive')
|
||||
>>> shipment.state
|
||||
'received'
|
||||
>>> move, move_average = shipment.incoming_moves
|
||||
>>> move.unit_price
|
||||
Decimal('8.0600')
|
||||
>>> move_average.unit_price
|
||||
Decimal('8.0600')
|
||||
>>> stock_in.reload()
|
||||
>>> (stock_in.debit, stock_in.credit)
|
||||
(Decimal('0.00'), Decimal('398.20'))
|
||||
>>> expense.reload()
|
||||
>>> (expense.debit, expense.credit)
|
||||
(Decimal('0.00'), Decimal('3.00'))
|
||||
>>> stock.reload()
|
||||
>>> (stock.debit, stock.credit)
|
||||
(Decimal('401.20'), Decimal('0.00'))
|
||||
|
||||
Receive many product lines::
|
||||
|
||||
>>> shipment = ShipmentIn()
|
||||
>>> shipment.supplier = supplier
|
||||
>>> for quantity in (1, 3, 5):
|
||||
... move = Move()
|
||||
... shipment.incoming_moves.append(move)
|
||||
... move.from_location = supplier_location
|
||||
... move.to_location = shipment.warehouse.input_location
|
||||
... move.product = product
|
||||
... move.quantity = quantity
|
||||
... move.unit_price = Decimal('8')
|
||||
... move.currency = shipment.company.currency
|
||||
>>> shipment.carrier = carrier
|
||||
>>> shipment.cost_used
|
||||
Decimal('3.0000')
|
||||
>>> shipment.click('receive')
|
||||
>>> shipment.state
|
||||
'received'
|
||||
>>> [move.unit_price for move in shipment.incoming_moves]
|
||||
[Decimal('8.3334'), Decimal('8.3333'), Decimal('8.3333')]
|
||||
>>> stock_in.reload()
|
||||
>>> (stock_in.debit, stock_in.credit)
|
||||
(Decimal('0.00'), Decimal('467.20'))
|
||||
>>> expense.reload()
|
||||
>>> (expense.debit, expense.credit)
|
||||
(Decimal('0.00'), Decimal('6.00'))
|
||||
>>> stock.reload()
|
||||
>>> (stock.debit, stock.credit)
|
||||
(Decimal('473.20'), Decimal('0.00'))
|
||||
@@ -0,0 +1,198 @@
|
||||
==============================================================
|
||||
Purchase Shipment Cost with Account Stock Anglo-Saxon Scenario
|
||||
==============================================================
|
||||
|
||||
Imports::
|
||||
|
||||
>>> import datetime as dt
|
||||
>>> from decimal import Decimal
|
||||
|
||||
>>> from proteus import Model
|
||||
>>> from trytond.modules.account.tests.tools import (
|
||||
... create_chart, create_fiscalyear, get_accounts)
|
||||
>>> from trytond.modules.account_invoice.tests.tools import (
|
||||
... create_payment_term, set_fiscalyear_invoice_sequences)
|
||||
>>> from trytond.modules.account_stock_anglo_saxon.tests.tools import (
|
||||
... add_cogs_accounts)
|
||||
>>> from trytond.modules.account_stock_continental.tests.tools import (
|
||||
... add_stock_accounts)
|
||||
>>> from trytond.modules.company.tests.tools import create_company
|
||||
>>> from trytond.tests.tools import activate_modules, assertEqual
|
||||
|
||||
>>> today = dt.date.today()
|
||||
|
||||
Activate modules::
|
||||
|
||||
>>> config = activate_modules([
|
||||
... 'purchase_shipment_cost',
|
||||
... 'account_stock_anglo_saxon',
|
||||
... 'purchase',
|
||||
... ],
|
||||
... create_company, create_chart)
|
||||
|
||||
Create fiscal year::
|
||||
|
||||
>>> fiscalyear = set_fiscalyear_invoice_sequences(
|
||||
... create_fiscalyear(today=today))
|
||||
>>> fiscalyear.account_stock_method = 'anglo_saxon'
|
||||
>>> fiscalyear.click('create_period')
|
||||
|
||||
Get accounts::
|
||||
|
||||
>>> accounts = add_cogs_accounts(add_stock_accounts(get_accounts()))
|
||||
>>> receivable = accounts['receivable']
|
||||
>>> payable = accounts['payable']
|
||||
>>> revenue = accounts['revenue']
|
||||
>>> expense = accounts['expense']
|
||||
>>> stock = accounts['stock']
|
||||
>>> stock_in = accounts['stock_expense']
|
||||
>>> stock_out, = stock_in.duplicate()
|
||||
>>> cogs = accounts['cogs']
|
||||
|
||||
>>> AccountJournal = Model.get('account.journal')
|
||||
>>> stock_journal, = AccountJournal.find([('code', '=', 'STO')])
|
||||
|
||||
Create parties::
|
||||
|
||||
>>> Party = Model.get('party.party')
|
||||
>>> supplier = Party(name='Supplier')
|
||||
>>> supplier.save()
|
||||
|
||||
Create account category::
|
||||
|
||||
>>> ProductCategory = Model.get('product.category')
|
||||
>>> account_category = ProductCategory(name="Account Category")
|
||||
>>> account_category.accounting = True
|
||||
>>> account_category.account_expense = expense
|
||||
>>> account_category.account_revenue = revenue
|
||||
>>> account_category.account_stock = stock
|
||||
>>> account_category.account_cogs = cogs
|
||||
>>> account_category.account_stock_in = stock_in
|
||||
>>> account_category.account_stock_out = stock_out
|
||||
>>> account_category.save()
|
||||
|
||||
Create product::
|
||||
|
||||
>>> ProductUom = Model.get('product.uom')
|
||||
>>> unit, = ProductUom.find([('name', '=', 'Unit')])
|
||||
>>> ProductTemplate = Model.get('product.template')
|
||||
|
||||
>>> template = ProductTemplate()
|
||||
>>> template.name = 'product'
|
||||
>>> template.default_uom = unit
|
||||
>>> template.type = 'goods'
|
||||
>>> template.purchasable = True
|
||||
>>> template.list_price = Decimal('10')
|
||||
>>> template.cost_price_method = 'average'
|
||||
>>> template.account_category = account_category
|
||||
>>> template.save()
|
||||
>>> product, = template.products
|
||||
|
||||
>>> carrier_template = ProductTemplate()
|
||||
>>> carrier_template.name = 'Carrier Product'
|
||||
>>> carrier_template.default_uom = unit
|
||||
>>> carrier_template.type = 'service'
|
||||
>>> carrier_template.list_price = Decimal('5')
|
||||
>>> carrier_template.account_category = account_category
|
||||
>>> carrier_product, = carrier_template.products
|
||||
>>> carrier_product.cost_price = Decimal('3')
|
||||
>>> carrier_template.save()
|
||||
>>> carrier_product, = carrier_template.products
|
||||
|
||||
Create carrier::
|
||||
|
||||
>>> Carrier = Model.get('carrier')
|
||||
>>> carrier = Carrier()
|
||||
>>> party = Party(name='Carrier')
|
||||
>>> party.save()
|
||||
>>> carrier.party = party
|
||||
>>> carrier.carrier_product = carrier_product
|
||||
>>> carrier.save()
|
||||
|
||||
Create payment term::
|
||||
|
||||
>>> payment_term = create_payment_term()
|
||||
>>> payment_term.save()
|
||||
|
||||
Purchase 5 products::
|
||||
|
||||
>>> Purchase = Model.get('purchase.purchase')
|
||||
>>> PurchaseLine = Model.get('purchase.line')
|
||||
>>> purchase = Purchase()
|
||||
>>> purchase.party = supplier
|
||||
>>> purchase.payment_term = payment_term
|
||||
>>> purchase.invoice_method = 'shipment'
|
||||
>>> purchase_line = PurchaseLine()
|
||||
>>> purchase.lines.append(purchase_line)
|
||||
>>> purchase_line.product = product
|
||||
>>> purchase_line.quantity = 5.0
|
||||
>>> purchase_line.unit_price = Decimal('5.0000')
|
||||
>>> purchase.click('quote')
|
||||
>>> purchase.click('confirm')
|
||||
>>> purchase.click('process')
|
||||
>>> purchase.state
|
||||
'processing'
|
||||
|
||||
Receive 4 products::
|
||||
|
||||
>>> ShipmentIn = Model.get('stock.shipment.in')
|
||||
>>> Move = Model.get('stock.move')
|
||||
>>> shipment = ShipmentIn(supplier=supplier)
|
||||
>>> move = Move(purchase.moves[0].id)
|
||||
>>> move.quantity = 4.0
|
||||
>>> shipment.incoming_moves.append(move)
|
||||
>>> shipment.carrier = carrier
|
||||
>>> shipment.cost_used
|
||||
Decimal('3.0000')
|
||||
>>> assertEqual(shipment.cost_currency_used, shipment.company.currency)
|
||||
>>> shipment.click('receive')
|
||||
>>> shipment.state
|
||||
'received'
|
||||
>>> move, = shipment.incoming_moves
|
||||
>>> move.unit_price
|
||||
Decimal('5.7500')
|
||||
>>> shipment.click('do')
|
||||
>>> shipment.state
|
||||
'done'
|
||||
>>> stock_in.reload()
|
||||
>>> stock.reload()
|
||||
>>> stock_in.debit
|
||||
Decimal('0.00')
|
||||
>>> stock_in.credit
|
||||
Decimal('20.00')
|
||||
>>> stock.reload()
|
||||
>>> stock.debit
|
||||
Decimal('23.00')
|
||||
>>> stock.credit
|
||||
Decimal('0.00')
|
||||
>>> expense.reload()
|
||||
>>> expense.debit
|
||||
Decimal('0.00')
|
||||
>>> expense.credit
|
||||
Decimal('3.00')
|
||||
|
||||
Open supplier invoice::
|
||||
|
||||
>>> Invoice = Model.get('account.invoice')
|
||||
>>> purchase.reload()
|
||||
>>> invoice, = purchase.invoices
|
||||
>>> invoice.invoice_date = today
|
||||
>>> invoice.save()
|
||||
>>> invoice.click('post')
|
||||
>>> invoice.state
|
||||
'posted'
|
||||
>>> payable.reload()
|
||||
>>> payable.debit
|
||||
Decimal('0.00')
|
||||
>>> payable.credit
|
||||
Decimal('20.00')
|
||||
>>> expense.reload()
|
||||
>>> expense.debit
|
||||
Decimal('20.00')
|
||||
>>> expense.credit
|
||||
Decimal('23.00')
|
||||
>>> stock_in.reload()
|
||||
>>> stock_in.debit
|
||||
Decimal('20.00')
|
||||
>>> stock_in.credit
|
||||
Decimal('20.00')
|
||||
13
modules/purchase_shipment_cost/tests/test_module.py
Normal file
13
modules/purchase_shipment_cost/tests/test_module.py
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env python
|
||||
# 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 PurchaseShipmentCostTestCase(ModuleTestCase):
|
||||
'Test Purchase Shipment Cost module'
|
||||
module = 'purchase_shipment_cost'
|
||||
|
||||
|
||||
del ModuleTestCase
|
||||
8
modules/purchase_shipment_cost/tests/test_scenario.py
Normal file
8
modules/purchase_shipment_cost/tests/test_scenario.py
Normal 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)
|
||||
25
modules/purchase_shipment_cost/tryton.cfg
Normal file
25
modules/purchase_shipment_cost/tryton.cfg
Normal file
@@ -0,0 +1,25 @@
|
||||
[tryton]
|
||||
version=7.8.0
|
||||
depends:
|
||||
carrier
|
||||
currency
|
||||
ir
|
||||
product
|
||||
res
|
||||
stock
|
||||
stock_shipment_cost
|
||||
extras_depend:
|
||||
account_invoice_stock
|
||||
account_product
|
||||
account_stock_continental
|
||||
account_stock_anglo_saxon
|
||||
product_kit
|
||||
xml:
|
||||
stock.xml
|
||||
carrier.xml
|
||||
|
||||
[register]
|
||||
model:
|
||||
carrier.Carrier
|
||||
stock.ShipmentIn
|
||||
stock.Move
|
||||
11
modules/purchase_shipment_cost/view/carrier_form.xml
Normal file
11
modules/purchase_shipment_cost/view/carrier_form.xml
Normal 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="/form/field[@name='carrier_product']" position="after">
|
||||
<newline/>
|
||||
<label name="carrier_cost_allocation_method"/>
|
||||
<field name="carrier_cost_allocation_method"/>
|
||||
<newline/>
|
||||
</xpath>
|
||||
</data>
|
||||
19
modules/purchase_shipment_cost/view/shipment_in_form.xml
Normal file
19
modules/purchase_shipment_cost/view/shipment_in_form.xml
Normal 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>
|
||||
9
modules/purchase_shipment_cost/view/stock_move_form.xml
Normal file
9
modules/purchase_shipment_cost/view/stock_move_form.xml
Normal 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='shipment_out_cost_price']" position="after">
|
||||
<label name="unit_shipment_cost"/>
|
||||
<field name="unit_shipment_cost"/>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in New Issue
Block a user