Set spell attribute only on form view
issue4944 review16571002
This commit is contained in:
1 parent
316a2ce140
commit
12e11dafca
1 file changed
+4
-3
+4
-3
@@ -964,7 +964,7 @@ class Invoice(Workflow, ModelSQL, ModelView, TaxableMixin):
|
||||
|
||||
@classmethod
|
||||
def view_attributes(cls):
|
||||
return [('//field[@name="comment"]', 'spell', Eval('party_lang'))]
|
||||
return [('/form//field[@name="comment"]', 'spell', Eval('party_lang'))]
|
||||
|
||||
@classmethod
|
||||
def delete(cls, invoices):
|
||||
@@ -1823,8 +1823,9 @@ class InvoiceLine(ModelSQL, ModelView, TaxableMixin):
|
||||
|
||||
@classmethod
|
||||
def view_attributes(cls):
|
||||
return [('//field[@name="note"]|//field[@name="description"]', 'spell',
|
||||
If(Bool(Eval('_parent_invoice')),
|
||||
return [
|
||||
('/form//field[@name="note"]|/form//field[@name="description"]',
|
||||
'spell', If(Bool(Eval('_parent_invoice')),
|
||||
Eval('_parent_invoice', {}).get('party_lang'),
|
||||
Eval('party_lang')))]
|
||||
|
||||
|
||||
Reference in new issue
Block a user