Skip to content

Commit

Permalink
[IMP] stock_picking_delivery_report_date: black, isort, prettier and …
Browse files Browse the repository at this point in the history
…Migration to 14.0
  • Loading branch information
sergiocorato committed Sep 6, 2024
1 parent 72f24ab commit 812595f
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 12 deletions.
6 changes: 6 additions & 0 deletions setup/stock_picking_delivery_report_date/setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import setuptools

setuptools.setup(
setup_requires=['setuptools-odoo'],
odoo_addon=True,
)
6 changes: 3 additions & 3 deletions stock_picking_delivery_report_date/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).
{
"name": "Stock Delivery Report Default EU Date",
"summary": "Set date in EU format",
"version": "12.0.1.0.0",
"summary": "Set date in EU format for delivery to every partner",
"version": "14.0.1.0.0",
"category": "Stock",
"website": "https://github.com/sergiocorato/e-efatto",
"author": "Sergio Corato",
Expand All @@ -13,5 +13,5 @@
],
"data": [
"views/picking_report.xml",
]
],
}
23 changes: 14 additions & 9 deletions stock_picking_delivery_report_date/views/picking_report.xml
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>

<?xml version="1.0" encoding="utf-8" ?>
<odoo>
<template id="report_picking_default_date_format"
name="Stock Picking Report Default Date Format"
inherit_id="stock.report_delivery_document">
<xpath expr="//span[@t-field='o.date_done']" position="attributes">
<attribute name="t-options">{'widget': 'date', 'format': 'dd/MM/y'}</attribute>
<template
id="report_picking_default_date_format"
name="Stock Picking Report Default Date Format"
inherit_id="stock.report_delivery_document"
>
<xpath expr="//p[@t-field='o.date_done']" position="attributes">
<attribute
name="t-options"
>{'widget': 'date', 'format': 'dd/MM/y'}</attribute>
</xpath>
<xpath expr="//span[@t-field='o.scheduled_date']" position="attributes">
<attribute name="t-options">{'widget': 'date', 'format': 'dd/MM/y'}</attribute>
<xpath expr="//p[@t-field='o.scheduled_date']" position="attributes">
<attribute
name="t-options"
>{'widget': 'date', 'format': 'dd/MM/y'}</attribute>
</xpath>
</template>
</odoo>

0 comments on commit 812595f

Please sign in to comment.