mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-26 08:32:02 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
10
odoo-bringout-oca-ocb-website_sale/website_sale/utils.py
Normal file
10
odoo-bringout-oca-ocb-website_sale/website_sale/utils.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from pytz import UTC
|
||||
|
||||
|
||||
def gmc_format_price(price, currency):
|
||||
return f'{currency.round(price)} {currency.name}'
|
||||
|
||||
def gmc_format_date(dt):
|
||||
return UTC.localize(dt).isoformat(timespec='minutes')
|
||||
Loading…
Add table
Add a link
Reference in a new issue