Fix most flake8 errors
review8771002
This commit is contained in:
1 parent
fed77c8b9a
commit
b1d95270bc
6 files changed
+14
-14
No files matched your search
+2
-2
@@ -1,5 +1,5 @@
|
||||
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
#this repository contains the full copyright notices and license terms.
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.pool import Pool
|
||||
from .sale import *
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
#this repository contains the full copyright notices and license terms.
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.model import fields
|
||||
from trytond.transaction import Transaction
|
||||
from trytond.pyson import Eval, Bool
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/usr/bin/env python
|
||||
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
#this repository contains the full copyright notices and license terms.
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from setuptools import setup
|
||||
import re
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
#this repository contains the full copyright notices and license terms.
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
from trytond.model import fields
|
||||
from trytond.pyson import Eval, Bool
|
||||
from trytond.transaction import Transaction
|
||||
@@ -16,7 +16,7 @@ class ShipmentOut:
|
||||
},
|
||||
depends=['state'])
|
||||
cost_currency = fields.Many2One('currency.currency',
|
||||
'Cost Currency', states={
|
||||
'Cost Currency', states={
|
||||
'invisible': ~Eval('carrier'),
|
||||
'required': Bool(Eval('carrier')),
|
||||
'readonly': ~Eval('state').in_(['draft', 'waiting', 'assigned',
|
||||
@@ -26,7 +26,7 @@ class ShipmentOut:
|
||||
'Cost Currency Digits'),
|
||||
'on_change_with_cost_currency_digits')
|
||||
cost = fields.Numeric('Cost',
|
||||
digits=(16, Eval('cost_currency_digits', 2)), states={
|
||||
digits=(16, Eval('cost_currency_digits', 2)), states={
|
||||
'invisible': ~Eval('carrier'),
|
||||
'readonly': ~Eval('state').in_(['draft', 'waiting', 'assigned',
|
||||
'packed']),
|
||||
|
||||
+2
-2
@@ -1,5 +1,5 @@
|
||||
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
#this repository contains the full copyright notices and license terms.
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from .test_sale_shipment_cost import suite
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
#this repository contains the full copyright notices and license terms.
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
import unittest
|
||||
import doctest
|
||||
import trytond.tests.test_tryton
|
||||
|
||||
Reference in new issue
Block a user