Browse Source

More coding convention changes

More controversial coding convention changes, thus committed apart.
pull/83/head
Florent Cayré 7 years ago
parent
commit
22f0d21cd7
  1. 6
      website_coupon/__init__.py
  2. 5
      website_coupon/__manifest__.py
  3. 2
      website_coupon/controllers/__init__.py
  4. 6
      website_coupon/controllers/main.py
  5. 5
      website_coupon/models/__init__.py
  6. 2
      website_coupon/models/gift_voucher.py

6
website_coupon/__init__.py

@ -2,7 +2,7 @@
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: LINTO C T(<https://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
@ -21,5 +21,5 @@
#
##############################################################################
import models
import controllers
import models # noqa
import controllers # noqa

5
website_coupon/__manifest__.py

@ -3,7 +3,7 @@
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: LINTO C T(<https://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
@ -24,7 +24,8 @@
{
'name': 'Website Coupon Code',
'version': '10.0.2.0.0',
'summary': 'Manage Website Coupon Codes for Products/Categories/All Products & Its Redeem Operations',
'summary': ('Manage Website Coupon Codes for '
'Products/Categories/All Products & Its Redeem Operations'),
'category': 'Website',
'author': 'Cybrosys Techno Solutions',
'company': 'Cybrosys Techno Solutions',

2
website_coupon/controllers/__init__.py

@ -1,3 +1,3 @@
# -*- coding: utf-8 -*-
import main
import main # noqa

6
website_coupon/controllers/main.py

@ -19,10 +19,10 @@ class WebsiteCoupon(http.Controller):
if order:
from_currency = order.company_id.currency_id
to_currency = order.pricelist_id.currency_id
compute_currency = lambda price: from_currency.compute(price,
to_currency)
compute_currency = lambda price: from_currency.compute( # noqa
price, to_currency)
else:
compute_currency = lambda price: price
compute_currency = lambda price: price # noqa
values = {
'website_sale_order': order,

5
website_coupon/models/__init__.py

@ -2,7 +2,7 @@
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: LINTO C T(<https://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.
@ -20,4 +20,5 @@
# If not, see <https://www.gnu.org/licenses/>.
#
##############################################################################
import gift_voucher
import gift_voucher # noqa

2
website_coupon/models/gift_voucher.py

@ -2,7 +2,7 @@
##############################################################################
#
# Cybrosys Technologies Pvt. Ltd.
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>).
# Copyright (C) 2017-TODAY Cybrosys Technologies(<https://www.cybrosys.com>)
# Author: LINTO C T(<https://www.cybrosys.com>)
# you can modify it under the terms of the GNU LESSER
# GENERAL PUBLIC LICENSE (LGPL v3), Version 3.

Loading…
Cancel
Save