[FIX] 3 security rules, [IMP] object names for logs
bzr revid: fp@tinyerp.com-20100519183232-9zieyfnah526r312
This commit is contained in:
parent
f6188dbf2e
commit
a3dd9f05dc
|
@ -763,7 +763,7 @@ account_period()
|
|||
|
||||
class account_journal_period(osv.osv):
|
||||
_name = "account.journal.period"
|
||||
_description = "Journal - Period"
|
||||
_description = "Journal Period"
|
||||
|
||||
def _icon_get(self, cr, uid, ids, field_name, arg=None, context={}):
|
||||
result = {}.fromkeys(ids, 'STOCK_NEW')
|
||||
|
|
|
@ -30,7 +30,7 @@ from tools import config
|
|||
|
||||
class account_analytic_line(osv.osv):
|
||||
_inherit = 'account.analytic.line'
|
||||
_description = 'Analytic lines'
|
||||
_description = 'Analytic Line'
|
||||
_columns = {
|
||||
'product_uom_id' : fields.many2one('product.uom', 'UoM'),
|
||||
'product_id' : fields.many2one('product.product', 'Product'),
|
||||
|
@ -118,7 +118,7 @@ account_analytic_line()
|
|||
|
||||
class timesheet_invoice(osv.osv):
|
||||
_name = "report.hr.timesheet.invoice.journal"
|
||||
_description = "Analytic account costs and revenues"
|
||||
_description = "Analytic Account Costs and Revenues"
|
||||
_auto = False
|
||||
_columns = {
|
||||
'name': fields.char('Year',size=64,required=False, readonly=True),
|
||||
|
|
|
@ -387,7 +387,7 @@ account_bank_statement()
|
|||
|
||||
class account_bank_statement_reconcile(osv.osv):
|
||||
_name = "account.bank.statement.reconcile"
|
||||
_description = "Statement reconcile"
|
||||
_description = "Statement Reconcile"
|
||||
|
||||
def _total_entry(self, cursor, user, ids, name, attr, context=None):
|
||||
result = {}
|
||||
|
|
|
@ -30,7 +30,7 @@ import tools
|
|||
|
||||
class account_move_line(osv.osv):
|
||||
_name = "account.move.line"
|
||||
_description = "Entry lines"
|
||||
_description = "Entry Lines"
|
||||
|
||||
def _query_get(self, cr, uid, obj='l', context={}):
|
||||
fiscalyear_obj = self.pool.get('account.fiscalyear')
|
||||
|
|
|
@ -1169,7 +1169,7 @@ class account_invoice_line(osv.osv):
|
|||
return 0
|
||||
|
||||
_name = "account.invoice.line"
|
||||
_description = "Invoice line"
|
||||
_description = "Invoice Line"
|
||||
_columns = {
|
||||
'name': fields.char('Description', size=256, required=True),
|
||||
'origin': fields.char('Origin', size=256, help="Reference of the document that produced this invoice."),
|
||||
|
|
|
@ -393,7 +393,7 @@ account_analytic_account()
|
|||
|
||||
class account_analytic_account_summary_user(osv.osv):
|
||||
_name = "account_analytic_analysis.summary.user"
|
||||
_description = "Hours summary by user"
|
||||
_description = "Hours Summary by User"
|
||||
_order='user'
|
||||
_auto = False
|
||||
_rec_name = 'user'
|
||||
|
|
|
@ -25,7 +25,7 @@ import time
|
|||
|
||||
class account_analytic_default(osv.osv):
|
||||
_name = 'account.analytic.default'
|
||||
_description = 'Analytic Distributions'
|
||||
_description = 'Analytic Distribution'
|
||||
_rec_name = 'analytic_id'
|
||||
_order = 'sequence'
|
||||
_columns = {
|
||||
|
@ -69,7 +69,7 @@ account_analytic_default()
|
|||
|
||||
class account_invoice_line(osv.osv):
|
||||
_inherit = 'account.invoice.line'
|
||||
_description = 'account invoice line'
|
||||
_description = 'Invoice Line'
|
||||
|
||||
def product_id_change(self, cr, uid, ids, product, uom, qty=0, name='', type='out_invoice', partner_id=False, fposition=False, price_unit=False, address_invoice_id=False, currency_id=False, context={}):
|
||||
res_prod = super(account_invoice_line,self).product_id_change(cr, uid, ids, product, uom, qty, name, type, partner_id, fposition, price_unit, address_invoice_id, currency_id=currency_id, context=context)
|
||||
|
|
|
@ -54,7 +54,7 @@ class one2many_mod2(fields.one2many):
|
|||
|
||||
class account_analytic_plan(osv.osv):
|
||||
_name = "account.analytic.plan"
|
||||
_description = "Analytic Plans"
|
||||
_description = "Analytic Plan"
|
||||
_columns = {
|
||||
'name': fields.char('Analytic Plan', size=64, required=True, select=True,),
|
||||
'plan_ids': fields.one2many('account.analytic.plan.line','plan_id','Analytic Plans'),
|
||||
|
@ -63,7 +63,7 @@ account_analytic_plan()
|
|||
|
||||
class account_analytic_plan_line(osv.osv):
|
||||
_name = "account.analytic.plan.line"
|
||||
_description = "Analytic Plan Lines"
|
||||
_description = "Analytic Plan Line"
|
||||
_columns = {
|
||||
'plan_id':fields.many2one('account.analytic.plan','Analytic Plan'),
|
||||
'name': fields.char('Plan Name', size=64, required=True, select=True),
|
||||
|
|
|
@ -24,7 +24,7 @@ from osv import fields, osv
|
|||
class purchase_order(osv.osv):
|
||||
_name = "purchase.order"
|
||||
_inherit = "purchase.order"
|
||||
_description = "Purchase order"
|
||||
_description = "Purchase Order"
|
||||
|
||||
def inv_line_create(self, cr, uid, a, ol):
|
||||
line = super(purchase_order, self).inv_line_create(cr, uid, a, ol)
|
||||
|
@ -37,5 +37,4 @@ class purchase_order(osv.osv):
|
|||
a = self.pool.get('account.fiscal.position').map_account(cr, uid, fpos, oa)
|
||||
line[2].update({'account_id': a})
|
||||
return line
|
||||
purchase_order()
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
purchase_order()
|
||||
|
|
|
@ -239,7 +239,7 @@ class crossovered_budget_lines(osv.osv):
|
|||
res[line.id]=0.00
|
||||
return res
|
||||
_name="crossovered.budget.lines"
|
||||
_description = "Budget Lines"
|
||||
_description = "Budget Line"
|
||||
_columns = {
|
||||
'crossovered_budget_id': fields.many2one('crossovered.budget', 'Budget', ondelete='cascade', select=True, required=True),
|
||||
'analytic_account_id': fields.many2one('account.analytic.account', 'Analytic Account',required=True),
|
||||
|
|
|
@ -23,7 +23,7 @@ from osv import fields, osv
|
|||
|
||||
class followup(osv.osv):
|
||||
_name = 'account_followup.followup'
|
||||
_description = 'Follow-Ups'
|
||||
_description = 'Follow-Up'
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=64, required=True),
|
||||
'description': fields.text('Description'),
|
||||
|
@ -34,7 +34,7 @@ followup()
|
|||
|
||||
class followup_line(osv.osv):
|
||||
_name = 'account_followup.followup.line'
|
||||
_description = 'Follow-Ups Criteria'
|
||||
_description = 'Follow-Up Criteria'
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=64, required=True),
|
||||
'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of follow-up lines."),
|
||||
|
|
|
@ -30,7 +30,7 @@ def _code_get(self, cr, uid, context={}):
|
|||
|
||||
class account_followup_stat(osv.osv):
|
||||
_name = "account_followup.stat"
|
||||
_description = "Followup statistics"
|
||||
_description = "Followup Statistics"
|
||||
_auto = False
|
||||
_columns = {
|
||||
'name': fields.many2one('res.partner', 'Partner', readonly=True),
|
||||
|
|
|
@ -28,7 +28,7 @@ import pooler
|
|||
|
||||
class payment_type(osv.osv):
|
||||
_name= 'payment.type'
|
||||
_description= 'Payment type'
|
||||
_description= 'Payment Type'
|
||||
_columns= {
|
||||
'name': fields.char('Name', size=64, required=True,help='Payment Type'),
|
||||
'code': fields.char('Code', size=64, required=True,help='Specifies the Code for Payment Type'),
|
||||
|
@ -43,7 +43,7 @@ payment_type()
|
|||
|
||||
class payment_mode(osv.osv):
|
||||
_name= 'payment.mode'
|
||||
_description= 'Payment mode'
|
||||
_description= 'Payment Mode'
|
||||
_columns= {
|
||||
'name': fields.char('Name', size=64, required=True,help='Mode of Payment'),
|
||||
'bank_id': fields.many2one('res.partner.bank', "Bank account",
|
||||
|
|
|
@ -32,7 +32,7 @@ from mx.DateTime import RelativeDateTime, now, DateTime, localtime
|
|||
|
||||
class account_report(osv.osv):
|
||||
_name = "account.report.report"
|
||||
_description = "Account reporting"
|
||||
_description = "Account Reporting"
|
||||
# _color = [
|
||||
# ('', ''),
|
||||
# ('green','Green'),
|
||||
|
|
|
@ -30,7 +30,7 @@ from mx.DateTime import RelativeDateTime, now, DateTime, localtime
|
|||
|
||||
class color_rml(osv.osv):
|
||||
_name = "color.rml"
|
||||
_description = "Rml Colors"
|
||||
_description = "Rml Color"
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=64, required=True),
|
||||
'code': fields.char('code',size=64,required=True),
|
||||
|
|
|
@ -31,7 +31,7 @@ import decimal_precision as dp
|
|||
|
||||
class account_analytic_account(osv.osv):
|
||||
_name = 'account.analytic.account'
|
||||
_description = 'Analytic Accounts'
|
||||
_description = 'Analytic Account'
|
||||
|
||||
def _compute_currency_for_level_tree(self, cr, uid, ids, ids2, res, acc_set, context={}):
|
||||
# Handle multi-currency on each level of analytic account
|
||||
|
@ -285,7 +285,7 @@ account_analytic_account()
|
|||
|
||||
class account_analytic_line(osv.osv):
|
||||
_name = 'account.analytic.line'
|
||||
_description = 'Analytic lines'
|
||||
_description = 'Analytic Line'
|
||||
def _amount_currency(self, cr, uid, ids, field_name, arg, context={}):
|
||||
result = {}
|
||||
for rec in self.browse(cr, uid, ids, context):
|
||||
|
|
|
@ -25,7 +25,7 @@ class res_partner_contact(osv.osv):
|
|||
""" Partner Contact """
|
||||
|
||||
_name = "res.partner.contact"
|
||||
_description = "res.partner.contact"
|
||||
_description = "Contact"
|
||||
|
||||
def _title_get(self,cr, user, context={}):
|
||||
"""
|
||||
|
|
|
@ -32,7 +32,7 @@ class crm_lead(osv.osv, crm_case):
|
|||
""" CRM Lead Case """
|
||||
|
||||
_name = "crm.lead"
|
||||
_description = "Leads Cases"
|
||||
_description = "Lead"
|
||||
_order = "priority, id desc"
|
||||
_inherit = ['res.partner.address', 'mailgate.thread']
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ class crm_meeting(osv.osv, crm_case):
|
|||
""" CRM Meeting Cases """
|
||||
|
||||
_name = 'crm.meeting'
|
||||
_description = "Meeting Cases"
|
||||
_description = "Meeting"
|
||||
_order = "id desc"
|
||||
_inherit = ["mailgate.thread", "calendar.event"]
|
||||
|
||||
|
|
|
@ -36,12 +36,10 @@ AVAILABLE_STATES = [
|
|||
|
||||
class crm_opportunity(osv.osv):
|
||||
""" Opportunity Cases """
|
||||
|
||||
_name = "crm.lead"
|
||||
_description = "Opportunity Cases"
|
||||
_description = "Opportunity"
|
||||
_order = "priority,date_action,id desc"
|
||||
_inherit = 'crm.lead'
|
||||
|
||||
_columns = {
|
||||
# From crm.case
|
||||
'partner_address_id': fields.many2one('res.partner.address', 'Partner Contact', \
|
||||
|
@ -56,7 +54,6 @@ class crm_opportunity(osv.osv):
|
|||
'date_deadline': fields.date('Expected Closing'),
|
||||
'date_action': fields.date('Next Action'),
|
||||
}
|
||||
|
||||
def case_close(self, cr, uid, ids, *args):
|
||||
"""Overrides close for crm_case for setting probability and close date
|
||||
@param self: The object pointer
|
||||
|
|
|
@ -29,7 +29,7 @@ class crm_phonecall(osv.osv, crm_case):
|
|||
""" Phonecall Cases """
|
||||
|
||||
_name = "crm.phonecall"
|
||||
_description = "Phonecall Cases"
|
||||
_description = "Phonecall"
|
||||
_order = "id desc"
|
||||
_inherit = 'mailgate.thread'
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ from tools.translate import _
|
|||
|
||||
class delivery_carrier(osv.osv):
|
||||
_name = "delivery.carrier"
|
||||
_description = "Carrier and delivery grids"
|
||||
_description = "Carrier"
|
||||
|
||||
def name_get(self, cr, uid, ids, context={}):
|
||||
if not len(ids):
|
||||
|
@ -144,7 +144,7 @@ delivery_grid()
|
|||
|
||||
class delivery_grid_line(osv.osv):
|
||||
_name = "delivery.grid.line"
|
||||
_description = "Delivery line of grid"
|
||||
_description = "Delivery Grid Line"
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=32, required=True),
|
||||
'grid_id': fields.many2one('delivery.grid', 'Grid',required=True),
|
||||
|
|
|
@ -29,7 +29,7 @@ import decimal_precision as dp
|
|||
# Overloaded stock_picking to manage carriers :
|
||||
class stock_picking(osv.osv):
|
||||
_name = "stock.picking"
|
||||
_description = "Picking list"
|
||||
_description = "Packing List"
|
||||
_inherit = 'stock.picking'
|
||||
|
||||
def _cal_weight(self, cr, uid, ids, name, args, context=None):
|
||||
|
|
|
@ -31,7 +31,7 @@ from tools.translate import _
|
|||
|
||||
class document_directory(osv.osv):
|
||||
_name = 'document.directory'
|
||||
_description = 'Document directory'
|
||||
_description = 'Directory'
|
||||
_order = 'name desc'
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=64, required=True, select=1),
|
||||
|
@ -286,7 +286,7 @@ class document_directory_dctx(osv.osv):
|
|||
appended to all children down the tree.
|
||||
"""
|
||||
_name = 'document.directory.dctx'
|
||||
_description = 'Directory dynamic context'
|
||||
_description = 'Directory Dynamic Context'
|
||||
_columns = {
|
||||
'dir_id': fields.many2one('document.directory', 'Directory', required=True),
|
||||
'field': fields.char('Field', size=20, required=True, select=1, help="The name of the field. Note that the prefix \"dctx_\" will be prepended to what is typed here."),
|
||||
|
|
|
@ -95,7 +95,7 @@ class document_storage(osv.osv):
|
|||
the same tree of filesystem storage.
|
||||
"""
|
||||
_name = 'document.storage'
|
||||
_description = 'Document storage media'
|
||||
_description = 'Storage Media'
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=64, required=True, select=1),
|
||||
'write_date': fields.datetime('Date Modified', readonly=True),
|
||||
|
|
|
@ -30,7 +30,7 @@ import os
|
|||
class document_configuration_wizard(osv.osv_memory):
|
||||
|
||||
_name='document.configuration.wizard'
|
||||
_description = 'Auto Directory configuration'
|
||||
_description = 'Auto Directory Configuration'
|
||||
_inherit = 'res.config'
|
||||
_rec_name = 'host'
|
||||
_columns = {
|
||||
|
|
|
@ -101,7 +101,7 @@ ir_action_window()
|
|||
|
||||
class res_users(osv.osv):
|
||||
_inherit = 'res.users'
|
||||
_description = 'res.users'
|
||||
_description = 'User'
|
||||
|
||||
def _parent_compute(self, cr, uid, ids, name, args, context={}):
|
||||
result = {}
|
||||
|
|
|
@ -27,7 +27,7 @@ from tools.translate import _
|
|||
|
||||
class hr_action_reason(osv.osv):
|
||||
_name = "hr.action.reason"
|
||||
_description = "Action reason"
|
||||
_description = "Action Reason"
|
||||
_columns = {
|
||||
'name' : fields.char('Reason', size=64, required=True, help='Specifies the reason for Signing In/Signing Out.'),
|
||||
'action_type' : fields.selection([('sign_in', 'Sign in'), ('sign_out', 'Sign out')], "Action's type"),
|
||||
|
|
|
@ -50,7 +50,7 @@ class hr_expense_expense(osv.osv):
|
|||
return self.pool.get('res.currency').search(cr, uid, [('rate','=',1.0)])[0]
|
||||
|
||||
_name = "hr.expense.expense"
|
||||
_description = "HR Expense"
|
||||
_description = "Expense"
|
||||
_columns = {
|
||||
'name': fields.char('Expense Sheet', size=128, required=True),
|
||||
'id': fields.integer('Sheet ID', readonly=True),
|
||||
|
|
|
@ -29,7 +29,7 @@ from tools.translate import _
|
|||
|
||||
class hr_holidays_status(osv.osv):
|
||||
_name = "hr.holidays.status"
|
||||
_description = "Leave Types"
|
||||
_description = "Leave Type"
|
||||
|
||||
def get_days_cat(self, cr, uid, ids, category_id, return_false, context={}):
|
||||
res = {}
|
||||
|
@ -106,7 +106,7 @@ hr_holidays_status()
|
|||
|
||||
class hr_holidays(osv.osv):
|
||||
_name = "hr.holidays"
|
||||
_description = "Holidays"
|
||||
_description = "Leave"
|
||||
_order = "type desc, date_from asc"
|
||||
|
||||
def _employee_get(obj, cr, uid, context=None):
|
||||
|
@ -432,7 +432,7 @@ class resource_calendar_leaves(osv.osv):
|
|||
_description = "Leave Detail"
|
||||
_columns = {
|
||||
'holiday_id': fields.many2one("hr.holidays", "Holiday"),
|
||||
}
|
||||
}
|
||||
|
||||
resource_calendar_leaves()
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -55,7 +55,7 @@ hr_recruitment_stage()
|
|||
|
||||
class hr_applicant(osv.osv, crm.crm_case):
|
||||
_name = "hr.applicant"
|
||||
_description = "Applicant Cases"
|
||||
_description = "Applicant"
|
||||
_order = "id desc"
|
||||
_inherit ='mailgate.thread'
|
||||
|
||||
|
|
|
@ -39,7 +39,7 @@ hr_employee()
|
|||
class hr_analytic_timesheet(osv.osv):
|
||||
_name = "hr.analytic.timesheet"
|
||||
_table = 'hr_analytic_timesheet'
|
||||
_description = "Timesheet line"
|
||||
_description = "Timesheet Line"
|
||||
_inherits = {'account.analytic.line': 'line_id'}
|
||||
_order = "id desc"
|
||||
_columns = {
|
||||
|
|
|
@ -25,7 +25,7 @@ from tools.translate import _
|
|||
|
||||
class hr_timesheet_invoice_factor(osv.osv):
|
||||
_name = "hr_timesheet_invoice.factor"
|
||||
_description = "Invoice rate"
|
||||
_description = "Invoice Rate"
|
||||
_columns = {
|
||||
'name': fields.char('Internal name', size=128, required=True),
|
||||
'customer_name': fields.char('Name', size=128),
|
||||
|
|
|
@ -581,7 +581,7 @@ hr_attendance()
|
|||
|
||||
class hr_timesheet_sheet_sheet_day(osv.osv):
|
||||
_name = "hr_timesheet_sheet.sheet.day"
|
||||
_description = "Timesheets by period"
|
||||
_description = "Timesheets by Period"
|
||||
_auto = False
|
||||
_order='name'
|
||||
_columns = {
|
||||
|
@ -662,7 +662,7 @@ hr_timesheet_sheet_sheet_day()
|
|||
|
||||
class hr_timesheet_sheet_sheet_account(osv.osv):
|
||||
_name = "hr_timesheet_sheet.sheet.account"
|
||||
_description = "Timesheets by period"
|
||||
_description = "Timesheets by Period"
|
||||
_auto = False
|
||||
_order='name'
|
||||
_columns = {
|
||||
|
|
|
@ -31,7 +31,7 @@ class idea_category(osv.osv):
|
|||
""" Category of Idea """
|
||||
|
||||
_name = "idea.category"
|
||||
_description = "Category for an idea"
|
||||
_description = "Idea Category"
|
||||
|
||||
_columns = {
|
||||
'name': fields.char('Category', size=64, required=True),
|
||||
|
@ -251,7 +251,7 @@ class idea_comment(osv.osv):
|
|||
""" Apply Idea for Comment """
|
||||
|
||||
_name = 'idea.comment'
|
||||
_description = 'Comments'
|
||||
_description = 'Comment'
|
||||
_rec_name = 'content'
|
||||
|
||||
_columns = {
|
||||
|
@ -274,7 +274,7 @@ class idea_vote(osv.osv):
|
|||
""" Apply Idea for Vote """
|
||||
|
||||
_name = 'idea.vote'
|
||||
_description = 'Vote for Idea'
|
||||
_description = 'Idea Vote'
|
||||
_rec_name = 'score'
|
||||
|
||||
_columns = {
|
||||
|
|
|
@ -22,7 +22,7 @@ from osv import osv
|
|||
|
||||
class res_company(osv.osv):
|
||||
_inherit = "res.company"
|
||||
_description = 'res.company'
|
||||
_description = 'Company'
|
||||
|
||||
def _get_default_ad(self, addresses):
|
||||
city = post_code = address = country_code = ""
|
||||
|
|
|
@ -91,7 +91,7 @@ class lunch_cashmove(osv.osv):
|
|||
""" Move cash """
|
||||
|
||||
_name = 'lunch.cashmove'
|
||||
_description = "Move cash"
|
||||
_description = "Cash Move"
|
||||
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=128),
|
||||
|
|
|
@ -33,7 +33,7 @@ _intervalTypes = {
|
|||
|
||||
class marketing_campaign(osv.osv): #{{{
|
||||
_name = "marketing.campaign"
|
||||
_description = "Marketing Campaigns"
|
||||
_description = "Marketing Campaign"
|
||||
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=64, required=True),
|
||||
|
@ -58,7 +58,7 @@ marketing_campaign()#}}}
|
|||
|
||||
class marketing_campaign_segment(osv.osv): #{{{
|
||||
_name = "marketing.campaign.segment"
|
||||
_description = "Marketing Campaign Segments"
|
||||
_description = "Campaign Segment"
|
||||
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=64,required=True),
|
||||
|
@ -85,7 +85,7 @@ marketing_campaign_segment()#}}}
|
|||
|
||||
class marketing_campaign_activity(osv.osv): #{{{
|
||||
_name = "marketing.campaign.activity"
|
||||
_description = "Marketing Campaign Activities"
|
||||
_description = "Campaign Activity"
|
||||
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=64),
|
||||
|
@ -135,7 +135,7 @@ marketing_campaign_activity()#}}}
|
|||
|
||||
class marketing_campaign_transition(osv.osv): #{{{
|
||||
_name = "marketing.campaign.transition"
|
||||
_description = "Campaign Transitions"
|
||||
_description = "Campaign Transition"
|
||||
|
||||
_columns = {
|
||||
'activity_from_id': fields.many2one('marketing.campaign.activity',
|
||||
|
@ -159,7 +159,7 @@ marketing_campaign_transition() #}}}
|
|||
|
||||
class marketing_campaign_workitem(osv.osv): #{{{
|
||||
_name = "marketing.campaign.workitem"
|
||||
_description = "Campaign Workitems"
|
||||
_description = "Campaign Workitem"
|
||||
|
||||
_columns = {
|
||||
'segment_id': fields.many2one('marketing.campaign.segment', 'Segment',
|
||||
|
|
|
@ -458,8 +458,6 @@ class Product(osv.osv):
|
|||
|
||||
'''Product'''
|
||||
_inherit = 'product.product'
|
||||
_description = 'product.product'
|
||||
|
||||
_columns = {
|
||||
'membership': fields.boolean('Membership', help='Specify if this product is a membership product'),
|
||||
'membership_date_from': fields.date('Date from'),
|
||||
|
|
|
@ -94,7 +94,7 @@ class mrp_routing_workcenter(osv.osv):
|
|||
Defines working cycles and hours of a workcenter using routings.
|
||||
"""
|
||||
_name = 'mrp.routing.workcenter'
|
||||
_description = 'Routing workcenter usage'
|
||||
_description = 'Workcenter Usage'
|
||||
_columns = {
|
||||
'workcenter_id': fields.many2one('mrp.workcenter', 'Work Center', required=True),
|
||||
'name': fields.char('Name', size=64, required=True),
|
||||
|
@ -118,7 +118,7 @@ class mrp_bom(osv.osv):
|
|||
Defines bills of material for a product.
|
||||
"""
|
||||
_name = 'mrp.bom'
|
||||
_description = 'Bills of Material'
|
||||
_description = 'Bill of Material'
|
||||
|
||||
def _child_compute(self, cr, uid, ids, name, arg, context={}):
|
||||
""" Gets child bom.
|
||||
|
@ -351,8 +351,7 @@ mrp_bom()
|
|||
|
||||
class mrp_bom_revision(osv.osv):
|
||||
_name = 'mrp.bom.revision'
|
||||
_description = 'Bill of material revisions'
|
||||
|
||||
_description = 'Bill of Material Revision'
|
||||
_columns = {
|
||||
'name': fields.char('Modification name', size=64, required=True),
|
||||
'description': fields.text('Description'),
|
||||
|
@ -934,7 +933,7 @@ mrp_production()
|
|||
|
||||
class mrp_production_workcenter_line(osv.osv):
|
||||
_name = 'mrp.production.workcenter.line'
|
||||
_description = 'Work Orders'
|
||||
_description = 'Work Order'
|
||||
_order = 'sequence'
|
||||
|
||||
_columns = {
|
||||
|
@ -954,8 +953,7 @@ mrp_production_workcenter_line()
|
|||
|
||||
class mrp_production_product_line(osv.osv):
|
||||
_name = 'mrp.production.product.line'
|
||||
_description = 'Production scheduled products'
|
||||
|
||||
_description = 'Production Scheduled Product'
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=64, required=True),
|
||||
'product_id': fields.many2one('product.product', 'Product', required=True),
|
||||
|
|
|
@ -32,4 +32,3 @@
|
|||
"access_report_mrp_inout","report.mrp.inout","model_report_mrp_inout","mrp.group_mrp_manager",1,0,0,0
|
||||
"access_mrp_product_price","mrp.product_price","model_mrp_product_price","mrp.group_mrp_manager",1,0,0,0
|
||||
"access_mrp_workcenter_load","mrp.workcenter.load","model_mrp_workcenter_load","mrp.group_mrp_manager",1,0,0,0
|
||||
"access_mrp_procurement_compute","mrp.procurement.compute","model_mrp_procurement_compute","mrp.group_mrp_user",1,0,0,0
|
||||
|
|
|
|
@ -33,7 +33,7 @@ class stock_warehouse_orderpoint(osv.osv):
|
|||
Defines Minimum stock rules.
|
||||
"""
|
||||
_name = "stock.warehouse.orderpoint"
|
||||
_description = "Orderpoint minimum rule"
|
||||
_description = "Minimum Inventory Rule"
|
||||
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=32, required=True),
|
||||
|
|
|
@ -30,7 +30,7 @@ import decimal_precision as dp
|
|||
|
||||
class mrp_repair(osv.osv):
|
||||
_name = 'mrp.repair'
|
||||
_description = 'Repairs Order'
|
||||
_description = 'Repair Order'
|
||||
|
||||
def _amount_untaxed(self, cr, uid, ids, field_name, arg, context):
|
||||
""" Calculates untaxed amount.
|
||||
|
@ -590,7 +590,7 @@ class ProductChangeMixin(object):
|
|||
|
||||
class mrp_repair_line(osv.osv, ProductChangeMixin):
|
||||
_name = 'mrp.repair.line'
|
||||
_description = 'Repair Operations Lines'
|
||||
_description = 'Repair Line'
|
||||
|
||||
def copy_data(self, cr, uid, id, default=None, context=None):
|
||||
if not default: default = {}
|
||||
|
@ -678,7 +678,7 @@ mrp_repair_line()
|
|||
|
||||
class mrp_repair_fee(osv.osv, ProductChangeMixin):
|
||||
_name = 'mrp.repair.fee'
|
||||
_description = 'Repair Fees line'
|
||||
_description = 'Repair Fees Line'
|
||||
|
||||
def copy_data(self, cr, uid, id, default=None, context=None):
|
||||
if not default: default = {}
|
||||
|
|
|
@ -24,7 +24,7 @@ from osv import osv
|
|||
|
||||
class mrp_subproduct(osv.osv):
|
||||
_name = 'mrp.subproduct'
|
||||
_description = 'Mrp Sub Product'
|
||||
_description = 'Sub Product'
|
||||
_columns={
|
||||
'product_id': fields.many2one('product.product', 'Product', required=True),
|
||||
'product_qty': fields.float('Product Qty', required=True),
|
||||
|
|
|
@ -49,7 +49,7 @@ class singer_statement(osv.osv):
|
|||
""" Singer Statements """
|
||||
|
||||
_name = 'singer.statement'
|
||||
_description = 'Statements'
|
||||
_description = 'Statement'
|
||||
|
||||
def _sub_total(self, cr, uid, ids, name, arg, context=None):
|
||||
|
||||
|
|
|
@ -31,11 +31,9 @@ import re
|
|||
import decimal_precision as dp
|
||||
|
||||
class pos_config_journal(osv.osv):
|
||||
|
||||
""" Point of Sale journal configuration"""
|
||||
|
||||
_name = 'pos.config.journal'
|
||||
_description = "Point of Sale journal configuration"
|
||||
_description = "Journal Configuration"
|
||||
_columns = {
|
||||
'name': fields.char('Description', size=64),
|
||||
'code': fields.char('Code', size=64),
|
||||
|
|
|
@ -296,7 +296,7 @@ process_process()
|
|||
|
||||
class process_node(osv.osv):
|
||||
_name = 'process.node'
|
||||
_description ='Process Nodes'
|
||||
_description ='Process Node'
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=30,required=True, translate=True),
|
||||
'process_id': fields.many2one('process.process', 'Process', required=True, ondelete='cascade'),
|
||||
|
@ -342,7 +342,7 @@ process_node_condition()
|
|||
|
||||
class process_transition(osv.osv):
|
||||
_name = 'process.transition'
|
||||
_description ='Process Transitions'
|
||||
_description ='Process Transition'
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=32, required=True, translate=True),
|
||||
'source_node_id': fields.many2one('process.node', 'Source Node', required=True, ondelete='cascade'),
|
||||
|
|
|
@ -53,7 +53,7 @@ class price_type(osv.osv):
|
|||
return comp.currency_id.id
|
||||
|
||||
_name = "product.price.type"
|
||||
_description = "Price type"
|
||||
_description = "Price Type"
|
||||
_columns = {
|
||||
"name" : fields.char("Price Name", size=32, required=True, translate=True, help="Name of this kind of price."),
|
||||
"active" : fields.boolean("Active"),
|
||||
|
|
|
@ -250,7 +250,7 @@ project()
|
|||
|
||||
class task(osv.osv):
|
||||
_name = "project.task"
|
||||
_description = "Tasks"
|
||||
_description = "Task"
|
||||
_date_name = "date_start"
|
||||
|
||||
def _str_get(self, task, level=0, border='***', context={}):
|
||||
|
|
|
@ -39,7 +39,7 @@ except ImportError:
|
|||
|
||||
class project_gtd_context(osv.osv):
|
||||
_name = "project.gtd.context"
|
||||
_description = "Contexts"
|
||||
_description = "Context"
|
||||
_columns = {
|
||||
'name': fields.char('Context', size=64, required=True, select=1),
|
||||
'sequence': fields.integer('Sequence', help="Gives the sequence order when displaying a list of contexts."),
|
||||
|
|
|
@ -244,7 +244,6 @@ project_resource_allocation()
|
|||
|
||||
class project(osv.osv):
|
||||
_inherit = "project.project"
|
||||
_description = "Project"
|
||||
_columns = {
|
||||
'phase_ids': fields.one2many('project.phase', 'project_id', "Project Phases"),
|
||||
'resource_calendar_id': fields.many2one('resource.calendar', 'Working Time', help="Timetable working hours to adjust the gantt diagram report"),
|
||||
|
@ -254,7 +253,6 @@ project()
|
|||
|
||||
class task(osv.osv):
|
||||
_inherit = "project.task"
|
||||
_description = "Task"
|
||||
_columns = {
|
||||
'phase_id': fields.many2one('project.phase', 'Project Phase'),
|
||||
'occupation_rate': fields.float('Occupation Rate', help='The occupation rate fields indicates how much of his time a user is working on a task. A 100% occupation rate means the user works full time on the tasks. The ending date of a task is computed like this: Starting Date + Duration / Occupation Rate.'),
|
||||
|
@ -368,4 +366,4 @@ class task(osv.osv):
|
|||
return super(task, self).write(cr, uid, ids, vals, context=context)
|
||||
|
||||
task()
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -184,7 +184,6 @@ report_account_analytic_planning_line()
|
|||
class account_analytic_account(osv.osv):
|
||||
_name = 'account.analytic.account'
|
||||
_inherit = 'account.analytic.account'
|
||||
_description = 'Analytic Accounts'
|
||||
_columns = {
|
||||
'planning_ids': fields.one2many('report_account_analytic.planning.line', 'account_id', 'Plannings'),
|
||||
}
|
||||
|
|
|
@ -26,7 +26,6 @@ from datetime import datetime
|
|||
|
||||
class project_project(osv.osv):
|
||||
_inherit = 'project.project'
|
||||
_description = 'project.project'
|
||||
|
||||
def write(self, cr, uid, ids,vals, *args, **kwargs):
|
||||
if 'date' in vals and vals['date']:
|
||||
|
|
|
@ -28,7 +28,6 @@ from tools.translate import _
|
|||
|
||||
class project_work(osv.osv):
|
||||
_inherit = "project.task.work"
|
||||
_description = "Task Work"
|
||||
|
||||
def get_user_related_details(self, cr, uid, user_id):
|
||||
res = {}
|
||||
|
@ -144,7 +143,6 @@ project_work()
|
|||
|
||||
class task(osv.osv):
|
||||
_inherit = "project.task"
|
||||
_description = "Tasks"
|
||||
|
||||
def unlink(self, cr, uid, ids, *args, **kwargs):
|
||||
for task_obj in self.browse(cr, uid, ids, *args, **kwargs):
|
||||
|
|
|
@ -210,7 +210,7 @@ class purchase_order(osv.osv):
|
|||
'company_id': lambda self,cr,uid,c: self.pool.get('res.company')._company_default_get(cr, uid, 'purchase.order', context=c),
|
||||
}
|
||||
_name = "purchase.order"
|
||||
_description = "Purchase order"
|
||||
_description = "Purchase Order"
|
||||
_order = "name desc"
|
||||
|
||||
def unlink(self, cr, uid, ids, context=None):
|
||||
|
@ -611,7 +611,7 @@ class purchase_order_line(osv.osv):
|
|||
}
|
||||
_table = 'purchase_order_line'
|
||||
_name = 'purchase.order.line'
|
||||
_description = 'Purchase Order lines'
|
||||
_description = 'Purchase Order Line'
|
||||
def copy_data(self, cr, uid, id, default=None,context={}):
|
||||
if not default:
|
||||
default = {}
|
||||
|
|
|
@ -27,7 +27,7 @@ import time
|
|||
|
||||
class purchase_requisition(osv.osv):
|
||||
_name = "purchase.requisition"
|
||||
_description="Purchase requisition"
|
||||
_description="Purchase Requisition"
|
||||
_columns = {
|
||||
'name': fields.char('Requisition Reference', size=32,required=True),
|
||||
'origin': fields.char('Origin', size=32),
|
||||
|
@ -110,7 +110,6 @@ purchase_requisition_line()
|
|||
|
||||
class purchase_order(osv.osv):
|
||||
_inherit = "purchase.order"
|
||||
_description = "purchase order"
|
||||
_columns = {
|
||||
'requisition_id' : fields.many2one('purchase.requisition','Purchase Requisition')
|
||||
}
|
||||
|
|
|
@ -811,7 +811,7 @@ class sale_order_line(osv.osv):
|
|||
return res
|
||||
|
||||
_name = 'sale.order.line'
|
||||
_description = 'Sale Order line'
|
||||
_description = 'Sale Order Line'
|
||||
_columns = {
|
||||
'order_id': fields.many2one('sale.order', 'Order Reference', required=True, ondelete='cascade', select=True, readonly=True, states={'draft':[('readonly',False)]}),
|
||||
'name': fields.char('Description', size=256, required=True, select=True, readonly=True, states={'draft':[('readonly',False)]}),
|
||||
|
|
|
@ -23,7 +23,6 @@ from osv import osv,fields
|
|||
|
||||
class sale_order(osv.osv):
|
||||
_inherit = 'sale.order'
|
||||
_description = 'Sale orders'
|
||||
_columns = {
|
||||
'section_id': fields.many2one('crm.case.section', 'Sales Team'),
|
||||
}
|
||||
|
|
|
@ -25,7 +25,7 @@ import time
|
|||
|
||||
class sale_journal_invoice_type(osv.osv):
|
||||
_name = 'sale_journal.invoice.type'
|
||||
_description = 'Invoice Types'
|
||||
_description = 'Invoice Type'
|
||||
_columns = {
|
||||
'name': fields.char('Invoice Type', size=64, required=True),
|
||||
'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the invoice type without removing it."),
|
||||
|
|
|
@ -43,8 +43,6 @@
|
|||
"access_stock_traceability_lot_downstream","stock.traceability.lot.downstream","model_stock_traceability_lot_downstream","stock.group_stock_user",1,0,0,0
|
||||
"access_stock_partial_picking",stock.partial.picking","model_stock_partial_picking","stock.group_stock_user",1,0,0,0
|
||||
"access_stock_partial_move","stock.partial.move","model_stock_partial_move","stock.group_stock_user",1,0,0,0
|
||||
"access_stock_return_picking","stock.return.picking","model_stock_return_picking","stock.group_stock_user",1,0,0,0
|
||||
"access_stock_inventory_merge","stock.inventory.merge","model_stock_inventory_merge","stock.group_stock_user",1,0,0,0
|
||||
"access_stock_change_standard_price","stock.change.standard.price","model_stock_change_standard_price","stock.group_stock_user",1,0,0,0
|
||||
"access_action_traceability","action.traceability","model_action_traceability","stock.group_stock_user",1,0,0,0
|
||||
"access_stock_picking_make","stock.picking.make","model_stock_picking_make","stock.group_stock_user",1,0,0,0
|
||||
|
|
Can't render this file because it contains an unexpected character in line 44 and column 53.
|
|
@ -2027,7 +2027,7 @@ stock_inventory()
|
|||
|
||||
class stock_inventory_line(osv.osv):
|
||||
_name = "stock.inventory.line"
|
||||
_description = "Inventory line"
|
||||
_description = "Inventory Line"
|
||||
_columns = {
|
||||
'inventory_id': fields.many2one('stock.inventory', 'Inventory', ondelete='cascade', select=True),
|
||||
'location_id': fields.many2one('stock.location', 'Location', required=True),
|
||||
|
|
|
@ -29,7 +29,7 @@ from tools.translate import _
|
|||
|
||||
class subscription_document(osv.osv):
|
||||
_name = "subscription.document"
|
||||
_description = "Subscription document"
|
||||
_description = "Subscription Document"
|
||||
_columns = {
|
||||
'name': fields.char('Name', size=60, required=True),
|
||||
'active': fields.boolean('Active', help="If the active field is set to true, it will allow you to hide the subscription document without removing it."),
|
||||
|
@ -49,7 +49,7 @@ subscription_document()
|
|||
|
||||
class subscription_document_fields(osv.osv):
|
||||
_name = "subscription.document.fields"
|
||||
_description = "Subscription document fields"
|
||||
_description = "Subscription Document Fields"
|
||||
_rec_name = 'field'
|
||||
_columns = {
|
||||
'field': fields.many2one('ir.model.fields', 'Field', domain="[('model_id', '=', parent.model)]", required=True),
|
||||
|
|
Loading…
Reference in New Issue