Add white icon
This commit is contained in:
parent
5a3be7c04a
commit
017525b98c
|
@ -638,6 +638,7 @@ class Entry(Workflow, ModelSQL, ModelView):
|
|||
def get_icon(self, name):
|
||||
if not self.confirmed:
|
||||
return 'lims-red'
|
||||
return 'lims-white'
|
||||
|
||||
|
||||
class EntryInvoiceContact(ModelSQL, ModelView):
|
||||
|
|
|
@ -0,0 +1,69 @@
|
|||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<!-- Created with Inkscape (http://www.inkscape.org/) -->
|
||||
|
||||
<svg
|
||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
||||
xmlns:cc="http://creativecommons.org/ns#"
|
||||
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
|
||||
xmlns:svg="http://www.w3.org/2000/svg"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
|
||||
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
|
||||
width="256px"
|
||||
height="256px"
|
||||
viewBox="0 0 256 256"
|
||||
version="1.1"
|
||||
id="SVGRoot"
|
||||
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
|
||||
sodipodi:docname="white.svg">
|
||||
<sodipodi:namedview
|
||||
id="base"
|
||||
pagecolor="#ffffff"
|
||||
bordercolor="#666666"
|
||||
borderopacity="1.0"
|
||||
inkscape:pageopacity="0.0"
|
||||
inkscape:pageshadow="2"
|
||||
inkscape:zoom="1"
|
||||
inkscape:cx="128"
|
||||
inkscape:cy="128"
|
||||
inkscape:document-units="px"
|
||||
inkscape:current-layer="layer1"
|
||||
showgrid="false"
|
||||
inkscape:window-width="1366"
|
||||
inkscape:window-height="691"
|
||||
inkscape:window-x="0"
|
||||
inkscape:window-y="28"
|
||||
inkscape:window-maximized="1"
|
||||
inkscape:grid-bbox="true" />
|
||||
<defs
|
||||
id="defs3699" />
|
||||
<metadata
|
||||
id="metadata3702">
|
||||
<rdf:RDF>
|
||||
<cc:Work
|
||||
rdf:about="">
|
||||
<dc:format>image/svg+xml</dc:format>
|
||||
<dc:type
|
||||
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
|
||||
<dc:title></dc:title>
|
||||
</cc:Work>
|
||||
</rdf:RDF>
|
||||
</metadata>
|
||||
<g
|
||||
id="layer1"
|
||||
inkscape:groupmode="layer"
|
||||
inkscape:label="Capa 1">
|
||||
<rect
|
||||
style="fill:#0000ff"
|
||||
id="rect3715"
|
||||
width="287"
|
||||
height="276"
|
||||
x="-4"
|
||||
y="-2" />
|
||||
<path
|
||||
style="fill:#ffffff"
|
||||
d="M -3.4,135.7 V -1.8 h 143 143 v 137.5 137.5 h -143 -143 z"
|
||||
id="path3711"
|
||||
inkscape:connector-curvature="0" />
|
||||
</g>
|
||||
</svg>
|
After Width: | Height: | Size: 1.9 KiB |
|
@ -26,6 +26,10 @@
|
|||
<field name="name">lims-green</field>
|
||||
<field name="path">icons/green.svg</field>
|
||||
</record>
|
||||
<record model="ir.ui.icon" id="white_icon">
|
||||
<field name="name">lims-white</field>
|
||||
<field name="path">icons/white.svg</field>
|
||||
</record>
|
||||
|
||||
<menuitem name="Laboratory"
|
||||
id="lims_laboratory" icon="lims-laboratory"/>
|
||||
|
|
|
@ -227,6 +227,7 @@ class Notebook(ModelSQL, ModelView):
|
|||
def get_icon(self, name):
|
||||
if self.fraction_comments:
|
||||
return 'lims-blue'
|
||||
return 'lims-white'
|
||||
|
||||
|
||||
class NotebookLine(ModelSQL, ModelView):
|
||||
|
@ -885,6 +886,7 @@ class NotebookLine(ModelSQL, ModelView):
|
|||
def get_icon(self, name):
|
||||
if self.report_date:
|
||||
return 'lims-red'
|
||||
return 'lims-white'
|
||||
|
||||
def get_planning_comments(self, name=None):
|
||||
if self.planification:
|
||||
|
|
|
@ -705,6 +705,7 @@ class PlanificationDetail(ModelSQL, ModelView):
|
|||
def get_icon(self, name):
|
||||
if self.comments:
|
||||
return 'lims-blue'
|
||||
return 'lims-white'
|
||||
|
||||
|
||||
class PlanificationServiceDetail(ModelSQL, ModelView):
|
||||
|
|
|
@ -824,6 +824,7 @@ class ResultsReportVersionDetail(ModelSQL, ModelView):
|
|||
def get_icon(self, name):
|
||||
if self.fraction_comments:
|
||||
return 'lims-blue'
|
||||
return 'lims-white'
|
||||
|
||||
|
||||
class ResultsReportVersionDetailLine(ModelSQL, ModelView):
|
||||
|
|
|
@ -1124,6 +1124,7 @@ class Service(ModelSQL, ModelView):
|
|||
return 'lims-green'
|
||||
if not self.confirmed:
|
||||
return 'lims-red'
|
||||
return 'lims-white'
|
||||
|
||||
def get_planned(self, name):
|
||||
if not self.analysis_detail:
|
||||
|
@ -2150,6 +2151,7 @@ class Fraction(ModelSQL, ModelView):
|
|||
return 'lims-green'
|
||||
if not self.confirmed:
|
||||
return 'lims-red'
|
||||
return 'lims-white'
|
||||
|
||||
def update_detail_analysis(self):
|
||||
EntryDetailAnalysis = Pool().get('lims.entry.detail.analysis')
|
||||
|
@ -2668,6 +2670,7 @@ class Sample(ModelSQL, ModelView):
|
|||
return 'lims-green'
|
||||
if not self.confirmed:
|
||||
return 'lims-red'
|
||||
return 'lims-white'
|
||||
|
||||
@classmethod
|
||||
def order_create_date2(cls, tables):
|
||||
|
|
Loading…
Reference in New Issue