Browse Source

-> PEP8 styling 2nd

pull/21/head
blaggacao 11 years ago
parent
commit
fffb17e3ed
  1. 8
      res_partner_fiscal_document/__openerp__.py
  2. 14
      res_partner_fiscal_document/res_partner.py
  3. 2
      res_partner_fiscal_document/res_partner_idtype.py

8
res_partner_fiscal_document/__openerp__.py

@ -32,9 +32,11 @@
{
'name': 'Partner Authentication with Fiscal Document',
'description': """
* Keep track of due legal identification of partners with a corresponing document.
* Keep track of due legal identification of partners with a \
corresponing document.
* Register additional document types within the GUI.
* Easy hook for custom copy and validation/formatting methods (res_partner_document.py)
* Easy hook for custom copy and validation/formatting methods \
(res_partner_document.py)
""",
'category': 'Localization',
'license': 'AGPL-3',
@ -54,4 +56,4 @@
],
'installable': True,
'auto_install': False,
}
}

14
res_partner_fiscal_document/res_partner.py

@ -20,7 +20,7 @@
#
##############################################################################
from openerp import models, fields, api, _
from openerp import models, fields, api # , _
class ResPartner(models.Model):
@ -91,6 +91,7 @@ class ResPartner(models.Model):
Find below a suggested basic outline.
"""
"""
f_type = self.fiscal_id_type
f_id = self.fiscal_id
@ -105,9 +106,10 @@ class ResPartner(models.Model):
# Note: You can change this index below.
# Example assignation using two functions
# {'output_type': func_type1(), 'output_id': funct_id1()}
'CODE1': {""" put your assignation here """},
'CODE2': {""" put your assignation here """},
'CODE1': { "put your assignation here" },
'CODE2': { "put your assignation here" },
}.get(self.fiscal_id_type.code, default())
"""
def _copyid(self):
"""
@ -120,6 +122,7 @@ class ResPartner(models.Model):
Find below a suggested basic outline.
"""
"""
f_type = self.fiscal_id_type
f_id = self.fiscal_id
@ -140,6 +143,7 @@ class ResPartner(models.Model):
# Some examples to consider...
# seld.vat_subjected: True,
# self.vat: self.country_id.code + stringop_1(f_id)
'CODE1': {""" put your statments here """},
'CODE2': {""" put your statments here """},
'CODE1': { "put your statments here" },
'CODE2': { "put your statments here" },
}.get(self.fiscal_id_type.code, default())
"""

2
res_partner_fiscal_document/res_partner_idtype.py

@ -20,7 +20,7 @@
#
##############################################################################
from openerp import models, fields, api, _
from openerp import models, fields # , api, _
class ResPartnerIDtype(models.Model):

Loading…
Cancel
Save