removed *.pyc
This commit is contained in:
parent
d17fb6f5f1
commit
a6afa96fcc
|
@ -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')
|
|
||||||
|
|
BIN
__init__.pyc
BIN
__init__.pyc
Binary file not shown.
|
@ -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">
|
||||||
|
|
|
@ -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']
|
||||||
|
|
||||||
|
|
BIN
edocument.pyc
BIN
edocument.pyc
Binary file not shown.
|
@ -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">
|
||||||
|
|
|
@ -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
|
||||||
|
|
BIN
incoterm.pyc
BIN
incoterm.pyc
Binary file not shown.
|
@ -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">
|
||||||
|
|
|
@ -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
product.pyc
BIN
product.pyc
Binary file not shown.
|
@ -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">
|
||||||
|
|
12
stock.py
12
stock.py
|
@ -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))
|
||||||
|
|
|
@ -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">
|
||||||
|
|
|
@ -7,6 +7,7 @@ depends:
|
||||||
stock
|
stock
|
||||||
product
|
product
|
||||||
incoterm
|
incoterm
|
||||||
|
stock_unit_load
|
||||||
|
|
||||||
xml:
|
xml:
|
||||||
stock.xml
|
stock.xml
|
||||||
|
|
Loading…
Reference in New Issue