<commit_before># -*- coding: UTF-8 -*-
'''
Created on 30 jan. 2013

@author: <NAME>, Therp
@contributor: <NAME>, BCIM
'''

from openerp.osv import orm
from openerp.osv import fields


class res_partner(orm.Model):
    _inherit = 'res.partner'

    _columns = {
        'property_account_income': fields.property(
            'account.account',
            type='many2one',
            relation='account.account',
            string='Default Income Account',
            view_load=True,
            domain='''[('user_type.report_type', '=', 'income')]''',
            help='Default counterpart account for sales on invoice lines',
            required=False),
        'auto_update_account_income': fields.boolean(
            'Autosave Selection on Invoice Line',
            help='When an account is selected on an invoice line, '
                 'automatically assign it as default income account'),
        'property_account_expense': fields.property(
            'account.account',
            type='many2one',
            relation='account.account',
            string='Default Expense Account',
            view_load=True,<commit_msg>[FIX] fields.property definition have changed<commit_after># -*- coding: UTF-8 -*-
'''
Created on 30 jan. 2013

@author: <NAME>, Therp
@contributor: <NAME>, BCIM
'''

from openerp.osv import orm
from openerp.osv import fields


class res_partner(orm.Model):
    _inherit = 'res.partner'

    _columns = {
        'property_account_income': fields.property(
            obj_prop='account.account',
            type='many2one',
            relation='account.account',
            string='Default Income Account',
            view_load=True,
            domain='''[('user_type.report_type', '=', 'income')]''',
            help='Default counterpart account for sales on invoice lines',
            required=False),
        'auto_update_account_income': fields.boolean(
            'Autosave Selection on Invoice Line',
            help='When an account is selected on an invoice line, '
                 'automatically assign it as default income account'),
        'property_account_expense': fields.property(
            obj_prop='account.account',
            type='many2one',
            relation='account.account',
            string='Default Expense Account',
            view_load=True,
{'fraction_non_alphanumeric': 0.11716738197424893, 'fraction_numerical': 0.007725321888412017, 'mean_word_length': 2.4078947368421053, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '933642', 'n_tokens_mistral': 651, 'n_tokens_neox': 609, 'n_words': 161}