Allow package type to be deactivated
issue11285 review376931002
This commit is contained in:
1 parent
994cbc2080
commit
153a60e287
3 files changed
+6
-2
No files matched your search
@@ -1,3 +1,4 @@
|
||||
* Allow package type to be deactivated
|
||||
* Add volume dimensions to package
|
||||
* Filter out moves without quantity from package
|
||||
* Add support for Python 3.10
|
||||
|
||||
@@ -5,7 +5,8 @@ from sql.functions import Position, Substring
|
||||
|
||||
from trytond import backend
|
||||
from trytond.i18n import gettext
|
||||
from trytond.model import ModelSQL, ModelView, Workflow, fields, tree
|
||||
from trytond.model import (
|
||||
DeactivableMixin, ModelSQL, ModelView, Workflow, fields, tree)
|
||||
from trytond.pool import Pool, PoolMeta
|
||||
from trytond.pyson import Bool, Eval, Id, If
|
||||
from trytond.transaction import Transaction
|
||||
@@ -358,7 +359,7 @@ class Package(tree(), MeasurementsMixin, ModelSQL, ModelView):
|
||||
return super().copy(packages, default=default)
|
||||
|
||||
|
||||
class Type(MeasurementsMixin, ModelSQL, ModelView):
|
||||
class Type(MeasurementsMixin, DeactivableMixin, ModelSQL, ModelView):
|
||||
'Stock Package Type'
|
||||
__name__ = 'stock.package.type'
|
||||
name = fields.Char('Name', required=True)
|
||||
|
||||
@@ -4,6 +4,8 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<form>
|
||||
<label name="name"/>
|
||||
<field name="name"/>
|
||||
<label name="active"/>
|
||||
<field name="active"/>
|
||||
<notebook colspan="4">
|
||||
<page string="Measurements" col="3" id="measurements">
|
||||
<label name="packaging_length"/>
|
||||
|
||||
Reference in new issue
Block a user