Skip to content

Commit

Permalink
[ENH] Field text limit to 500 char
Browse files Browse the repository at this point in the history
  • Loading branch information
kittiu committed Sep 14, 2018
1 parent 35de883 commit d1d796e
Show file tree
Hide file tree
Showing 146 changed files with 535 additions and 153 deletions.
5 changes: 3 additions & 2 deletions account_bank_payment/models/account_bank_payment.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@


class AccountBankPayment(models.Model):
_name = "account.bank.payment"
_description = "Account Bank Payment"
_name = 'account.bank.payment'
_description = 'Account Bank Payment'
_order = 'payment_date desc'

name = fields.Char(
Expand Down Expand Up @@ -131,6 +131,7 @@ class AccountBankPayment(models.Model):
)
note = fields.Text(
string='Notes',
size=1000,
)
validate_user_id = fields.Many2one(
'res.users',
Expand Down
1 change: 1 addition & 0 deletions account_bank_payment/models/account_voucher.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class AccountVoucher(models.Model):
string='Bank Payment',
related='bank_payment_id.name',
readonly=True,
size=500,
)

@api.model
Expand Down
2 changes: 2 additions & 0 deletions account_bank_receipt/models/account_bank_receipt.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ class AccountBankReceipt(models.Model):
)
note = fields.Text(
string='Notes',
size=1000,
)
validate_user_id = fields.Many2one(
'res.users',
Expand All @@ -147,6 +148,7 @@ class AccountBankReceipt(models.Model):
string='Filter',
readonly=True,
states={'draft': [('readonly', False)]},
size=500,
help="More filter. You can use complex search with comma and between.",
)

Expand Down
1 change: 1 addition & 0 deletions account_bank_receipt/models/account_voucher.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class AccountVoucher(models.Model):
string='Bank Receipt',
related='bank_receipt_id.name',
readonly=True,
size=500,
)

@api.multi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,6 @@ class AccountBankReceipt(models.Model):

cancel_reason_txt = fields.Char(
string="Description",
readonly=True
readonly=True,
size=500,
)
3 changes: 2 additions & 1 deletion account_bank_receipt_cancel_reason/wizard/cancel_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ class AccountBankReceiptCancel(models.TransientModel):

cancel_reason_txt = fields.Char(
string="Reason",
readonly=False
readonly=False,
size=500,
)

@api.multi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class AccuontBankReceiptMultipleReconcile(models.Model):
note = fields.Char(
string='Comment',
required=True,
size=500,
)
bank_receipt_id = fields.Many2one(
'account.bank.receipt',
Expand Down
3 changes: 2 additions & 1 deletion account_billing/models/account_billing.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,8 @@ class AccountBilling(models.Model):
string='Notes',
readonly=True,
states={'draft': [('readonly', False)]},
default=lambda self: self._context.get('narration', False))
default=lambda self: self._context.get('narration', False),
size=1000)
state = fields.Selection(
[('draft', 'Draft'),
('cancel', 'Cancelled'),
Expand Down
5 changes: 5 additions & 0 deletions account_budget_activity/models/account_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class AccountActivityGroup(models.Model):
name = fields.Char(
string='Activity Group',
required=True,
size=500,
)
code = fields.Char(
string='Code',
Expand All @@ -29,6 +30,7 @@ class AccountActivityGroup(models.Model):
)
description = fields.Char(
string='Description',
size=500,
)
parent_id = fields.Many2one(
'account.activity.group',
Expand Down Expand Up @@ -131,6 +133,7 @@ class AccountActivity(models.Model):
name = fields.Char(
string='Activity',
required=True,
size=500,
)
code = fields.Char(
string='Code',
Expand Down Expand Up @@ -168,6 +171,7 @@ class AccountActivity(models.Model):
)
search_keywords = fields.Text(
string='Search Keywords',
size=1000,
)
# _sql_constraints = [
# ('activity_uniq', 'unique(name, activity_group_id)',
Expand Down Expand Up @@ -210,6 +214,7 @@ class AccountActivityTag(models.Model):

name = fields.Char(
string='Name',
size=500,
)
_sql_constraints = [
('activity_tag_uniq', 'unique(name)',
Expand Down
3 changes: 3 additions & 0 deletions account_budget_activity/models/account_budget.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class AccountBudget(models.Model):
string='Name',
required=True,
default="/",
size=500,
states={'done': [('readonly', True)]},
)
create_date = fields.Datetime(
Expand Down Expand Up @@ -203,6 +204,7 @@ class AccountBudget(models.Model):
string='Remarks',
readonly=True,
states={'draft': [('readonly', False)]},
size=1000,
)

@api.model
Expand Down Expand Up @@ -844,6 +846,7 @@ class AccountBudgetLine(ActivityCommon, models.Model):
)
description = fields.Char(
string='Description',
size=500,
)
m1 = fields.Float(
string='Oct',
Expand Down
1 change: 1 addition & 0 deletions account_budget_activity/report/product_activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class ProductActivity(models.Model):
)
name = fields.Char(
string='Name',
size=500,
)

def _get_sql_view(self):
Expand Down
4 changes: 3 additions & 1 deletion account_invoice_cancel_reason/model/account_invoice.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ class AccountInvoice(models.Model):

cancel_reason_txt = fields.Char(
string="Description",
readonly=True)
readonly=True,
size=500,
)
4 changes: 3 additions & 1 deletion account_invoice_cancel_reason/wizard/cancel_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ class AccountInvoiceCancel(models.TransientModel):

cancel_reason_txt = fields.Char(
string="Reason",
readonly=False)
readonly=False,
size=500,
)

@api.one
def confirm_cancel(self):
Expand Down
5 changes: 4 additions & 1 deletion account_subscription_enhanced/models/account.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class AccountSubscription(models.Model):
)
rate_err_message = fields.Char(
string='Error Message',
size=500,
)
model_type_id = fields.Many2one(
'account.model.type',
Expand Down Expand Up @@ -307,7 +308,8 @@ class AccountModel(models.Model):
'Define Recurring Entries (account.subscription),\nyou can use '
'python code to get the dynamic values from the Define Recurring '
'into the model line using ${object} (account.subscription),\n'
'e.g. ${object.name} will get the name of Define Recurring\n')
'e.g. ${object.name} will get the name of Define Recurring\n'),
size=1000,
)

@api.multi
Expand Down Expand Up @@ -535,6 +537,7 @@ class AccountModelType(models.Model):
name = fields.Char(
string='Name',
required=True,
size=500,
)
active = fields.Boolean(
string='Active',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ class AccountSubscriptionGenerate(models.Model): # Change to a Model
message = fields.Text(
string='Message',
readonly=True,
size=1000,
)
model_type_ids = fields.Many2many(
'account.model.type',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,11 @@ class AccountUnreconciledFilter(models.Model):
name = fields.Char(
string='Name',
required=True,
size=500,
)
description = fields.Text(
string='Description',
size=1000,
)
account_id = fields.Many2one(
'account.account',
Expand Down
4 changes: 3 additions & 1 deletion account_voucher_cancel_reason/model/account_voucher.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ class AccountVoucher(models.Model):

cancel_reason_txt = fields.Char(
string="Description",
readonly=True)
readonly=True,
size=500,
)
4 changes: 3 additions & 1 deletion account_voucher_cancel_reason/wizard/cancel_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ class AccountVoucherCancel(models.TransientModel):

cancel_reason_txt = fields.Char(
string="Reason",
readonly=False)
readonly=False,
size=500,
)

@api.multi
def confirm_cancel(self):
Expand Down
5 changes: 5 additions & 0 deletions base_document_export/models/document_export_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ def _check_sequence(self):
field_code = fields.Text(
string='Python Code',
required=False,
size=1000,
)
length = fields.Integer(
string='Length',
Expand All @@ -48,9 +49,11 @@ def _check_sequence(self):
)
notes = fields.Char(
string='Remarks',
size=500,
)
default_value = fields.Char(
string='Default Value',
size=500,
)
model_id = fields.Many2one(
'ir.model',
Expand All @@ -66,6 +69,7 @@ class DocumentExportConfig(models.Model):
name = fields.Char(
string="Name",
required=True,
size=500,
)
date = fields.Date(
string="Date",
Expand Down Expand Up @@ -106,6 +110,7 @@ class DocumentExportConfig(models.Model):
delimiter_symbol = fields.Char(
string="Joining Delimiter",
required=False,
size=10,
)
footer_disabled = fields.Boolean(
string='Disabled',
Expand Down
1 change: 1 addition & 0 deletions base_multi_lang_report/models/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ class IRActionReportXML(models.Model):
string='Context',
copy=False,
default={},
size=500,
)


Expand Down
2 changes: 2 additions & 0 deletions document_status_history/models/document_history.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@ class DocumentAuditlogLogLine(models.Model):

status = fields.Char(
string=u'Status',
size=500,
)
status_text = fields.Char(
string=u'Status Text',
size=500,
)
user_id = fields.Many2one(
'res.users',
Expand Down
4 changes: 3 additions & 1 deletion hr_expense_cancel_reason/models/hr_expense.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,6 @@ class HRExpenseExpense(models.Model):

cancel_reason_txt = fields.Char(
string="Description",
readonly=True)
readonly=True,
size=500,
)
1 change: 1 addition & 0 deletions hr_expense_cancel_reason/wizard/cancel_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ class HRExpenseCancel(models.TransientModel):

cancel_reason_txt = fields.Char(
string="Reason",
size=500,
)

@api.one
Expand Down
1 change: 1 addition & 0 deletions hr_expense_value_date/models/hr_expense.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ class DateValueHistory(models.Model):
)
reason = fields.Char(
string="Reason",
size=500,
)

@api.depends('voucher_id', 'voucher_id.number',
Expand Down
1 change: 1 addition & 0 deletions hr_expense_value_date/wizard/change_value_date_wizard.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ class ChangeDateValue(models.TransientModel):
reason = fields.Char(
string="Reason",
required=True,
size=500,
)

@api.multi
Expand Down
4 changes: 4 additions & 0 deletions hr_salary/models/hr_salary.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class HRSalaryExpense(models.Model):
readonly=True,
copy=False,
track_visibility='onchange',
size=500,
)
name = fields.Char(
string='Description',
Expand All @@ -29,6 +30,7 @@ class HRSalaryExpense(models.Model):
readonly=True,
default=lambda self: self.env.user,
track_visibility='onchange',
size=500,
)
date = fields.Date(
string='Date',
Expand Down Expand Up @@ -103,6 +105,7 @@ class HRSalaryExpense(models.Model):
note = fields.Text(
string='Notes',
track_visibility='onchange',
size=1000,
)
currency_id = fields.Many2one(
'res.currency',
Expand Down Expand Up @@ -351,6 +354,7 @@ class HRSalaryLine(models.Model):
)
name = fields.Char(
string='Description',
size=500,
)
account_id = fields.Many2one(
'account.account',
Expand Down
4 changes: 4 additions & 0 deletions ir_test_action/wizard/ir_test_action.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,18 @@ class IrTestAction(models.TransientModel):

model = fields.Char(
string='Object',
size=500,
help="Model name on which the method to be called "
"is located, e.g. 'res.partner'.",
)
function = fields.Char(
string='Method',
size=500,
help="Name of the method to be called.",
)
args = fields.Text(
string='Arguments',
size=1000,
help="Arguments to be passed to the method, e.g. (uid,).",
)
state = fields.Selection(
Expand All @@ -35,6 +38,7 @@ class IrTestAction(models.TransientModel):
)
message = fields.Char(
string='Message',
size=500,
)

def _check_args(self, cr, uid, ids, context=None):
Expand Down
1 change: 1 addition & 0 deletions l10n_th_account/models/account_voucher.py
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,7 @@ def _compute_count_factor(self):
)
wht_cert_income_desc = fields.Char(
string='Income Description',
size=500,
)

@api.model
Expand Down
Loading

0 comments on commit d1d796e

Please sign in to comment.