Add lot_number char field in reception lines

This commit is contained in:
Guillem Barba 2015-01-20 18:46:01 +01:00
parent 86358873d0
commit 4b3c71e57c
8 changed files with 24 additions and 2 deletions

View file

@ -1,2 +1,5 @@
Version 3.4.1 - 2015-01-20
* Add lot_number char field in reception lines
Version 3.4.0 - 2015-01-19
* Initial release

View file

@ -5,3 +5,7 @@ msgstr "Content-Type: text/plain; charset=utf-8\n"
msgctxt "field:stock.external.reception.line,lot:"
msgid "Lot"
msgstr "Lot"
msgctxt "field:stock.external.reception.line,lot_number:"
msgid "Lot Number"
msgstr "Número lot"

View file

@ -2,7 +2,10 @@
msgid ""
msgstr "Content-Type: text/plain; charset=utf-8\n"
#, fuzzy
msgctxt "field:stock.external.reception.line,lot:"
msgid "Lot"
msgstr "Lote"
msgctxt "field:stock.external.reception.line,lot_number:"
msgid "Lot Number"
msgstr "Número lote"

View file

@ -10,6 +10,7 @@ __metaclass__ = PoolMeta
class ExternalReceptionLine:
__name__ = 'stock.external.reception.line'
lot_number = fields.Char('Lot Number')
lot = fields.Many2One('stock.lot', 'Lot', domain=[
('product', '=', Eval('product')),
], depends=['product'])

View file

@ -1,5 +1,5 @@
[tryton]
version=3.4.0
version=3.4.1
depends:
stock_external_reception
stock_lot

View file

@ -2,6 +2,11 @@
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<data>
<xpath expr="/form/field[@name='description']" position="after">
<label name="lot_number"/>
<field name="lot_number"/>
<newline/>
</xpath>
<xpath expr="/form/field[@name='product']" position="after">
<label name="lot"/>
<field name="lot"/>

View file

@ -2,6 +2,9 @@
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='description']" position="after">
<field name="lot_number"/>
</xpath>
<xpath expr="/tree/field[@name='product']" position="after">
<field name="lot"/>
</xpath>

View file

@ -2,6 +2,9 @@
<!-- The COPYRIGHT file at the top level of this repository contains the full
copyright notices and license terms. -->
<data>
<xpath expr="/tree/field[@name='description']" position="after">
<field name="lot_number"/>
</xpath>
<xpath expr="/tree/field[@name='product']" position="after">
<field name="lot"/>
</xpath>