Browse Source

[IMP] res_partner_affiliate - python formating and cleaning

pull/2/head
Yannick Vaucher 12 years ago
parent
commit
2a5b85acce
  1. 10
      res_partner_affiliate/__openerp__.py
  2. 1
      res_partner_affiliate/res_partner.py

10
res_partner_affiliate/__openerp__.py

@ -18,13 +18,13 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
# #
############################################################################## ##############################################################################
{'name' : 'Partner Affilates',
'version' : '1.0',
'author' : 'Camptocamp',
{'name': 'Partner Affilates',
'version': '1.0',
'author': 'Camptocamp',
'maintainer': 'Camptocamp', 'maintainer': 'Camptocamp',
'category': 'CRM', 'category': 'CRM',
'complexity': "normal", # easy, normal, expert
'depends' : ['base'],
'complexity': 'normal', # easy, normal, expert
'depends': ['base'],
'description': """Allows to use parent_id in company partner to refer to a parent company 'description': """Allows to use parent_id in company partner to refer to a parent company
Plus will show a tab in parent company of affiliated companies""", Plus will show a tab in parent company of affiliated companies""",
'website': 'http://www.camptocamp.com', 'website': 'http://www.camptocamp.com',

1
res_partner_affiliate/res_partner.py

@ -34,5 +34,4 @@ class ResPartner(osv.osv):
'affiliate_ids': fields.one2many( 'affiliate_ids': fields.one2many(
'res.partner', 'parent_id', 'res.partner', 'parent_id',
'Affiliates', domain=[('is_company','=', True)]), 'Affiliates', domain=[('is_company','=', True)]),
#'lot_count': fields.function(_count_related, string="Lot", type='integer', multi='count_rel'),
} }
Loading…
Cancel
Save