diff --git a/res_partner_fiscal_document/__openerp__.py b/res_partner_fiscal_document/__openerp__.py index 66211af00..00df7d732 100644 --- a/res_partner_fiscal_document/__openerp__.py +++ b/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, -} \ No newline at end of file +} diff --git a/res_partner_fiscal_document/res_partner.py b/res_partner_fiscal_document/res_partner.py index 73a487b93..e23e34329 100644 --- a/res_partner_fiscal_document/res_partner.py +++ b/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()) + """ diff --git a/res_partner_fiscal_document/res_partner_idtype.py b/res_partner_fiscal_document/res_partner_idtype.py index 18cb79a89..5e69602a8 100644 --- a/res_partner_fiscal_document/res_partner_idtype.py +++ b/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):