add DeactivableMixin to order line
This commit is contained in:
parent
7499819568
commit
d649230b54
|
@ -3,7 +3,7 @@
|
||||||
from datetime import date
|
from datetime import date
|
||||||
from decimal import Decimal
|
from decimal import Decimal
|
||||||
|
|
||||||
from trytond.model import Workflow, ModelView, ModelSQL, fields
|
from trytond.model import Workflow, ModelView, ModelSQL, DeactivableMixin, fields
|
||||||
from trytond.pyson import Eval, If, In, Get, Bool, Or, Not, Equal, Id
|
from trytond.pyson import Eval, If, In, Get, Bool, Or, Not, Equal, Id
|
||||||
from trytond.transaction import Transaction
|
from trytond.transaction import Transaction
|
||||||
from trytond.pool import Pool, PoolMeta
|
from trytond.pool import Pool, PoolMeta
|
||||||
|
@ -818,7 +818,7 @@ class PrintServiceOrder(Wizard):
|
||||||
return 'end'
|
return 'end'
|
||||||
|
|
||||||
|
|
||||||
class OrderLine(Workflow, ModelSQL, ModelView):
|
class OrderLine(DeactivableMixin, Workflow, ModelSQL, ModelView):
|
||||||
'Service Order Line'
|
'Service Order Line'
|
||||||
__name__ = 'laboratory.order.line'
|
__name__ = 'laboratory.order.line'
|
||||||
_rec_name = 'code'
|
_rec_name = 'code'
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
this repository contains the full copyright notices and license terms. -->
|
this repository contains the full copyright notices and license terms. -->
|
||||||
<tryton>
|
<tryton>
|
||||||
<data>
|
<data>
|
||||||
|
|
||||||
<record model="ir.ui.view" id="order_line_view_tree">
|
<record model="ir.ui.view" id="order_line_view_tree">
|
||||||
<field name="model">laboratory.order.line</field>
|
<field name="model">laboratory.order.line</field>
|
||||||
<field name="type">tree</field>
|
<field name="type">tree</field>
|
||||||
|
@ -15,6 +14,24 @@ this repository contains the full copyright notices and license terms. -->
|
||||||
<field name="name">order_line_form</field>
|
<field name="name">order_line_form</field>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
|
<record model="ir.action.act_window" id="act_order_line_form">
|
||||||
|
<field name="name">Service Order Line</field>
|
||||||
|
<field name="res_model">laboratory.order.line</field>
|
||||||
|
<field name="search_value"></field>
|
||||||
|
</record>
|
||||||
|
<record model="ir.action.act_window.view" id="act_order_line_form_view1">
|
||||||
|
<field name="sequence" eval="1"/>
|
||||||
|
<field name="view" ref="order_line_view_tree"/>
|
||||||
|
<field name="act_window" ref="act_order_line_form"/>
|
||||||
|
</record>
|
||||||
|
<record model="ir.action.act_window.view" id="act_order_line_form_view2">
|
||||||
|
<field name="sequence" eval="2"/>
|
||||||
|
<field name="view" ref="order_line_view_form"/>
|
||||||
|
<field name="act_window" ref="act_order_line_form"/>
|
||||||
|
</record>
|
||||||
|
<menuitem parent="menu_laboratory" sequence="25"
|
||||||
|
action="act_order_line_form" id="menu_order_line_form"/>
|
||||||
|
|
||||||
<record model="ir.ui.view" id="order_view_form">
|
<record model="ir.ui.view" id="order_view_form">
|
||||||
<field name="model">laboratory.order</field>
|
<field name="model">laboratory.order</field>
|
||||||
<field name="type">form</field>
|
<field name="type">form</field>
|
||||||
|
|
|
@ -16,5 +16,6 @@ this repository contains the full copyright notices and license terms. -->
|
||||||
<field name="authorization"/>
|
<field name="authorization"/>
|
||||||
<label name="analysis_date"/>
|
<label name="analysis_date"/>
|
||||||
<field name="analysis_date"/>
|
<field name="analysis_date"/>
|
||||||
|
<label name="active"/>
|
||||||
|
<field name="active"/>
|
||||||
</form>
|
</form>
|
||||||
|
|
Loading…
Reference in New Issue