Make price list deactivable
issue8380 review255511002
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
* Make price list deactivable
|
||||
|
||||
Version 5.2.0 - 2019-05-06
|
||||
* Bug fixes (see mercurial logs for details)
|
||||
|
||||
|
||||
+2
-2
@@ -6,7 +6,7 @@ from simpleeval import simple_eval
|
||||
|
||||
from trytond.i18n import gettext
|
||||
from trytond.model import ModelView, ModelSQL, MatchMixin, fields, \
|
||||
sequence_ordered
|
||||
DeactivableMixin, sequence_ordered
|
||||
from trytond.tools import decistmt
|
||||
from trytond.pyson import If, Eval
|
||||
from trytond.transaction import Transaction
|
||||
@@ -17,7 +17,7 @@ from .exceptions import FormulaError
|
||||
__all__ = ['PriceList', 'PriceListLine']
|
||||
|
||||
|
||||
class PriceList(ModelSQL, ModelView):
|
||||
class PriceList(DeactivableMixin, ModelSQL, ModelView):
|
||||
'Price List'
|
||||
__name__ = 'product.price_list'
|
||||
|
||||
|
||||
@@ -4,10 +4,16 @@ this repository contains the full copyright notices and license terms. -->
|
||||
<form>
|
||||
<label name="name"/>
|
||||
<field name="name"/>
|
||||
<group col="-1" colspan="2" id="checkboxes">
|
||||
<label name="tax_included"/>
|
||||
<field name="tax_included"/>
|
||||
<label name="active"/>
|
||||
<field name="active"/>
|
||||
<!-- Add other checkboxes here -->
|
||||
</group>
|
||||
|
||||
<label name="company"/>
|
||||
<field name="company"/>
|
||||
<label name="tax_included"/>
|
||||
<field name="tax_included"/>
|
||||
<notebook colspan="4">
|
||||
<page name="lines">
|
||||
<field name="lines" colspan="4"
|
||||
|
||||
Reference in New Issue
Block a user