first commit
This commit is contained in:
2
modules/sale_shipment_grouping/__init__.py
Normal file
2
modules/sale_shipment_grouping/__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/sale_shipment_grouping/__pycache__/party.cpython-311.pyc
Normal file
BIN
modules/sale_shipment_grouping/__pycache__/party.cpython-311.pyc
Normal file
Binary file not shown.
BIN
modules/sale_shipment_grouping/__pycache__/sale.cpython-311.pyc
Normal file
BIN
modules/sale_shipment_grouping/__pycache__/sale.cpython-311.pyc
Normal file
Binary file not shown.
38
modules/sale_shipment_grouping/configuration.py
Normal file
38
modules/sale_shipment_grouping/configuration.py
Normal file
@@ -0,0 +1,38 @@
|
||||
# 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 Pool, PoolMeta
|
||||
|
||||
sale_shipment_grouping_method = fields.Selection(
|
||||
'get_sale_shipment_grouping_methods', "Sale Shipment Grouping Method",
|
||||
help="The default shipment grouping method for new customers.")
|
||||
|
||||
|
||||
@classmethod
|
||||
def get_sale_shipment_grouping_methods(cls):
|
||||
pool = Pool()
|
||||
Party = pool.get('party.party')
|
||||
field_name = 'sale_shipment_grouping_method'
|
||||
return Party.fields_get([field_name])[field_name]['selection']
|
||||
|
||||
|
||||
class Configuration(metaclass=PoolMeta):
|
||||
__name__ = 'sale.configuration'
|
||||
|
||||
sale_shipment_grouping_method = fields.MultiValue(
|
||||
sale_shipment_grouping_method)
|
||||
get_sale_shipment_grouping_methods = get_sale_shipment_grouping_methods
|
||||
|
||||
@classmethod
|
||||
def multivalue_model(cls, field):
|
||||
pool = Pool()
|
||||
if field == 'sale_shipment_grouping_method':
|
||||
return pool.get('sale.configuration.sale_method')
|
||||
return super().multivalue_model(field)
|
||||
|
||||
|
||||
class ConfigurationSaleMethod(metaclass=PoolMeta):
|
||||
__name__ = 'sale.configuration.sale_method'
|
||||
|
||||
sale_shipment_grouping_method = sale_shipment_grouping_method
|
||||
get_sale_shipment_grouping_methods = get_sale_shipment_grouping_methods
|
||||
12
modules/sale_shipment_grouping/configuration.xml
Normal file
12
modules/sale_shipment_grouping/configuration.xml
Normal 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="sale_configuration_view_form">
|
||||
<field name="model">sale.configuration</field>
|
||||
<field name="inherit" ref="sale.sale_configuration_view_form"/>
|
||||
<field name="name">configuration_form</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
55
modules/sale_shipment_grouping/locale/bg.po
Normal file
55
modules/sale_shipment_grouping/locale/bg.po
Normal file
@@ -0,0 +1,55 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr ""
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Няма"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Стандартен"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Изпращания"
|
||||
52
modules/sale_shipment_grouping/locale/ca.po
Normal file
52
modules/sale_shipment_grouping/locale/ca.po
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Mètode d'agrupació albarans de venda"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "Mètodes d'agrupació albarans de venda"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Tercer"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Mètode d'agrupació albarans de venda"
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Mètode d'agrupació albarans de venda"
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Mètode d'agrupació albarans de venda"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "El mètode d'agrupació per defecte per als nous clients."
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "El mètode d'agrupació per defecte per als nous clients."
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "Mètode d'agrupació albarans de venda"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Cap"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Estàndard"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Albarans"
|
||||
52
modules/sale_shipment_grouping/locale/cs.po
Normal file
52
modules/sale_shipment_grouping/locale/cs.po
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr ""
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr ""
|
||||
52
modules/sale_shipment_grouping/locale/de.po
Normal file
52
modules/sale_shipment_grouping/locale/de.po
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Gruppierungsmethode Lieferungen Verkauf"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "Gruppierungsmethode Lieferungen Verkauf"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Partei"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Gruppierungsmethode Lieferungen Verkauf"
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Gruppierungsmethode Lieferungen Verkauf"
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Gruppierungsmethode Lieferungen Verkauf"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "Die Standard-Gruppierungsmethode der Lieferungen für neue Kunden."
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "Die Standard-Gruppierungsmethode der Lieferungen für neue Kunden."
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "Partei Verkauf Lieferung Gruppierungsmethode"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Keine"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Standard"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Lieferungen"
|
||||
54
modules/sale_shipment_grouping/locale/es.po
Normal file
54
modules/sale_shipment_grouping/locale/es.po
Normal file
@@ -0,0 +1,54 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Método agrupación albaranes de venta"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "Método agrupación albaranes de venta"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Tercero"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Método agrupación albaranes de venta"
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Método agrupación albaranes de venta"
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Método agrupación albaranes de venta"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
"El método de agrupación de albaranes por defecto para los nuevos clientes."
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
"El método de agrupación de albaranes por defecto para los nuevos clientes."
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "Método agrupación albaranes de venta"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Ninguno"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Estándar"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Albaranes"
|
||||
53
modules/sale_shipment_grouping/locale/es_419.po
Normal file
53
modules/sale_shipment_grouping/locale/es_419.po
Normal file
@@ -0,0 +1,53 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Método de agrupación de guías de remisión de venta"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "Método de agrupación de guías de remisión de venta"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr ""
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Método de agrupación de guías de remisión de venta"
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Método de agrupación de guías de remisión de venta"
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Método de agrupación de guías de remisión de venta"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "Método de agrupación de guías de remisión de venta"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Guías de remisión"
|
||||
53
modules/sale_shipment_grouping/locale/et.po
Normal file
53
modules/sale_shipment_grouping/locale/et.po
Normal file
@@ -0,0 +1,53 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Lähetuste grupeerimise meetod"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "Lähetuse grupeerimise meetodid"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Osapool"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Lähetuse grupeerimise meetod"
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Lähetuse grupeerimise meetod"
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Lähetuse grupeerimise meetod"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "Vaikimisi lähetuse grupeerimise meetod uutele klientidele."
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "Vaikimisi lähetuse grupeerimise meetod uutele klientidele."
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "Osapoole lähetuse grupeerimise meetod"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Mitte"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Standard"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Lähetused"
|
||||
53
modules/sale_shipment_grouping/locale/fa.po
Normal file
53
modules/sale_shipment_grouping/locale/fa.po
Normal file
@@ -0,0 +1,53 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "متد گروهبندی حمل ونقل فروش"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "متدهای گروهبندی حمل ونقل فروش"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "نهاد/سازمان"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "متد گروهبندی حمل ونقل فروش"
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "متد گروهبندی حمل ونقل فروش"
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "متد گروهبندی حمل ونقل فروش"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "متد گروهبندی حمل ونقل پیش فرض برای مشتریان جدید."
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "متد گروهبندی حمل ونقل پیش فرض برای مشتریان جدید."
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "متد گروهبندی حمل ونقل فروش نهاد/سازمان"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "هیجکدام"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "استاندارد"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "محموله ها"
|
||||
52
modules/sale_shipment_grouping/locale/fi.po
Normal file
52
modules/sale_shipment_grouping/locale/fi.po
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr ""
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr ""
|
||||
56
modules/sale_shipment_grouping/locale/fr.po
Normal file
56
modules/sale_shipment_grouping/locale/fr.po
Normal file
@@ -0,0 +1,56 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Méthode de regroupement des expéditions de vente"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "Méthodes de regroupement des expéditions de vente"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Tiers"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Méthode de regroupement des expéditions de vente"
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Méthode de regroupement des expéditions de vente"
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Méthode de regroupement des expéditions de vente"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
"La méthode de regroupement d'expédition par défaut pour les nouveaux "
|
||||
"clients."
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
"La méthode de regroupement d'expédition par défaut pour les nouveaux "
|
||||
"clients."
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "Méthode de regroupement des expéditions de vente du tiers"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Aucune"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Standard"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Expéditions"
|
||||
57
modules/sale_shipment_grouping/locale/hu.po
Normal file
57
modules/sale_shipment_grouping/locale/hu.po
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Szállítmányok csoportosítása"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Ügyfél"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Szállítmányok csoportosítása"
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Szállítmányok csoportosítása"
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Szállítmányok csoportosítása"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
"Új vevők létrehozásakor ezt a szállítmány csoportosítási módot adja meg "
|
||||
"automatikusan a rendszer."
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
"Új vevők létrehozásakor ezt a szállítmány csoportosítási módot adja meg "
|
||||
"automatikusan a rendszer."
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "Szállítmányok csoportosítása"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "nincs"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "alapértelmezett"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Szállítmányok"
|
||||
52
modules/sale_shipment_grouping/locale/id.po
Normal file
52
modules/sale_shipment_grouping/locale/id.po
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Pihak"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Tidak ada"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Standar"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr ""
|
||||
57
modules/sale_shipment_grouping/locale/it.po
Normal file
57
modules/sale_shipment_grouping/locale/it.po
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "metodo di raggruppamento della spedizione"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "Metodo di raggruppamento delle spedizioni"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Controparte"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Metodo di raggruppamento delle spedizioni"
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Metodo di raggruppamento dela spedizione"
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Metodo di raggruppamento della spedizione"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
"Il metodo di raggruppamento delle spedizioni predefinito per i nuovi "
|
||||
"clienti."
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
"Il metodo di raggruppamento delle spedizioni predefinito per i nuovi "
|
||||
"clienti."
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "Metodo di raggruppamento della spedizione alle controparti"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Nessuno"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Standard"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Spedizioni"
|
||||
57
modules/sale_shipment_grouping/locale/lo.po
Normal file
57
modules/sale_shipment_grouping/locale/lo.po
Normal file
@@ -0,0 +1,57 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "ວິທີການໂຮມກຸ່ມການຂາຍ"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "ວິທີການໂຮມກຸ່ມການຂາຍ"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "ວິທີການໂຮມກຸ່ມການຂາຍ"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "ວິທີການໂຮມກຸ່ມການຂາຍ"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "ວິທີການໂຮມກຸ່ມການຂາຍ"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "ວິທີການໂຮມກຸ່ມການຂາຍ"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "ບໍ່ມີ"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "ມາດຕະຖານ"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "ການຈັດສົ່ງ"
|
||||
52
modules/sale_shipment_grouping/locale/lt.po
Normal file
52
modules/sale_shipment_grouping/locale/lt.po
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Kontrahentas"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr ""
|
||||
52
modules/sale_shipment_grouping/locale/nl.po
Normal file
52
modules/sale_shipment_grouping/locale/nl.po
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Verkoop methode groeperen zendingen"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "Verkoop methodes groeperen zendingen"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Relatie"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Verkoop methode groeperen zendingen"
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Verkoop methode groeperen zendingen"
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Verkoop methode groeperen zendingen"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "De standaard methode voor groeperen zendingen voor nieuwe klanten."
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "De standaard methode voor groeperen zendingen voor nieuwe klanten."
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "Relatie zendingen groeperen methode"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Geen"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Standaard"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Leveringen"
|
||||
52
modules/sale_shipment_grouping/locale/pl.po
Normal file
52
modules/sale_shipment_grouping/locale/pl.po
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Strona"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Brak"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Standardowa"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Wysyłki"
|
||||
53
modules/sale_shipment_grouping/locale/pt.po
Normal file
53
modules/sale_shipment_grouping/locale/pt.po
Normal file
@@ -0,0 +1,53 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Método de Agrupamento de Remessa de Venda"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "Método de Agrupamento de Remessa de Venda"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Pessoa"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Método de Agrupamento de Remessa de Venda"
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Método de Agrupamento de Remessa de Venda"
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Método de Agrupamento de Remessa de Venda"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "O método padrão de agrupamento de remessas para novos clientes."
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "O método padrão de agrupamento de remessas para novos clientes."
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "Método de Agrupamento de Remessa de Venda da Pessoa"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Nenhum"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Padrão"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Remessas"
|
||||
58
modules/sale_shipment_grouping/locale/ro.po
Normal file
58
modules/sale_shipment_grouping/locale/ro.po
Normal file
@@ -0,0 +1,58 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Metoda de grupare a livrărilor de vânzare"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "Metode de grupare a livrărilor de vânzare"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Parte"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Metoda de grupare a livrărilor de vânzare"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Metoda de grupare a livrărilor de vânzare"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Metoda de grupare a livrărilor de vânzare"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "Metoda implicită de grupare a expedierilor pentru clienții noi."
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr "Metoda implicită de grupare a expedierilor pentru clienții noi."
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "Metoda de grupare a livrărilor de vânzare"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Nici unul"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Standard"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Expedieri"
|
||||
55
modules/sale_shipment_grouping/locale/ru.po
Normal file
55
modules/sale_shipment_grouping/locale/ru.po
Normal file
@@ -0,0 +1,55 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr ""
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Отсутствует"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Стандартный"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Доставка"
|
||||
55
modules/sale_shipment_grouping/locale/sl.po
Normal file
55
modules/sale_shipment_grouping/locale/sl.po
Normal file
@@ -0,0 +1,55 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Način združevanja pošiljk"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr "Način združevanja pošiljk"
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr "Partner"
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Način združevanja pošiljk"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Način združevanja pošiljk"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr "Način združevanja pošiljk"
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr "Način združevanja pošiljk partnerja"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr "Brez"
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr "Standardno"
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr "Pošiljke"
|
||||
52
modules/sale_shipment_grouping/locale/tr.po
Normal file
52
modules/sale_shipment_grouping/locale/tr.po
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr ""
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr ""
|
||||
52
modules/sale_shipment_grouping/locale/uk.po
Normal file
52
modules/sale_shipment_grouping/locale/uk.po
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr ""
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr ""
|
||||
52
modules/sale_shipment_grouping/locale/zh_CN.po
Normal file
52
modules/sale_shipment_grouping/locale/zh_CN.po
Normal file
@@ -0,0 +1,52 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party,sale_shipment_grouping_methods:"
|
||||
msgid "Sale Shipment Grouping Methods"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:party.party.sale_shipment_grouping_method,party:"
|
||||
msgid "Party"
|
||||
msgstr ""
|
||||
|
||||
msgctxt ""
|
||||
"field:party.party.sale_shipment_grouping_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "field:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "help:sale.configuration.sale_method,sale_shipment_grouping_method:"
|
||||
msgid "The default shipment grouping method for new customers."
|
||||
msgstr ""
|
||||
|
||||
msgctxt "model:party.party.sale_shipment_grouping_method,string:"
|
||||
msgid "Party Sale Shipment Grouping Method"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "None"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "selection:party.party,sale_shipment_grouping_method:"
|
||||
msgid "Standard"
|
||||
msgstr ""
|
||||
|
||||
msgctxt "view:party.party:"
|
||||
msgid "Shipments"
|
||||
msgstr ""
|
||||
39
modules/sale_shipment_grouping/party.py
Normal file
39
modules/sale_shipment_grouping/party.py
Normal file
@@ -0,0 +1,39 @@
|
||||
# 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 ModelSQL, ValueMixin, fields
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
|
||||
|
||||
class Party(metaclass=PoolMeta):
|
||||
__name__ = 'party.party'
|
||||
|
||||
sale_shipment_grouping_method = fields.MultiValue(fields.Selection([
|
||||
(None, 'None'),
|
||||
('standard', 'Standard'),
|
||||
],
|
||||
'Sale Shipment Grouping Method'))
|
||||
sale_shipment_grouping_methods = fields.One2Many(
|
||||
'party.party.sale_shipment_grouping_method', 'party',
|
||||
"Sale Shipment Grouping Methods")
|
||||
|
||||
@classmethod
|
||||
def default_sale_shipment_grouping_method(cls, **pattern):
|
||||
pool = Pool()
|
||||
Configuration = pool.get('sale.configuration')
|
||||
return Configuration(1).get_multivalue(
|
||||
'sale_shipment_grouping_method', **pattern)
|
||||
|
||||
|
||||
class PartySaleShipmentGroupingMethod(ModelSQL, ValueMixin):
|
||||
__name__ = 'party.party.sale_shipment_grouping_method'
|
||||
party = fields.Many2One(
|
||||
'party.party', "Party", ondelete='CASCADE')
|
||||
sale_shipment_grouping_method = fields.Selection(
|
||||
'get_sale_shipment_grouping_methods', "Sale Shipment Grouping Method")
|
||||
|
||||
@classmethod
|
||||
def get_sale_shipment_grouping_methods(cls):
|
||||
pool = Pool()
|
||||
Party = pool.get('party.party')
|
||||
field_name = 'sale_shipment_grouping_method'
|
||||
return Party.fields_get([field_name])[field_name]['selection']
|
||||
12
modules/sale_shipment_grouping/party.xml
Normal file
12
modules/sale_shipment_grouping/party.xml
Normal 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="party_view_form">
|
||||
<field name="model">party.party</field>
|
||||
<field name="inherit" ref="party.party_view_form"/>
|
||||
<field name="name">party_form</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
86
modules/sale_shipment_grouping/sale.py
Normal file
86
modules/sale_shipment_grouping/sale.py
Normal file
@@ -0,0 +1,86 @@
|
||||
# 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 itertools import groupby
|
||||
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.transaction import Transaction
|
||||
|
||||
|
||||
class Sale(metaclass=PoolMeta):
|
||||
__name__ = 'sale.sale'
|
||||
|
||||
@property
|
||||
def shipment_grouping_method(self):
|
||||
return self.party.sale_shipment_grouping_method
|
||||
|
||||
@property
|
||||
def _shipment_grouping_origins(self):
|
||||
return ['sale.line']
|
||||
|
||||
@property
|
||||
def _shipment_grouping_state(self):
|
||||
return {'draft', 'waiting'}
|
||||
|
||||
def _get_shipment_grouping_fields(self, shipment):
|
||||
pool = Pool()
|
||||
ShipmentOut = pool.get('stock.shipment.out')
|
||||
fields = {'customer', 'company', 'warehouse'}
|
||||
if isinstance(shipment, ShipmentOut):
|
||||
fields.add('delivery_address')
|
||||
return fields
|
||||
|
||||
def _get_grouped_shipment_planned_date(self, shipment):
|
||||
return [('planned_date', '=', shipment.planned_date)]
|
||||
|
||||
def _get_grouped_shipment_order(self, Shipment):
|
||||
"Returns the order used to find shipments that should be grouped"
|
||||
return None
|
||||
|
||||
def _get_grouped_shipment_domain(self, shipment):
|
||||
"Returns a domain that will find shipments that should be grouped"
|
||||
Shipment = shipment.__class__
|
||||
shipment_domain = [
|
||||
['OR'] + [
|
||||
('moves.origin', 'like', f'{o},%')
|
||||
for o in self._shipment_grouping_origins],
|
||||
('state', 'in', list(self._shipment_grouping_state)),
|
||||
]
|
||||
shipment_domain += self._get_grouped_shipment_planned_date(shipment)
|
||||
fields = self._get_shipment_grouping_fields(shipment)
|
||||
defaults = Shipment.default_get(fields, with_rec_name=False)
|
||||
for field in fields:
|
||||
shipment_domain.append((field, '=',
|
||||
getattr(shipment, field, defaults.get(field))))
|
||||
return shipment_domain
|
||||
|
||||
def _get_shipment_sale(self, Shipment, values):
|
||||
transaction = Transaction()
|
||||
context = transaction.context
|
||||
shipment = super()._get_shipment_sale(Shipment, values)
|
||||
if (not context.get('skip_grouping', False)
|
||||
and self.shipment_grouping_method):
|
||||
with transaction.set_context(skip_grouping=True):
|
||||
shipment = self._get_shipment_sale(Shipment, values)
|
||||
domain = self._get_grouped_shipment_domain(shipment)
|
||||
order = self._get_grouped_shipment_order(Shipment)
|
||||
grouped_shipments = Shipment.search(domain, order=order, limit=1)
|
||||
if grouped_shipments:
|
||||
origin_planned_date = shipment.origin_planned_date
|
||||
shipment, = grouped_shipments
|
||||
if origin_planned_date:
|
||||
if not shipment.origin_planned_date:
|
||||
shipment.origin_planned_date = origin_planned_date
|
||||
elif shipment.origin_planned_date > origin_planned_date:
|
||||
shipment.origin_planned_date = origin_planned_date
|
||||
return shipment
|
||||
|
||||
@classmethod
|
||||
def _process_shipment(cls, sales):
|
||||
for method, sales in groupby(
|
||||
sales, lambda s: s.shipment_grouping_method):
|
||||
if method:
|
||||
for sale in sales:
|
||||
super()._process_shipment([sale])
|
||||
else:
|
||||
super()._process_shipment(list(sales))
|
||||
2
modules/sale_shipment_grouping/tests/__init__.py
Normal file
2
modules/sale_shipment_grouping/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,165 @@
|
||||
===============================
|
||||
Sale Shipment Grouping 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_invoice.tests.tools import (
|
||||
... create_payment_term, set_fiscalyear_invoice_sequences)
|
||||
>>> from trytond.modules.company.tests.tools import create_company
|
||||
>>> from trytond.tests.tools import activate_modules
|
||||
|
||||
Activate modules::
|
||||
|
||||
>>> config = activate_modules(
|
||||
... 'sale_shipment_grouping', create_company, create_chart)
|
||||
|
||||
Create fiscal year::
|
||||
|
||||
>>> fiscalyear = set_fiscalyear_invoice_sequences(create_fiscalyear())
|
||||
>>> fiscalyear.click('create_period')
|
||||
|
||||
Get accounts::
|
||||
|
||||
>>> accounts = get_accounts()
|
||||
>>> revenue = accounts['revenue']
|
||||
>>> expense = accounts['expense']
|
||||
|
||||
Create parties::
|
||||
|
||||
>>> Party = Model.get('party.party')
|
||||
>>> customer = Party(name='Customer')
|
||||
>>> customer.save()
|
||||
>>> customer_grouped = Party(name='Customer Grouped',
|
||||
... sale_shipment_grouping_method='standard')
|
||||
>>> customer_grouped.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.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.salable = True
|
||||
>>> template.list_price = Decimal('10')
|
||||
>>> template.account_category = account_category
|
||||
>>> template.save()
|
||||
>>> product, = template.products
|
||||
|
||||
Create payment term::
|
||||
|
||||
>>> payment_term = create_payment_term()
|
||||
>>> payment_term.save()
|
||||
|
||||
Create an inventory::
|
||||
|
||||
>>> Inventory = Model.get('stock.inventory')
|
||||
>>> InventoryLine = Model.get('stock.inventory.line')
|
||||
>>> Location = Model.get('stock.location')
|
||||
>>> storage, = Location.find([
|
||||
... ('code', '=', 'STO'),
|
||||
... ])
|
||||
>>> inventory = Inventory()
|
||||
>>> inventory.location = storage
|
||||
>>> inventory_line = inventory.lines.new()
|
||||
>>> inventory_line.product = product
|
||||
>>> inventory_line.quantity = 100.0
|
||||
>>> inventory_line.expected_quantity = 0.0
|
||||
>>> inventory.click('confirm')
|
||||
>>> inventory.state
|
||||
'done'
|
||||
|
||||
Sell some products::
|
||||
|
||||
>>> Sale = Model.get('sale.sale')
|
||||
>>> sale = Sale()
|
||||
>>> sale.party = customer
|
||||
>>> sale.payment_term = payment_term
|
||||
>>> sale.invoice_method = 'order'
|
||||
>>> sale_line = sale.lines.new()
|
||||
>>> sale_line.product = product
|
||||
>>> sale_line.quantity = 2.0
|
||||
>>> sale.click('quote')
|
||||
>>> sale.click('confirm')
|
||||
>>> sale.state
|
||||
'processing'
|
||||
|
||||
Make another sale::
|
||||
|
||||
>>> sale, = Sale.duplicate([sale])
|
||||
>>> sale.click('quote')
|
||||
>>> sale.click('confirm')
|
||||
>>> sale.state
|
||||
'processing'
|
||||
|
||||
Check the shipments::
|
||||
|
||||
>>> ShipmentOut = Model.get('stock.shipment.out')
|
||||
>>> shipments = ShipmentOut.find([('customer', '=', customer.id)])
|
||||
>>> len(shipments)
|
||||
2
|
||||
>>> for shipment in shipments:
|
||||
... shipment.click('assign_try')
|
||||
... shipment.click('pick')
|
||||
... shipment.click('pack')
|
||||
... shipment.click('do')
|
||||
|
||||
Now we'll use the same scenario with the grouped customer::
|
||||
|
||||
>>> sale = Sale()
|
||||
>>> sale.party = customer_grouped
|
||||
>>> sale.payment_term = payment_term
|
||||
>>> sale.invoice_method = 'order'
|
||||
>>> sale_line = sale.lines.new()
|
||||
>>> sale_line.product = product
|
||||
>>> sale_line.quantity = 1.0
|
||||
>>> sale.click('quote')
|
||||
>>> sale.click('confirm')
|
||||
>>> sale.state
|
||||
'processing'
|
||||
|
||||
Make another sale::
|
||||
|
||||
>>> sale = Sale()
|
||||
>>> sale.party = customer_grouped
|
||||
>>> sale.payment_term = payment_term
|
||||
>>> sale.invoice_method = 'order'
|
||||
>>> sale_line = sale.lines.new()
|
||||
>>> sale_line.product = product
|
||||
>>> sale_line.quantity = 2.0
|
||||
>>> sale.click('quote')
|
||||
>>> sale.click('confirm')
|
||||
>>> sale.state
|
||||
'processing'
|
||||
|
||||
Check the shipments::
|
||||
|
||||
>>> shipments = ShipmentOut.find([
|
||||
... ('customer', '=', customer_grouped.id),
|
||||
... ('state', '=', 'waiting'),
|
||||
... ])
|
||||
>>> len(shipments)
|
||||
1
|
||||
>>> shipment, = shipments
|
||||
>>> len(shipment.outgoing_moves)
|
||||
2
|
||||
>>> sorted([m.quantity for m in shipment.outgoing_moves])
|
||||
[1.0, 2.0]
|
||||
@@ -0,0 +1,101 @@
|
||||
========================================
|
||||
Sale Shipment Grouping Multiple 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_invoice.tests.tools import (
|
||||
... set_fiscalyear_invoice_sequences)
|
||||
>>> from trytond.modules.company.tests.tools import create_company
|
||||
>>> from trytond.tests.tools import activate_modules
|
||||
|
||||
Activate modules::
|
||||
|
||||
>>> config = activate_modules(
|
||||
... 'sale_shipment_grouping', create_company, create_chart)
|
||||
|
||||
>>> Party = Model.get('party.party')
|
||||
>>> ProductCategory = Model.get('product.category')
|
||||
>>> ProductUom = Model.get('product.uom')
|
||||
>>> ProductTemplate = Model.get('product.template')
|
||||
>>> Sale = Model.get('sale.sale')
|
||||
>>> ShipmentOut = Model.get('stock.shipment.out')
|
||||
|
||||
Create fiscal year::
|
||||
|
||||
>>> fiscalyear = set_fiscalyear_invoice_sequences(create_fiscalyear())
|
||||
>>> fiscalyear.click('create_period')
|
||||
|
||||
Get accounts::
|
||||
|
||||
>>> accounts = get_accounts()
|
||||
|
||||
Create parties::
|
||||
|
||||
>>> customer = Party(
|
||||
... name="Customer",
|
||||
... sale_shipment_grouping_method='standard')
|
||||
>>> customer.save()
|
||||
|
||||
Create account category::
|
||||
|
||||
>>> account_category = ProductCategory(name="Account Category")
|
||||
>>> account_category.accounting = True
|
||||
>>> account_category.account_revenue = accounts['revenue']
|
||||
>>> account_category.save()
|
||||
|
||||
Create product::
|
||||
|
||||
>>> unit, = ProductUom.find([('name', '=', "Unit")])
|
||||
|
||||
>>> template = ProductTemplate()
|
||||
>>> template.name = 'product'
|
||||
>>> template.default_uom = unit
|
||||
>>> template.type = 'goods'
|
||||
>>> template.salable = True
|
||||
>>> template.list_price = Decimal('10')
|
||||
>>> template.account_category = account_category
|
||||
>>> template.save()
|
||||
>>> product, = template.products
|
||||
|
||||
Sale some products::
|
||||
|
||||
>>> sale = Sale()
|
||||
>>> sale.party = customer
|
||||
>>> sale_line = sale.lines.new()
|
||||
>>> sale_line.product = product
|
||||
>>> sale_line.quantity = 2.0
|
||||
>>> sale.click('quote')
|
||||
>>> sales = [sale]
|
||||
|
||||
Make another sale::
|
||||
|
||||
>>> sale, = Sale.duplicate([sale])
|
||||
>>> sale.click('quote')
|
||||
>>> sales.append(sale)
|
||||
|
||||
Confirm both sales::
|
||||
|
||||
>>> Sale.click(sales, 'confirm')
|
||||
>>> state, = set(s.state for s in sales)
|
||||
>>> state
|
||||
'processing'
|
||||
|
||||
Check the shipments::
|
||||
|
||||
>>> shipment, = ShipmentOut.find([
|
||||
... ('state', '=', 'waiting'),
|
||||
... ])
|
||||
|
||||
Check grouping after deleting shipments::
|
||||
|
||||
>>> shipment.click('draft')
|
||||
>>> shipment.delete()
|
||||
>>> shipment, = ShipmentOut.find([
|
||||
... ('state', '=', 'waiting'),
|
||||
... ])
|
||||
@@ -0,0 +1,70 @@
|
||||
======================================
|
||||
Sale Shipment Grouping Return Scenario
|
||||
======================================
|
||||
|
||||
Imports::
|
||||
|
||||
>>> from decimal import Decimal
|
||||
|
||||
>>> from proteus import Model
|
||||
>>> from trytond.modules.account.tests.tools import create_chart, get_accounts
|
||||
>>> from trytond.modules.company.tests.tools import create_company
|
||||
>>> from trytond.tests.tools import activate_modules
|
||||
|
||||
Activate modules::
|
||||
|
||||
>>> config = activate_modules(
|
||||
... 'sale_shipment_grouping', create_company, create_chart)
|
||||
|
||||
>>> Party = Model.get('party.party')
|
||||
>>> ProductCategory = Model.get('product.category')
|
||||
>>> ProductTemplate = Model.get('product.template')
|
||||
>>> ProductUom = Model.get('product.uom')
|
||||
>>> Sale = Model.get('sale.sale')
|
||||
|
||||
Get accounts::
|
||||
|
||||
>>> accounts = get_accounts()
|
||||
|
||||
Create parties::
|
||||
|
||||
>>> customer = Party(name='Customer')
|
||||
>>> customer.sale_shipment_grouping_method = 'standard'
|
||||
>>> customer.save()
|
||||
|
||||
Create account category::
|
||||
|
||||
>>> account_category = ProductCategory(name="Account Category")
|
||||
>>> account_category.accounting = True
|
||||
>>> account_category.account_expense = accounts['expense']
|
||||
>>> account_category.account_revenue = accounts['revenue']
|
||||
>>> account_category.save()
|
||||
|
||||
Create product::
|
||||
|
||||
>>> unit, = ProductUom.find([('name', '=', "Unit")])
|
||||
|
||||
>>> template = ProductTemplate()
|
||||
>>> template.name = "Product"
|
||||
>>> template.default_uom = unit
|
||||
>>> template.type = 'goods'
|
||||
>>> template.salable = True
|
||||
>>> template.list_price = Decimal('10.0000')
|
||||
>>> template.account_category = account_category
|
||||
>>> template.save()
|
||||
>>> product, = template.products
|
||||
|
||||
Return a product::
|
||||
|
||||
>>> sale = Sale()
|
||||
>>> sale.party = customer
|
||||
>>> sale.invoice_method = 'order'
|
||||
>>> sale_line = sale.lines.new()
|
||||
>>> sale_line.product = product
|
||||
>>> sale_line.quantity = -1
|
||||
>>> sale.click('quote')
|
||||
>>> sale.click('confirm')
|
||||
>>> sale.state
|
||||
'processing'
|
||||
|
||||
>>> shipment_return, = sale.shipment_returns
|
||||
12
modules/sale_shipment_grouping/tests/test_module.py
Normal file
12
modules/sale_shipment_grouping/tests/test_module.py
Normal 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 SaleShipmentGroupingTestCase(ModuleTestCase):
|
||||
'Test Sale module'
|
||||
module = 'sale_shipment_grouping'
|
||||
|
||||
|
||||
del ModuleTestCase
|
||||
8
modules/sale_shipment_grouping/tests/test_scenario.py
Normal file
8
modules/sale_shipment_grouping/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)
|
||||
19
modules/sale_shipment_grouping/tryton.cfg
Normal file
19
modules/sale_shipment_grouping/tryton.cfg
Normal file
@@ -0,0 +1,19 @@
|
||||
[tryton]
|
||||
version=7.8.0
|
||||
depends:
|
||||
ir
|
||||
res
|
||||
party
|
||||
stock
|
||||
sale
|
||||
xml:
|
||||
party.xml
|
||||
configuration.xml
|
||||
|
||||
[register]
|
||||
model:
|
||||
party.Party
|
||||
party.PartySaleShipmentGroupingMethod
|
||||
configuration.Configuration
|
||||
configuration.ConfigurationSaleMethod
|
||||
sale.Sale
|
||||
@@ -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="/form/field[@name='sale_shipment_method']" position="after">
|
||||
<label name="sale_shipment_grouping_method"/>
|
||||
<field name="sale_shipment_grouping_method"/>
|
||||
</xpath>
|
||||
</data>
|
||||
10
modules/sale_shipment_grouping/view/party_form.xml
Normal file
10
modules/sale_shipment_grouping/view/party_form.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<?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/notebook/page[@id='sale']" position="inside">
|
||||
<separator string="Shipments" colspan="4" id="shipments"/>
|
||||
<label name="sale_shipment_grouping_method"/>
|
||||
<field name="sale_shipment_grouping_method"/>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in New Issue
Block a user