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, Address,
UnitLoad, UnitLoad,
module='edocument_edifact', type_='model') 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"?> <?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> <tryton>
<data> <data>
<record model="ir.ui.view" id="address_view_form"> <record model="ir.ui.view" id="address_view_form">

View File

@ -1,7 +1,7 @@
# 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. # this repository contains the full copyright notices and license terms.
from trytond.model import ModelSQL, ModelView, fields from trytond.model import ModelSQL, ModelView, fields
from trytond.pool import Pool, PoolMeta from trytond.pool import Pool
__all__ = ['Message'] __all__ = ['Message']

Binary file not shown.

View File

@ -1,4 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?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> <tryton>
<data> <data>
<record model="ir.sequence.type" id="sequence_type_edocument"> <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. # this repository contains the full copyright notices and license terms.
from trytond.model import fields from trytond.model import fields
from trytond.pool import PoolMeta from trytond.pool import PoolMeta

Binary file not shown.

View File

@ -1,4 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?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> <tryton>
<data> <data>
<record model="ir.ui.view" id="rule_view_form"> <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" msgctxt "model:ir.sequence.type,name:sequence_type_edocument"
msgid "Electronic Document" msgid "Electronic Document"
msgstr "Documentación Electrónica" 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"?> <?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> <tryton>
<data> <data>
<record model="ir.ui.view" id="template_view_form"> <record model="ir.ui.view" id="template_view_form">

View File

@ -1,6 +1,6 @@
# 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. # 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 from trytond.pool import PoolMeta
__all__ = ['Configuration', 'UnitLoad'] __all__ = ['Configuration', 'UnitLoad']
@ -10,8 +10,8 @@ class Configuration:
__metaclass__ = PoolMeta __metaclass__ = PoolMeta
__name__ = 'stock.configuration' __name__ = 'stock.configuration'
edocument_sequence = fields.Property( edocument_sequence = fields.Property(
fields.Many2One('ir.sequence', 'Electronic Document Sequence' fields.Many2One('ir.sequence', 'Electronic Document Sequence',
, required=True)) required=True))
EDI_output_path = fields.Property(fields.Char('EDI Output Path')) EDI_output_path = fields.Property(fields.Char('EDI Output Path'))
@ -24,9 +24,9 @@ class UnitLoad:
def get_sscc(self): def get_sscc(self):
if self.shipment_out: if self.shipment_out:
edi_codes = [identifier.code for identifier in filter( edi_codes = [identifier.code for identifier in
lambda x: x.type == 'EDI_sender', self.shipment_out.company.party.identifiers
self.shipment_out.company.party.identifiers)] if identifier.type == 'EDI_sender']
edi_code = edi_codes[0][:6] if edi_codes else '000000' edi_code = edi_codes[0][:6] if edi_codes else '000000'
code = '00' + edi_code + self.code[-9:].zfill(len(self.code[-9:])-9) code = '00' + edi_code + self.code[-9:].zfill(len(self.code[-9:])-9)
return code + str(self._sscc_control_digit(code)) return code + str(self._sscc_control_digit(code))

BIN
stock.pyc

Binary file not shown.

View File

@ -1,4 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?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> <tryton>
<data> <data>
<record model="ir.ui.view" id="stock_configuration_view_form"> <record model="ir.ui.view" id="stock_configuration_view_form">

View File

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