Manifest: review code

This commit is contained in:
resteve 2014-05-28 17:28:12 +02:00
parent e621d43cd4
commit e21fd338b0
2 changed files with 4 additions and 4 deletions

View file

@ -13,5 +13,5 @@ def register():
ShipmentOut, ShipmentOut,
module='carrier_send_shipments_seurvalencia', type_='model') module='carrier_send_shipments_seurvalencia', type_='model')
Pool.register( Pool.register(
StockManifest, CarrierManifest,
module='carrier_send_shipments_seurvalencia', type_='wizard') module='carrier_send_shipments_seurvalencia', type_='wizard')

View file

@ -4,12 +4,12 @@
from seurvalencia import Picking from seurvalencia import Picking
from trytond.pool import PoolMeta from trytond.pool import PoolMeta
__all__ = ['StockManifest'] __all__ = ['CarrierManifest']
__metaclass__ = PoolMeta __metaclass__ = PoolMeta
class StockManifest: class CarrierManifest:
__name__ = 'stock.manifest' __name__ = 'carrier.manifest'
def get_manifest_seurvalencia(self, api, from_date, to_date): def get_manifest_seurvalencia(self, api, from_date, to_date):
with Picking(api.username, api.password, api.debug) as picking_api: with Picking(api.username, api.password, api.debug) as picking_api: