Replace classmethod to dualmethod in assign_try decorator

#046780
This commit is contained in:
Raimon Esteve 2021-09-02 11:44:30 +02:00
parent ec098b65d1
commit f91d94d0e1
1 changed files with 2 additions and 2 deletions

View File

@ -2,7 +2,7 @@
# copyright notices and license terms.
from trytond.pool import Pool, PoolMeta
from trytond.model import (Workflow, ModelView, fields, MultiValueMixin,
ValueMixin, ModelSQL)
ValueMixin, ModelSQL, dualmethod)
from trytond.pyson import Eval, Bool
from trytond.tools.multivalue import migrate_property
from trytond import backend
@ -267,7 +267,7 @@ class Production(metaclass=PoolMeta):
def _sync_outputs_to_shipment(cls, productions):
pass
@classmethod
@dualmethod
@ModelView.button
#@Workflow.transition('assigned')
def assign_try(cls, productions):