-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] stock_picking_delivery_report_date: black, isort, prettier and …
…Migration to 14.0
- Loading branch information
1 parent
72f24ab
commit 812595f
Showing
4 changed files
with
24 additions
and
12 deletions.
There are no files selected for viewing
1 change: 1 addition & 0 deletions
1
setup/stock_picking_delivery_report_date/odoo/addons/stock_picking_delivery_report_date
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../../../../stock_picking_delivery_report_date |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 14 additions & 9 deletions
23
stock_picking_delivery_report_date/views/picking_report.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |