mirror of
https://github.com/OCA/contract.git
synced 2025-02-13 17:57:24 +02:00
[FIX] reformatting
This commit is contained in:
@@ -268,8 +268,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
type="date",
|
type="date",
|
||||||
string="Invoice Date",
|
string="Invoice Date",
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['date_invoice'], 10),
|
'account.invoice': (_get_invoice, ['date_invoice'], 10),
|
||||||
},
|
},
|
||||||
readonly=True),
|
readonly=True),
|
||||||
@@ -279,8 +279,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
relation="res.users",
|
relation="res.users",
|
||||||
string="Salesman",
|
string="Salesman",
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['user_id'], 10),
|
'account.invoice': (_get_invoice, ['user_id'], 10),
|
||||||
},
|
},
|
||||||
readonly=True),
|
readonly=True),
|
||||||
@@ -290,8 +290,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
relation="res.partner",
|
relation="res.partner",
|
||||||
string="Partner",
|
string="Partner",
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['partner_id'], 10),
|
'account.invoice': (_get_invoice, ['partner_id'], 10),
|
||||||
},
|
},
|
||||||
readonly=True),
|
readonly=True),
|
||||||
@@ -300,8 +300,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
type="char",
|
type="char",
|
||||||
string="Description",
|
string="Description",
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['name'], 10),
|
'account.invoice': (_get_invoice, ['name'], 10),
|
||||||
},
|
},
|
||||||
readonly=True),
|
readonly=True),
|
||||||
@@ -310,8 +310,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
type="char",
|
type="char",
|
||||||
string="Number",
|
string="Number",
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['number'], 10),
|
'account.invoice': (_get_invoice, ['number'], 10),
|
||||||
},
|
},
|
||||||
readonly=True),
|
readonly=True),
|
||||||
@@ -321,8 +321,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
relation="account.journal",
|
relation="account.journal",
|
||||||
string="Journal",
|
string="Journal",
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['journal_id'], 10),
|
'account.invoice': (_get_invoice, ['journal_id'], 10),
|
||||||
},
|
},
|
||||||
readonly=True),
|
readonly=True),
|
||||||
@@ -332,8 +332,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
relation="account.period",
|
relation="account.period",
|
||||||
string="Period",
|
string="Period",
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['period_id'], 10),
|
'account.invoice': (_get_invoice, ['period_id'], 10),
|
||||||
},
|
},
|
||||||
readonly=True),
|
readonly=True),
|
||||||
@@ -343,8 +343,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
relation="res.company",
|
relation="res.company",
|
||||||
string="Company",
|
string="Company",
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['company_id'], 10),
|
'account.invoice': (_get_invoice, ['company_id'], 10),
|
||||||
},
|
},
|
||||||
readonly=True),
|
readonly=True),
|
||||||
@@ -354,8 +354,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
relation="res.currency",
|
relation="res.currency",
|
||||||
string="Currency",
|
string="Currency",
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['currency_id'], 10),
|
'account.invoice': (_get_invoice, ['currency_id'], 10),
|
||||||
},
|
},
|
||||||
readonly=True),
|
readonly=True),
|
||||||
@@ -364,8 +364,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
type="float",
|
type="float",
|
||||||
string="Residual",
|
string="Residual",
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['residual'], 10),
|
'account.invoice': (_get_invoice, ['residual'], 10),
|
||||||
},
|
},
|
||||||
readonly=True),
|
readonly=True),
|
||||||
@@ -374,8 +374,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
type="float",
|
type="float",
|
||||||
string="Total",
|
string="Total",
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['amount_total'], 10),
|
'account.invoice': (_get_invoice, ['amount_total'], 10),
|
||||||
},
|
},
|
||||||
readonly=True),
|
readonly=True),
|
||||||
@@ -385,8 +385,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
relation='hr.department',
|
relation='hr.department',
|
||||||
string='Department',
|
string='Department',
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['department_id'], 10),
|
'account.invoice': (_get_invoice, ['department_id'], 10),
|
||||||
},
|
},
|
||||||
readonly=True),
|
readonly=True),
|
||||||
@@ -405,8 +405,8 @@ class AccountHoursBlock(orm.Model):
|
|||||||
string='State',
|
string='State',
|
||||||
readonly=True,
|
readonly=True,
|
||||||
store={
|
store={
|
||||||
'account.hours.block': (lambda self, cr, uid, ids, c=None:
|
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
|
||||||
ids, ['invoice_id'], 10),
|
['invoice_id'], 10),
|
||||||
'account.invoice': (_get_invoice, ['state'], 10),
|
'account.invoice': (_get_invoice, ['state'], 10),
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user