Added section '6 to 9' in CMR templates.

This commit refs #22469
This commit is contained in:
Sergio Morillo 2022-04-11 18:08:48 +02:00
parent 151f4b2a85
commit d5ae03c2af
2 changed files with 16 additions and 0 deletions

View File

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

14
cmr.py Normal file
View File

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