[IMP] removed remaining method=True params from fields.function
Server revision 3495 odo@openerp.com-20110701232328-flgxulxva70vnyxr removed the need for passing method=True to function fields. bzr revid: odo@openerp.com-20110705122857-zvzpamu0n24zst1q
This commit is contained in:
parent
a13109ea93
commit
f36e724804
|
@ -30,7 +30,6 @@ class res_company(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Reserve and Profit/Loss Account",
|
string="Reserve and Profit/Loss Account",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
domain="[('type', '=', 'other')]",
|
domain="[('type', '=', 'other')]",
|
||||||
help="This Account is used for transferring Profit/Loss(If It is Profit: Amount will be added, Loss : Amount will be deducted.), Which is calculated from Profit & Loss Report"),
|
help="This Account is used for transferring Profit/Loss(If It is Profit: Amount will be added, Loss : Amount will be deducted.), Which is calculated from Profit & Loss Report"),
|
||||||
|
|
|
@ -150,7 +150,6 @@ class res_partner(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Account Payable",
|
string="Account Payable",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
domain="[('type', '=', 'payable')]",
|
domain="[('type', '=', 'payable')]",
|
||||||
help="This account will be used instead of the default one as the payable account for the current partner",
|
help="This account will be used instead of the default one as the payable account for the current partner",
|
||||||
|
@ -160,7 +159,6 @@ class res_partner(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Account Receivable",
|
string="Account Receivable",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
domain="[('type', '=', 'receivable')]",
|
domain="[('type', '=', 'receivable')]",
|
||||||
help="This account will be used instead of the default one as the receivable account for the current partner",
|
help="This account will be used instead of the default one as the receivable account for the current partner",
|
||||||
|
@ -170,7 +168,6 @@ class res_partner(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.fiscal.position',
|
relation='account.fiscal.position',
|
||||||
string="Fiscal Position",
|
string="Fiscal Position",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="The fiscal position will determine taxes and the accounts used for the partner.",
|
help="The fiscal position will determine taxes and the accounts used for the partner.",
|
||||||
),
|
),
|
||||||
|
@ -179,7 +176,6 @@ class res_partner(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.payment.term',
|
relation='account.payment.term',
|
||||||
string ='Payment Term',
|
string ='Payment Term',
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This payment term will be used instead of the default one for the current partner"),
|
help="This payment term will be used instead of the default one for the current partner"),
|
||||||
'ref_companies': fields.one2many('res.company', 'partner_id',
|
'ref_companies': fields.one2many('res.company', 'partner_id',
|
||||||
|
|
|
@ -29,7 +29,6 @@ class product_category(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Income Account",
|
string="Income Account",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This account will be used for invoices to value sales for the current product category"),
|
help="This account will be used for invoices to value sales for the current product category"),
|
||||||
'property_account_expense_categ': fields.property(
|
'property_account_expense_categ': fields.property(
|
||||||
|
@ -37,7 +36,6 @@ class product_category(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Expense Account",
|
string="Expense Account",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This account will be used for invoices to value expenses for the current product category"),
|
help="This account will be used for invoices to value expenses for the current product category"),
|
||||||
}
|
}
|
||||||
|
@ -61,7 +59,6 @@ class product_template(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Income Account",
|
string="Income Account",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This account will be used for invoices instead of the default one to value sales for the current product"),
|
help="This account will be used for invoices instead of the default one to value sales for the current product"),
|
||||||
'property_account_expense': fields.property(
|
'property_account_expense': fields.property(
|
||||||
|
@ -69,7 +66,6 @@ class product_template(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Expense Account",
|
string="Expense Account",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This account will be used for invoices instead of the default one to value expenses for the current product"),
|
help="This account will be used for invoices instead of the default one to value expenses for the current product"),
|
||||||
}
|
}
|
||||||
|
|
|
@ -28,7 +28,6 @@ class product_category(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Price Difference Account",
|
string="Price Difference Account",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This account will be used to value price difference between purchase price and cost price."),
|
help="This account will be used to value price difference between purchase price and cost price."),
|
||||||
|
|
||||||
|
@ -38,7 +37,6 @@ class product_category(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Income Account",
|
string="Income Account",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This account will be used to value outgoing stock for the current product category using sale price"),
|
help="This account will be used to value outgoing stock for the current product category using sale price"),
|
||||||
'property_account_expense_categ': fields.property(
|
'property_account_expense_categ': fields.property(
|
||||||
|
@ -46,7 +44,6 @@ class product_category(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Expense Account",
|
string="Expense Account",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This account will be used to value outgoing stock for the current product category using cost price"),
|
help="This account will be used to value outgoing stock for the current product category using cost price"),
|
||||||
|
|
||||||
|
@ -61,7 +58,6 @@ class product_template(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Price Difference Account",
|
string="Price Difference Account",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This account will be used to value price difference between purchase price and cost price."),
|
help="This account will be used to value price difference between purchase price and cost price."),
|
||||||
|
|
||||||
|
@ -71,7 +67,6 @@ class product_template(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Income Account",
|
string="Income Account",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This account will be used to value outgoing stock for the current product category using sale price"),
|
help="This account will be used to value outgoing stock for the current product category using sale price"),
|
||||||
'property_account_expense': fields.property(
|
'property_account_expense': fields.property(
|
||||||
|
@ -79,7 +74,6 @@ class product_template(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Expense Account",
|
string="Expense Account",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This account will be used to value outgoing stock for the current product category using cost price"),
|
help="This account will be used to value outgoing stock for the current product category using cost price"),
|
||||||
|
|
||||||
|
|
|
@ -344,10 +344,10 @@ class payment_line(osv.osv):
|
||||||
ondelete='cascade', select=True),
|
ondelete='cascade', select=True),
|
||||||
'partner_id': fields.many2one('res.partner', string="Partner", required=True, help='The Ordering Customer'),
|
'partner_id': fields.many2one('res.partner', string="Partner", required=True, help='The Ordering Customer'),
|
||||||
'amount': fields.function(_amount, string='Amount in Company Currency',
|
'amount': fields.function(_amount, string='Amount in Company Currency',
|
||||||
method=True, type='float',
|
type='float',
|
||||||
help='Payment amount in the company currency'),
|
help='Payment amount in the company currency'),
|
||||||
'ml_date_created': fields.function(_get_ml_created_date, string="Effective Date",
|
'ml_date_created': fields.function(_get_ml_created_date, string="Effective Date",
|
||||||
method=True, type='date', help="Invoice Effective Date"),
|
type='date', help="Invoice Effective Date"),
|
||||||
'ml_maturity_date': fields.function(_get_ml_maturity_date, type='date', string='Due Date'),
|
'ml_maturity_date': fields.function(_get_ml_maturity_date, type='date', string='Due Date'),
|
||||||
'ml_inv_ref': fields.function(_get_ml_inv_ref, type='many2one', relation='account.invoice', string='Invoice Ref.'),
|
'ml_inv_ref': fields.function(_get_ml_inv_ref, type='many2one', relation='account.invoice', string='Invoice Ref.'),
|
||||||
'info_owner': fields.function(info_owner, string="Owner Account", type="text", help='Address of the Main Partner'),
|
'info_owner': fields.function(info_owner, string="Owner Account", type="text", help='Address of the Main Partner'),
|
||||||
|
|
|
@ -163,7 +163,7 @@ class users(osv.osv):
|
||||||
# an existing column cannot be downsized; thus we use the original
|
# an existing column cannot be downsized; thus we use the original
|
||||||
# column size.
|
# column size.
|
||||||
'password': fields.function(get_pw, fnct_inv=set_pw, type='char',
|
'password': fields.function(get_pw, fnct_inv=set_pw, type='char',
|
||||||
method=True, size=64, string='Password', invisible=True,
|
size=64, string='Password', invisible=True,
|
||||||
store=True),
|
store=True),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -161,9 +161,9 @@ class crm_lead(crm_case, osv.osv):
|
||||||
'referred': fields.char('Referred By', size=64),
|
'referred': fields.char('Referred By', size=64),
|
||||||
'date_open': fields.datetime('Opened', readonly=True),
|
'date_open': fields.datetime('Opened', readonly=True),
|
||||||
'day_open': fields.function(_compute_day, string='Days to Open', \
|
'day_open': fields.function(_compute_day, string='Days to Open', \
|
||||||
method=True, multi='day_open', type="float", store=True),
|
multi='day_open', type="float", store=True),
|
||||||
'day_close': fields.function(_compute_day, string='Days to Close', \
|
'day_close': fields.function(_compute_day, string='Days to Close', \
|
||||||
method=True, multi='day_close', type="float", store=True),
|
multi='day_close', type="float", store=True),
|
||||||
'state': fields.selection(crm.AVAILABLE_STATES, 'State', size=16, readonly=True,
|
'state': fields.selection(crm.AVAILABLE_STATES, 'State', size=16, readonly=True,
|
||||||
help='The state is set to \'Draft\', when a case is created.\
|
help='The state is set to \'Draft\', when a case is created.\
|
||||||
\nIf the case is in progress the state is set to \'Open\'.\
|
\nIf the case is in progress the state is set to \'Open\'.\
|
||||||
|
|
|
@ -29,7 +29,6 @@ class res_partner(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='delivery.carrier',
|
relation='delivery.carrier',
|
||||||
string="Delivery Method",
|
string="Delivery Method",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This delivery method will be used when invoicing from picking."),
|
help="This delivery method will be used when invoicing from picking."),
|
||||||
}
|
}
|
||||||
|
|
|
@ -711,7 +711,6 @@ class company_contribution(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='hr.contibution.register',
|
relation='hr.contibution.register',
|
||||||
string="Contribution Register",
|
string="Contribution Register",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="Contribution register based on company",
|
help="Contribution register based on company",
|
||||||
required=False
|
required=False
|
||||||
|
|
|
@ -60,7 +60,6 @@ class hr_employee(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Bank Account",
|
string="Bank Account",
|
||||||
method=True,
|
|
||||||
domain="[('type', '=', 'liquidity')]",
|
domain="[('type', '=', 'liquidity')]",
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="Select Bank Account from where Salary Expense will be Paid, to be used for payslip verification."),
|
help="Select Bank Account from where Salary Expense will be Paid, to be used for payslip verification."),
|
||||||
|
@ -69,7 +68,6 @@ class hr_employee(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Salary Account",
|
string="Salary Account",
|
||||||
method=True,
|
|
||||||
domain="[('type', '=', 'other')]",
|
domain="[('type', '=', 'other')]",
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="Expense account when Salary Expense will be recorded"),
|
help="Expense account when Salary Expense will be recorded"),
|
||||||
|
@ -78,7 +76,6 @@ class hr_employee(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Employee Account",
|
string="Employee Account",
|
||||||
method=True,
|
|
||||||
domain="[('type', '=', 'other')]",
|
domain="[('type', '=', 'other')]",
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="Employee Payable Account"),
|
help="Employee Payable Account"),
|
||||||
|
@ -87,7 +84,6 @@ class hr_employee(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.analytic.account',
|
relation='account.analytic.account',
|
||||||
string="Analytic Account",
|
string="Analytic Account",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="Analytic Account for Salary Analysis"),
|
help="Analytic Account for Salary Analysis"),
|
||||||
}
|
}
|
||||||
|
|
|
@ -157,9 +157,9 @@ class hr_applicant(crm.crm_case, osv.osv):
|
||||||
'response': fields.integer("Response"),
|
'response': fields.integer("Response"),
|
||||||
'reference': fields.char('Reference', size=128),
|
'reference': fields.char('Reference', size=128),
|
||||||
'day_open': fields.function(_compute_day, string='Days to Open', \
|
'day_open': fields.function(_compute_day, string='Days to Open', \
|
||||||
method=True, multi='day_open', type="float", store=True),
|
multi='day_open', type="float", store=True),
|
||||||
'day_close': fields.function(_compute_day, string='Days to Close', \
|
'day_close': fields.function(_compute_day, string='Days to Close', \
|
||||||
method=True, multi='day_close', type="float", store=True),
|
multi='day_close', type="float", store=True),
|
||||||
}
|
}
|
||||||
|
|
||||||
def _get_stage(self, cr, uid, context=None):
|
def _get_stage(self, cr, uid, context=None):
|
||||||
|
|
|
@ -250,7 +250,6 @@ class pos_order(osv.osv):
|
||||||
states={'draft': [('readonly', False)]}, readonly=True),
|
states={'draft': [('readonly', False)]}, readonly=True),
|
||||||
'date_order': fields.datetime('Date Ordered', readonly=True, select=True),
|
'date_order': fields.datetime('Date Ordered', readonly=True, select=True),
|
||||||
'date_validation': fields.function(_get_date_payment,
|
'date_validation': fields.function(_get_date_payment,
|
||||||
method=True,
|
|
||||||
string='Validation Date',
|
string='Validation Date',
|
||||||
type='date', select=True, store=True),
|
type='date', select=True, store=True),
|
||||||
'date_payment': fields.function(_get_date_payment2,
|
'date_payment': fields.function(_get_date_payment2,
|
||||||
|
|
|
@ -32,7 +32,6 @@ class res_partner(osv.osv):
|
||||||
relation='product.pricelist',
|
relation='product.pricelist',
|
||||||
domain=[('type','=','sale')],
|
domain=[('type','=','sale')],
|
||||||
string="Sale Pricelist",
|
string="Sale Pricelist",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This pricelist will be used, instead of the default one, for sales to the current partner"),
|
help="This pricelist will be used, instead of the default one, for sales to the current partner"),
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,7 +102,7 @@ class product_uom(osv.osv):
|
||||||
'1 * (reference unit) = ratio * (this unit)'),
|
'1 * (reference unit) = ratio * (this unit)'),
|
||||||
'factor_inv': fields.function(_factor_inv, digits_compute=dp.get_precision('Product UoM'),
|
'factor_inv': fields.function(_factor_inv, digits_compute=dp.get_precision('Product UoM'),
|
||||||
fnct_inv=_factor_inv_write,
|
fnct_inv=_factor_inv_write,
|
||||||
method=True, string='Ratio',
|
string='Ratio',
|
||||||
help='How many times this UoM is bigger than the reference UoM in this category:\n'\
|
help='How many times this UoM is bigger than the reference UoM in this category:\n'\
|
||||||
'1 * (this unit) = ratio * (reference unit)', required=True),
|
'1 * (this unit) = ratio * (reference unit)', required=True),
|
||||||
'rounding': fields.float('Rounding Precision', digits_compute=dp.get_precision('Product UoM'), required=True,
|
'rounding': fields.float('Rounding Precision', digits_compute=dp.get_precision('Product UoM'), required=True,
|
||||||
|
|
|
@ -205,14 +205,14 @@ class project_issue(crm.crm_case, osv.osv):
|
||||||
'duration': fields.float('Duration'),
|
'duration': fields.float('Duration'),
|
||||||
'task_id': fields.many2one('project.task', 'Task', domain="[('project_id','=',project_id)]"),
|
'task_id': fields.many2one('project.task', 'Task', domain="[('project_id','=',project_id)]"),
|
||||||
'day_open': fields.function(_compute_day, string='Days to Open', \
|
'day_open': fields.function(_compute_day, string='Days to Open', \
|
||||||
method=True, multi='compute_day', type="float", store=True),
|
multi='compute_day', type="float", store=True),
|
||||||
'day_close': fields.function(_compute_day, string='Days to Close', \
|
'day_close': fields.function(_compute_day, string='Days to Close', \
|
||||||
method=True, multi='compute_day', type="float", store=True),
|
multi='compute_day', type="float", store=True),
|
||||||
'assigned_to': fields.many2one('res.users', 'Assigned to', required=False, select=1),
|
'assigned_to': fields.many2one('res.users', 'Assigned to', required=False, select=1),
|
||||||
'working_hours_open': fields.function(_compute_day, string='Working Hours to Open the Issue', \
|
'working_hours_open': fields.function(_compute_day, string='Working Hours to Open the Issue', \
|
||||||
method=True, multi='compute_day', type="float", store=True),
|
multi='compute_day', type="float", store=True),
|
||||||
'working_hours_close': fields.function(_compute_day, string='Working Hours to Close the Issue', \
|
'working_hours_close': fields.function(_compute_day, string='Working Hours to Close the Issue', \
|
||||||
method=True, multi='compute_day', type="float", store=True),
|
multi='compute_day', type="float", store=True),
|
||||||
'message_ids': fields.one2many('mailgate.message', 'res_id', 'Messages', domain=[('model','=',_name)]),
|
'message_ids': fields.one2many('mailgate.message', 'res_id', 'Messages', domain=[('model','=',_name)]),
|
||||||
'date_action_last': fields.datetime('Last Action', readonly=1),
|
'date_action_last': fields.datetime('Last Action', readonly=1),
|
||||||
'date_action_next': fields.datetime('Next Action', readonly=1),
|
'date_action_next': fields.datetime('Next Action', readonly=1),
|
||||||
|
|
|
@ -31,7 +31,6 @@ class res_partner(osv.osv):
|
||||||
relation='product.pricelist',
|
relation='product.pricelist',
|
||||||
domain=[('type','=','purchase')],
|
domain=[('type','=','purchase')],
|
||||||
string="Purchase Pricelist",
|
string="Purchase Pricelist",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This pricelist will be used, instead of the default one, for purchases from the current partner"),
|
help="This pricelist will be used, instead of the default one, for purchases from the current partner"),
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,7 +125,6 @@ class ReportXML(osv.osv):
|
||||||
relation='ir.header_webkit',
|
relation='ir.header_webkit',
|
||||||
string='WebKit Header',
|
string='WebKit Header',
|
||||||
help="The header linked to the report",
|
help="The header linked to the report",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
required=True
|
required=True
|
||||||
),
|
),
|
||||||
|
|
|
@ -29,7 +29,6 @@ class res_partner(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='stock.location',
|
relation='stock.location',
|
||||||
string="Customer Location",
|
string="Customer Location",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This stock location will be used, instead of the default one, as the destination location for goods you send to this partner"),
|
help="This stock location will be used, instead of the default one, as the destination location for goods you send to this partner"),
|
||||||
|
|
||||||
|
@ -38,7 +37,6 @@ class res_partner(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='stock.location',
|
relation='stock.location',
|
||||||
string="Supplier Location",
|
string="Supplier Location",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
help="This stock location will be used, instead of the default one, as the source location for goods you receive from the current partner"),
|
help="This stock location will be used, instead of the default one, as the source location for goods you receive from the current partner"),
|
||||||
}
|
}
|
||||||
|
|
|
@ -399,7 +399,6 @@ class product_template(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='stock.location',
|
relation='stock.location',
|
||||||
string="Procurement Location",
|
string="Procurement Location",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
domain=[('usage','like','procurement')],
|
domain=[('usage','like','procurement')],
|
||||||
help="For the current product, this stock location will be used, instead of the default one, as the source location for stock moves generated by procurements"),
|
help="For the current product, this stock location will be used, instead of the default one, as the source location for stock moves generated by procurements"),
|
||||||
|
@ -408,7 +407,6 @@ class product_template(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='stock.location',
|
relation='stock.location',
|
||||||
string="Production Location",
|
string="Production Location",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
domain=[('usage','like','production')],
|
domain=[('usage','like','production')],
|
||||||
help="For the current product, this stock location will be used, instead of the default one, as the source location for stock moves generated by production orders"),
|
help="For the current product, this stock location will be used, instead of the default one, as the source location for stock moves generated by production orders"),
|
||||||
|
@ -417,7 +415,6 @@ class product_template(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='stock.location',
|
relation='stock.location',
|
||||||
string="Inventory Location",
|
string="Inventory Location",
|
||||||
method=True,
|
|
||||||
view_load=True,
|
view_load=True,
|
||||||
domain=[('usage','like','inventory')],
|
domain=[('usage','like','inventory')],
|
||||||
help="For the current product, this stock location will be used, instead of the default one, as the source location for stock moves generated when you do an inventory"),
|
help="For the current product, this stock location will be used, instead of the default one, as the source location for stock moves generated when you do an inventory"),
|
||||||
|
@ -453,7 +450,7 @@ class product_category(osv.osv):
|
||||||
type='many2one',
|
type='many2one',
|
||||||
relation='account.account',
|
relation='account.account',
|
||||||
string="Stock Variation Account",
|
string="Stock Variation Account",
|
||||||
method=True, view_load=True,
|
view_load=True,
|
||||||
help="When real-time inventory valuation is enabled on a product, this account will hold the current value of the products.",),
|
help="When real-time inventory valuation is enabled on a product, this account will hold the current value of the products.",),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -636,11 +636,11 @@ class stock_picking(osv.osv):
|
||||||
"* Done: has been processed, can't be modified or cancelled anymore\n"\
|
"* Done: has been processed, can't be modified or cancelled anymore\n"\
|
||||||
"* Cancelled: has been cancelled, can't be confirmed anymore"),
|
"* Cancelled: has been cancelled, can't be confirmed anymore"),
|
||||||
'min_date': fields.function(get_min_max_date, fnct_inv=_set_minimum_date, multi="min_max_date",
|
'min_date': fields.function(get_min_max_date, fnct_inv=_set_minimum_date, multi="min_max_date",
|
||||||
method=True, store=True, type='datetime', string='Expected Date', select=1, help="Expected date for the picking to be processed"),
|
store=True, type='datetime', string='Expected Date', select=1, help="Expected date for the picking to be processed"),
|
||||||
'date': fields.datetime('Order Date', help="Date of Order", select=True),
|
'date': fields.datetime('Order Date', help="Date of Order", select=True),
|
||||||
'date_done': fields.datetime('Date Done', help="Date of Completion"),
|
'date_done': fields.datetime('Date Done', help="Date of Completion"),
|
||||||
'max_date': fields.function(get_min_max_date, fnct_inv=_set_maximum_date, multi="min_max_date",
|
'max_date': fields.function(get_min_max_date, fnct_inv=_set_maximum_date, multi="min_max_date",
|
||||||
method=True, store=True, type='datetime', string='Max. Expected Date', select=2),
|
store=True, type='datetime', string='Max. Expected Date', select=2),
|
||||||
'move_lines': fields.one2many('stock.move', 'picking_id', 'Internal Moves', states={'done': [('readonly', True)], 'cancel': [('readonly', True)]}),
|
'move_lines': fields.one2many('stock.move', 'picking_id', 'Internal Moves', states={'done': [('readonly', True)], 'cancel': [('readonly', True)]}),
|
||||||
'auto_picking': fields.boolean('Auto-Picking'),
|
'auto_picking': fields.boolean('Auto-Picking'),
|
||||||
'address_id': fields.many2one('res.partner.address', 'Address', help="Address of partner"),
|
'address_id': fields.many2one('res.partner.address', 'Address', help="Address of partner"),
|
||||||
|
|
Loading…
Reference in New Issue