Properties account receivable/payable are required
bzr revid: ced-e46becc6c414c0cb49fafb60c0ec259b4dac8637
This commit is contained in:
parent
3bf8ca4bc4
commit
6d4e0b2497
|
@ -79,43 +79,45 @@ class res_partner(osv.osv):
|
|||
'debit_limit': fields.float('Debit Limit'),
|
||||
'credit_limit': fields.float('Credit Limit'),
|
||||
'property_account_payable': fields.property(
|
||||
'account.account',
|
||||
type='many2one',
|
||||
relation='account.account',
|
||||
string="Account Payable",
|
||||
method=True,
|
||||
view_load=True,
|
||||
group_name="Accounting Properties",
|
||||
domain="[('type', '=', 'payable')]",
|
||||
help="This account will be used, instead of the default one, as the payable account for the current partner"),
|
||||
'account.account',
|
||||
type='many2one',
|
||||
relation='account.account',
|
||||
string="Account Payable",
|
||||
method=True,
|
||||
view_load=True,
|
||||
group_name="Accounting Properties",
|
||||
domain="[('type', '=', 'payable')]",
|
||||
help="This account will be used, instead of the default one, as the payable account for the current partner",
|
||||
required=True),
|
||||
'property_account_receivable': fields.property(
|
||||
'account.account',
|
||||
type='many2one',
|
||||
relation='account.account',
|
||||
string="Account Receivable",
|
||||
method=True,
|
||||
view_load=True,
|
||||
group_name="Accounting Properties",
|
||||
domain="[('type', '=', 'receivable')]",
|
||||
help="This account will be used, instead of the default one, as the receivable account for the current partner"),
|
||||
'account.account',
|
||||
type='many2one',
|
||||
relation='account.account',
|
||||
string="Account Receivable",
|
||||
method=True,
|
||||
view_load=True,
|
||||
group_name="Accounting Properties",
|
||||
domain="[('type', '=', 'receivable')]",
|
||||
help="This account will be used, instead of the default one, as the receivable account for the current partner",
|
||||
required=True),
|
||||
'property_account_tax': fields.property(
|
||||
'account.tax',
|
||||
type='many2one',
|
||||
relation='account.tax',
|
||||
string="Default Tax",
|
||||
method=True,
|
||||
view_load=True,
|
||||
group_name="Accounting Properties",
|
||||
help="This tax will be used, instead of the default one."),
|
||||
'account.tax',
|
||||
type='many2one',
|
||||
relation='account.tax',
|
||||
string="Default Tax",
|
||||
method=True,
|
||||
view_load=True,
|
||||
group_name="Accounting Properties",
|
||||
help="This tax will be used, instead of the default one."),
|
||||
'property_payment_term': fields.property(
|
||||
'account.payment.term',
|
||||
type='many2one',
|
||||
relation='account.payment.term',
|
||||
string ='Payment Term',
|
||||
method=True,
|
||||
view_load=True,
|
||||
group_name="Accounting Properties",
|
||||
help="This payment term will be used, instead of the default one, for the current partner"),
|
||||
'account.payment.term',
|
||||
type='many2one',
|
||||
relation='account.payment.term',
|
||||
string ='Payment Term',
|
||||
method=True,
|
||||
view_load=True,
|
||||
group_name="Accounting Properties",
|
||||
help="This payment term will be used, instead of the default one, for the current partner"),
|
||||
'ref_companies': fields.one2many('res.company', 'partner_id',
|
||||
'Companies that refers to partner'),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue