removed *.pyc

This commit is contained in:
Marcos Sabater 2018-05-08 09:19:02 +02:00
parent d17fb6f5f1
commit a6afa96fcc
17 changed files with 24 additions and 13 deletions

View File

@ -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')

Binary file not shown.

View File

@ -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">

View File

@ -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']

Binary file not shown.

View File

@ -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">

View File

@ -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

Binary file not shown.

View File

@ -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">

View File

@ -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
party.pyc

Binary file not shown.

Binary file not shown.

View File

@ -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">

View File

@ -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

BIN
stock.pyc

Binary file not shown.

View File

@ -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">

View File

@ -7,6 +7,7 @@ depends:
stock
product
incoterm
stock_unit_load
xml:
stock.xml