Add time to report

This commit is contained in:
Oscar 2021-12-13 14:26:45 -05:00
parent 82a7fcb634
commit d83862eadb
2 changed files with 22 additions and 14 deletions

View file

@ -35,7 +35,7 @@ class Purchase(metaclass=PoolMeta):
if party.supplier_payment_term:
self.payment_term = party.supplier_payment_term.id
def delivery_time_fmt(self, name=None):
def get_delivery_time_fmt(self, name=None):
if self.delivery_time:
return str(self.delivery_time)

View file

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<office:document xmlns:presentation="urn:oasis:names:tc:opendocument:xmlns:presentation:1.0" xmlns:css3t="http://www.w3.org/TR/css3-text/" xmlns:grddl="http://www.w3.org/2003/g/data-view#" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:formx="urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0" xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0" xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:oooc="http://openoffice.org/2004/calc" xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0" xmlns:ooow="http://openoffice.org/2004/writer" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rpt="http://openoffice.org/2005/report" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0" xmlns:ooo="http://openoffice.org/2004/office" xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0" xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0" xmlns:of="urn:oasis:names:tc:opendocument:xmlns:of:1.2" xmlns:calcext="urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0" xmlns:tableooo="http://openoffice.org/2009/table" xmlns:drawooo="http://openoffice.org/2010/draw" xmlns:loext="urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0" xmlns:dom="http://www.w3.org/2001/xml-events" xmlns:field="urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0" xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0" xmlns:xforms="http://www.w3.org/2002/xforms" office:version="1.3" office:mimetype="application/vnd.oasis.opendocument.spreadsheet">
<office:meta><meta:initial-creator>oscar </meta:initial-creator><meta:creation-date>2013-11-08T11:35:24.373297060</meta:creation-date><dc:date>2021-12-13T13:28:03.297779921</dc:date><meta:editing-duration>PT16H58M5S</meta:editing-duration><meta:editing-cycles>212</meta:editing-cycles><meta:generator>LibreOffice/7.2.4.1$Linux_X86_64 LibreOffice_project/27d75539669ac387bb498e35313b970b7fe9c4f9</meta:generator><meta:document-statistic meta:table-count="1" meta:cell-count="36" meta:object-count="0"/></office:meta>
<office:meta><meta:initial-creator>oscar </meta:initial-creator><meta:creation-date>2013-11-08T11:35:24.373297060</meta:creation-date><dc:date>2021-12-13T14:26:33.879538523</dc:date><meta:editing-duration>PT17H43S</meta:editing-duration><meta:editing-cycles>220</meta:editing-cycles><meta:generator>LibreOffice/7.2.4.1$Linux_X86_64 LibreOffice_project/27d75539669ac387bb498e35313b970b7fe9c4f9</meta:generator><meta:document-statistic meta:table-count="1" meta:cell-count="36" meta:object-count="0"/></office:meta>
<office:settings>
<config:config-item-set config:name="ooo:view-settings">
<config:config-item config:name="VisibleAreaTop" config:type="int">0</config:config-item>
@ -13,8 +13,8 @@
<config:config-item config:name="ViewId" config:type="string">view1</config:config-item>
<config:config-item-map-named config:name="Tables">
<config:config-item-map-entry config:name="INFORME">
<config:config-item config:name="CursorPositionX" config:type="int">5</config:config-item>
<config:config-item config:name="CursorPositionY" config:type="int">5</config:config-item>
<config:config-item config:name="CursorPositionX" config:type="int">6</config:config-item>
<config:config-item config:name="CursorPositionY" config:type="int">4</config:config-item>
<config:config-item config:name="HorizontalSplitMode" config:type="short">0</config:config-item>
<config:config-item config:name="VerticalSplitMode" config:type="short">0</config:config-item>
<config:config-item config:name="HorizontalSplitPosition" config:type="int">0</config:config-item>
@ -88,7 +88,7 @@
<config:config-item config:name="LoadReadonly" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrinterName" config:type="string">HP_LaserJet_P3010_Series_AB09B3_</config:config-item>
<config:config-item config:name="PrinterPaperFromSetup" config:type="boolean">false</config:config-item>
<config:config-item config:name="PrinterSetup" config:type="base64Binary">tQH+/0hQX0xhc2VySmV0X1AzMDEwX1Nlcmllc19BQjA5QjNfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ1VQUzpIUF9MYXNlckpldF9QMzAxMF9TZXJpZXNfQQAWAAMA1gAAAAAAAAAIAFZUAAAkbQAASm9iRGF0YSAxCnByaW50ZXI9SFBfTGFzZXJKZXRfUDMwMTBfU2VyaWVzX0FCMDlCM18Kb3JpZW50YXRpb249UG9ydHJhaXQKY29waWVzPTEKY29sbGF0ZT1mYWxzZQptYXJnaW5hZGp1c3RtZW50PTAsMCwwLDAKY29sb3JkZXB0aD0yNApwc2xldmVsPTAKcGRmZGV2aWNlPTEKY29sb3JkZXZpY2U9MApQUERDb250ZXh0RGF0YQpQYWdlU2l6ZTpMZXR0ZXIARHVwbGV4Ok5vbmUAABIAQ09NUEFUX0RVUExFWF9NT0RFDwBEdXBsZXhNb2RlOjpPZmY=</config:config-item>
<config:config-item config:name="PrinterSetup" config:type="base64Binary">tQH+/0hQX0xhc2VySmV0X1AzMDEwX1Nlcmllc19BQjA5QjNfAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQ1VQUzpIUF9MYXNlckpldF9QMzAxMF9TZXJpZXNfQQAWAAMA1gAAAAAAAAAIAFZUAAAkbQAASm9iRGF0YSAxCnByaW50ZXI9SFBfTGFzZXJKZXRfUDMwMTBfU2VyaWVzX0FCMDlCM18Kb3JpZW50YXRpb249UG9ydHJhaXQKY29waWVzPTEKY29sbGF0ZT1mYWxzZQptYXJnaW5hZGp1c3RtZW50PTAsMCwwLDAKY29sb3JkZXB0aD0yNApwc2xldmVsPTAKcGRmZGV2aWNlPTEKY29sb3JkZXZpY2U9MApQUERDb250ZXh0RGF0YQpEdXBsZXg6Tm9uZQBQYWdlU2l6ZTpMZXR0ZXIAABIAQ09NUEFUX0RVUExFWF9NT0RFDwBEdXBsZXhNb2RlOjpPZmY=</config:config-item>
<config:config-item config:name="RasterIsVisible" config:type="boolean">false</config:config-item>
<config:config-item config:name="RasterResolutionX" config:type="int">1000</config:config-item>
<config:config-item config:name="RasterResolutionY" config:type="int">1000</config:config-item>
@ -765,6 +765,9 @@
<number:text>. </number:text>
<number:year number:style="long"/>
</number:date-style>
<number:text-style style:name="N100">
<number:text-content/>
</number:text-style>
<style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default">
<style:table-cell-properties style:text-align-source="fix" style:repeat-content="false" style:vertical-align="middle"/>
<style:paragraph-properties fo:text-align="end" fo:margin-left="0in"/>
@ -820,6 +823,11 @@
<style:paragraph-properties fo:text-align="center" fo:margin-left="0in"/>
<style:text-properties style:font-name="Liberation Sans Narrow" fo:font-size="6pt" style:font-size-asian="6pt" style:font-size-complex="6pt"/>
</style:style>
<style:style style:name="ce30" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N100">
<style:table-cell-properties style:text-align-source="fix" style:repeat-content="false" fo:border="0.06pt dotted #999999" style:vertical-align="middle"/>
<style:paragraph-properties fo:text-align="start" fo:margin-left="0in"/>
<style:text-properties style:font-name="Liberation Sans Narrow" fo:font-size="6pt" style:font-size-asian="6pt" style:font-size-complex="6pt"/>
</style:style>
<style:style style:name="ce24" style:family="table-cell" style:parent-style-name="Default">
<style:table-cell-properties fo:background-color="#e8f2a1" style:text-align-source="fix" style:repeat-content="false" fo:wrap-option="wrap" fo:border="0.06pt dotted #999999" style:vertical-align="middle"/>
<style:paragraph-properties fo:text-align="center" fo:margin-left="0in"/>
@ -840,7 +848,7 @@
<style:paragraph-properties fo:text-align="end" fo:margin-left="0in"/>
<style:text-properties fo:color="#000000" style:font-name="Liberation Sans Narrow" fo:font-size="6pt" style:font-size-asian="6pt" style:font-size-complex="6pt"/>
</style:style>
<style:style style:name="ce35" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N80">
<style:style style:name="ce42" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N100">
<style:table-cell-properties style:text-align-source="fix" style:repeat-content="false" fo:border="0.06pt dotted #999999" style:vertical-align="middle"/>
<style:paragraph-properties fo:text-align="center" fo:margin-left="0in"/>
<style:text-properties fo:color="#000000" style:font-name="Liberation Sans Narrow" fo:font-size="6pt" style:font-size-asian="6pt" style:font-size-complex="6pt"/>
@ -860,7 +868,7 @@
<style:paragraph-properties fo:text-align="center" fo:margin-left="0in"/>
<style:text-properties style:font-name="Liberation Sans Narrow"/>
</style:style>
<style:style style:name="ce39" style:family="table-cell" style:parent-style-name="Default">
<style:style style:name="ce46" style:family="table-cell" style:parent-style-name="Default">
<style:table-cell-properties fo:background-color="#ffffa6" style:text-align-source="fix" style:repeat-content="false" fo:wrap-option="wrap" fo:border="0.06pt dotted #999999" style:vertical-align="middle"/>
<style:paragraph-properties fo:text-align="center" fo:margin-left="0in"/>
<style:text-properties fo:color="#333333" style:font-name="Liberation Sans Narrow" fo:font-size="6pt" style:text-underline-style="none" style:font-size-asian="6pt" style:font-size-complex="6pt"/>
@ -925,7 +933,7 @@
<text:p><text:sheet-name>???</text:sheet-name><text:s/>(<text:title>???</text:title>)</text:p>
</style:region-left>
<style:region-right>
<text:p><text:date style:data-style-name="N2" text:date-value="2021-12-13">00/00/0000</text:date>, <text:time style:data-style-name="N2" text:time-value="13:21:02.801640737">00:00:00</text:time></text:p>
<text:p><text:date style:data-style-name="N2" text:date-value="2021-12-13">00/00/0000</text:date>, <text:time style:data-style-name="N2" text:time-value="14:26:29.963461308">00:00:00</text:time></text:p>
</style:region-right>
</style:header>
<style:header-left style:display="false"/>
@ -1002,7 +1010,7 @@
</table:table-cell>
<table:covered-table-cell table:style-name="ce33"/>
<table:table-cell table:style-name="ce16" table:number-columns-repeated="7"/>
<table:table-cell table:style-name="ce39" office:value-type="string" calcext:value-type="string" table:number-columns-spanned="2" table:number-rows-spanned="1">
<table:table-cell table:style-name="ce46" office:value-type="string" calcext:value-type="string" table:number-columns-spanned="2" table:number-rows-spanned="1">
<text:p>RECEPCION</text:p>
</table:table-cell>
<table:covered-table-cell table:style-name="ce40"/>
@ -1050,10 +1058,10 @@
<table:table-cell table:style-name="ce25" office:value-type="string" calcext:value-type="string">
<text:p>NOTAS</text:p>
</table:table-cell>
<table:table-cell table:style-name="ce39" office:value-type="string" calcext:value-type="string">
<table:table-cell table:style-name="ce46" office:value-type="string" calcext:value-type="string">
<text:p>FECHA</text:p>
</table:table-cell>
<table:table-cell table:style-name="ce39" office:value-type="string" calcext:value-type="string">
<table:table-cell table:style-name="ce46" office:value-type="string" calcext:value-type="string">
<text:p>HORA</text:p>
</table:table-cell>
<table:table-cell table:style-name="ce19" table:number-columns-repeated="43"/>
@ -1084,13 +1092,13 @@
</table:table-cell>
<table:table-cell table:style-name="ce8" office:value-type="string" calcext:value-type="string"><text:p><text:a xlink:href="relatorio://purchase.party.code" xlink:type="simple">purchase.party.code</text:a></text:p>
</table:table-cell>
<table:table-cell table:style-name="ce7" office:value-type="string" calcext:value-type="string"><text:p><text:a xlink:href="relatorio://purchase.ica_certicate.farm" xlink:type="simple">purchase.ica_certicate.farm</text:a></text:p>
<table:table-cell table:style-name="ce30" office:value-type="string" calcext:value-type="string"><text:p><text:a xlink:href="relatorio://purchase.ica_certicate.farm" xlink:type="simple">purchase.ica_certicate.farm</text:a></text:p>
</table:table-cell>
<table:table-cell table:style-name="ce28" office:value-type="string" calcext:value-type="string"><text:p><text:a xlink:href="relatorio://purchase.delivery_date" xlink:type="simple">purchase.delivery_date</text:a></text:p>
</table:table-cell>
<table:table-cell table:style-name="ce35" office:value-type="string" calcext:value-type="string"><text:p><text:a xlink:href="relatorio://purchase.delivery_time" xlink:type="simple">purchase.delivery_time</text:a></text:p>
<table:table-cell table:style-name="ce42" office:value-type="string" calcext:value-type="string"><text:p><text:a xlink:href="relatorio://purchase.delivery_time_fmt" xlink:type="simple">purchase.delivery_time_fmt</text:a></text:p>
</table:table-cell>
<table:table-cell table:style-name="ce7" office:value-type="string" calcext:value-type="string"><text:p><text:a xlink:href="relatorio://line.description" xlink:type="simple">line.description</text:a></text:p>
<table:table-cell table:style-name="ce30" office:value-type="string" calcext:value-type="string"><text:p><text:a xlink:href="relatorio://line.description" xlink:type="simple">line.description</text:a></text:p>
</table:table-cell>
<table:table-cell table:style-name="ce8" office:value-type="string" calcext:value-type="string"><text:p><text:a xlink:href="relatorio://line.unit.symbol" xlink:type="simple">line.unit.symbol</text:a></text:p>
</table:table-cell>