parent
151f4b2a85
commit
d5ae03c2af
|
@ -8,6 +8,7 @@ from . import party
|
|||
from . import configuration
|
||||
from . import stock
|
||||
from . import stock_lot
|
||||
from . import cmr
|
||||
|
||||
|
||||
def register():
|
||||
|
@ -26,6 +27,7 @@ def register():
|
|||
sale.CreateLoadLineFromSale,
|
||||
load.LoadUnitLoadFailed,
|
||||
stock.Move,
|
||||
cmr.Template,
|
||||
module='carrier_load_ul', type_='model')
|
||||
Pool.register(
|
||||
load.LoadUnitLoad,
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
# The COPYRIGHT file at the top level of this repository contains the full
|
||||
# copyright notices and license terms.
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
|
||||
class Template(metaclass=PoolMeta):
|
||||
__name__ = 'carrier.load.cmr.template'
|
||||
|
||||
@classmethod
|
||||
def _get_section_defaults(cls):
|
||||
defaults = super()._get_section_defaults()
|
||||
defaults['6-9'] = \
|
||||
"TOTAL PALLETS: ${lang.format('%d', record.loaded_uls)}"
|
||||
return defaults
|
Loading…
Reference in New Issue