Browse Source

[FIX] reformatting

pull/2/head
Matthieu Dietrich 11 years ago
parent
commit
659415f8c9
  1. 52
      analytic_hours_block/hours_block.py

52
analytic_hours_block/hours_block.py

@ -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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['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:
ids, ['invoice_id'], 10),
'account.hours.block': (lambda self, cr, uid, ids, c=None: ids,
['invoice_id'], 10),
'account.invoice': (_get_invoice, ['state'], 10), 'account.invoice': (_get_invoice, ['state'], 10),
}), }),
} }

Loading…
Cancel
Save