removed *.pyc
This commit is contained in:
parent
d17fb6f5f1
commit
a6afa96fcc
|
@ -18,7 +18,3 @@ def register():
|
|||
Address,
|
||||
UnitLoad,
|
||||
module='edocument_edifact', type_='model')
|
||||
Pool.register(
|
||||
module='edocument_edifact', type_='wizard')
|
||||
Pool.register(
|
||||
module='edocument_edifact', type_='report')
|
||||
|
|
BIN
__init__.pyc
BIN
__init__.pyc
Binary file not shown.
|
@ -1,4 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 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="address_view_form">
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.model import ModelSQL, ModelView, fields
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.pool import Pool
|
||||
|
||||
__all__ = ['Message']
|
||||
|
||||
|
|
BIN
edocument.pyc
BIN
edocument.pyc
Binary file not shown.
|
@ -1,4 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- The COPYRIGHT file at the top level of this repository contains the full
|
||||
copyright notices and license terms. -->
|
||||
<tryton>
|
||||
<data>
|
||||
<record model="ir.sequence.type" id="sequence_type_edocument">
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# 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
|
||||
|
|
BIN
incoterm.pyc
BIN
incoterm.pyc
Binary file not shown.
|
@ -1,4 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 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="rule_view_form">
|
||||
|
|
|
@ -53,3 +53,7 @@ msgstr "Secuencia Documentación Electrónica"
|
|||
msgctxt "model:ir.sequence.type,name:sequence_type_edocument"
|
||||
msgid "Electronic Document"
|
||||
msgstr "Documentación Electrónica"
|
||||
|
||||
msgctxt "model:product.template,EDI_code:"
|
||||
msgid "EDI Code"
|
||||
msgstr "Código EDI"
|
||||
|
|
BIN
product.pyc
BIN
product.pyc
Binary file not shown.
|
@ -1,4 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 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="template_view_form">
|
||||
|
|
14
stock.py
14
stock.py
|
@ -1,6 +1,6 @@
|
|||
# The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.model import ModelSQL, ModelView, fields
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
__all__ = ['Configuration', 'UnitLoad']
|
||||
|
@ -10,8 +10,8 @@ class Configuration:
|
|||
__metaclass__ = PoolMeta
|
||||
__name__ = 'stock.configuration'
|
||||
edocument_sequence = fields.Property(
|
||||
fields.Many2One('ir.sequence', 'Electronic Document Sequence'
|
||||
, required=True))
|
||||
fields.Many2One('ir.sequence', 'Electronic Document Sequence',
|
||||
required=True))
|
||||
EDI_output_path = fields.Property(fields.Char('EDI Output Path'))
|
||||
|
||||
|
||||
|
@ -24,9 +24,9 @@ class UnitLoad:
|
|||
|
||||
def get_sscc(self):
|
||||
if self.shipment_out:
|
||||
edi_codes = [identifier.code for identifier in filter(
|
||||
lambda x: x.type == 'EDI_sender',
|
||||
self.shipment_out.company.party.identifiers)]
|
||||
edi_codes = [identifier.code for identifier in
|
||||
self.shipment_out.company.party.identifiers
|
||||
if identifier.type == 'EDI_sender']
|
||||
edi_code = edi_codes[0][:6] if edi_codes else '000000'
|
||||
code = '00' + edi_code + self.code[-9:].zfill(len(self.code[-9:])-9)
|
||||
return code + str(self._sscc_control_digit(code))
|
||||
|
@ -40,4 +40,4 @@ class UnitLoad:
|
|||
nums = (int(c) for c in num)
|
||||
multipliers = [3, 1]
|
||||
return 10 - sum((digit * multipliers[index % 2]
|
||||
for index, digit in enumerate(nums))) % 10
|
||||
for index, digit in enumerate(nums))) % 10
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!-- 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_configuration_view_form">
|
||||
|
|
|
@ -7,6 +7,7 @@ depends:
|
|||
stock
|
||||
product
|
||||
incoterm
|
||||
stock_unit_load
|
||||
|
||||
xml:
|
||||
stock.xml
|
||||
|
|
Loading…
Reference in New Issue