Make price list deactivable

issue8380
review255511002
This commit is contained in:
Udo Spallek
2019-06-05 09:18:09 +02:00
parent 2a6f3a092e
commit a4507e2a44
3 changed files with 12 additions and 4 deletions
+2
View File
@@ -1,3 +1,5 @@
* Make price list deactivable
Version 5.2.0 - 2019-05-06
* Bug fixes (see mercurial logs for details)
+2 -2
View File
@@ -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'
+8 -2
View File
@@ -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"