first commit
This commit is contained in:
2
modules/stock_location_sequence/__init__.py
Normal file
2
modules/stock_location_sequence/__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.
7
modules/stock_location_sequence/locale/bg.po
Normal file
7
modules/stock_location_sequence/locale/bg.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Последователност"
|
||||
7
modules/stock_location_sequence/locale/ca.po
Normal file
7
modules/stock_location_sequence/locale/ca.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Seqüència"
|
||||
7
modules/stock_location_sequence/locale/cs.po
Normal file
7
modules/stock_location_sequence/locale/cs.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
7
modules/stock_location_sequence/locale/de.po
Normal file
7
modules/stock_location_sequence/locale/de.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Reihenfolge"
|
||||
7
modules/stock_location_sequence/locale/es.po
Normal file
7
modules/stock_location_sequence/locale/es.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Secuencia"
|
||||
7
modules/stock_location_sequence/locale/es_419.po
Normal file
7
modules/stock_location_sequence/locale/es_419.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
7
modules/stock_location_sequence/locale/et.po
Normal file
7
modules/stock_location_sequence/locale/et.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Järjestus"
|
||||
7
modules/stock_location_sequence/locale/fa.po
Normal file
7
modules/stock_location_sequence/locale/fa.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "ادامه"
|
||||
7
modules/stock_location_sequence/locale/fi.po
Normal file
7
modules/stock_location_sequence/locale/fi.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
7
modules/stock_location_sequence/locale/fr.po
Normal file
7
modules/stock_location_sequence/locale/fr.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Séquence"
|
||||
7
modules/stock_location_sequence/locale/hu.po
Normal file
7
modules/stock_location_sequence/locale/hu.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Sorrend"
|
||||
7
modules/stock_location_sequence/locale/id.po
Normal file
7
modules/stock_location_sequence/locale/id.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Urutan"
|
||||
7
modules/stock_location_sequence/locale/it.po
Normal file
7
modules/stock_location_sequence/locale/it.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Sequenza"
|
||||
7
modules/stock_location_sequence/locale/lo.po
Normal file
7
modules/stock_location_sequence/locale/lo.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "ລໍາດັບ"
|
||||
7
modules/stock_location_sequence/locale/lt.po
Normal file
7
modules/stock_location_sequence/locale/lt.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
7
modules/stock_location_sequence/locale/nl.po
Normal file
7
modules/stock_location_sequence/locale/nl.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Reeks"
|
||||
7
modules/stock_location_sequence/locale/pl.po
Normal file
7
modules/stock_location_sequence/locale/pl.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Kolejność"
|
||||
7
modules/stock_location_sequence/locale/pt.po
Normal file
7
modules/stock_location_sequence/locale/pt.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Sequência"
|
||||
7
modules/stock_location_sequence/locale/ro.po
Normal file
7
modules/stock_location_sequence/locale/ro.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Secvenţă"
|
||||
8
modules/stock_location_sequence/locale/ru.po
Normal file
8
modules/stock_location_sequence/locale/ru.po
Normal file
@@ -0,0 +1,8 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
#, fuzzy
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Последовательность"
|
||||
7
modules/stock_location_sequence/locale/sl.po
Normal file
7
modules/stock_location_sequence/locale/sl.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Zap. št."
|
||||
7
modules/stock_location_sequence/locale/tr.po
Normal file
7
modules/stock_location_sequence/locale/tr.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "Sıra"
|
||||
7
modules/stock_location_sequence/locale/uk.po
Normal file
7
modules/stock_location_sequence/locale/uk.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr ""
|
||||
7
modules/stock_location_sequence/locale/zh_CN.po
Normal file
7
modules/stock_location_sequence/locale/zh_CN.po
Normal file
@@ -0,0 +1,7 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
|
||||
msgctxt "field:stock.location,sequence:"
|
||||
msgid "Sequence"
|
||||
msgstr "序列"
|
||||
9
modules/stock_location_sequence/stock.py
Normal file
9
modules/stock_location_sequence/stock.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# 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 sequence_ordered
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
|
||||
class Location(sequence_ordered(), metaclass=PoolMeta):
|
||||
__name__ = 'stock.location'
|
||||
_order_name = 'sequence'
|
||||
13
modules/stock_location_sequence/stock.xml
Normal file
13
modules/stock_location_sequence/stock.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="location_view_form">
|
||||
<field name="model">stock.location</field>
|
||||
<field name="type" eval="None"/>
|
||||
<field name="inherit" ref="stock.location_view_form"/>
|
||||
<field name="name">location_form</field>
|
||||
</record>
|
||||
</data>
|
||||
</tryton>
|
||||
2
modules/stock_location_sequence/tests/__init__.py
Normal file
2
modules/stock_location_sequence/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.
12
modules/stock_location_sequence/tests/test_module.py
Normal file
12
modules/stock_location_sequence/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 StockLocationSequenceTestCase(ModuleTestCase):
|
||||
'Test StockLocationSequence module'
|
||||
module = 'stock_location_sequence'
|
||||
|
||||
|
||||
del ModuleTestCase
|
||||
11
modules/stock_location_sequence/tryton.cfg
Normal file
11
modules/stock_location_sequence/tryton.cfg
Normal file
@@ -0,0 +1,11 @@
|
||||
[tryton]
|
||||
version=7.8.1
|
||||
depends:
|
||||
ir
|
||||
stock
|
||||
xml:
|
||||
stock.xml
|
||||
|
||||
[register]
|
||||
model:
|
||||
stock.Location
|
||||
9
modules/stock_location_sequence/view/location_form.xml
Normal file
9
modules/stock_location_sequence/view/location_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="/form/field[@name='type']" position="after">
|
||||
<label name="sequence"/>
|
||||
<field name="sequence"/>
|
||||
</xpath>
|
||||
</data>
|
||||
Reference in New Issue
Block a user