[REF] delivery, mrp, mrp_repair, point_of_sale, product_margin, slae, stock: Removed '@summary' from docstring.

bzr revid: uco@tinyerp.co.in-20100317073413-ks8i2ppev0pxm3cf
This commit is contained in:
uco (OpenERP)
2010-03-17 13:04:13 +05:30
parent 82387d26c9
commit a268acb4c7
24 changed files with 62 additions and 47 deletions
@@ -36,7 +36,7 @@ class make_delivery(osv.osv_memory):
def default_get(self, cr, uid, fields, context):
"""
@summary: To get default values for the object.
To get default values for the object.
@param self: The object pointer.
@param cr: A database cursor
@@ -61,7 +61,7 @@ class make_delivery(osv.osv_memory):
def delivery_set(self, cr, uid, ids, context):
"""
@summary: Adds delivery costs to Sale Order Line.
Adds delivery costs to Sale Order Line.
@param self: The object pointer.
@param cr: A database cursor
+2 -2
View File
@@ -36,7 +36,7 @@ class change_production_qty(osv.osv_memory):
def default_get(self, cr, uid, fields, context):
"""
@summary: To get default values for the object.
To get default values for the object.
@param self: The object pointer.
@param cr: A database cursor
@@ -61,7 +61,7 @@ class change_production_qty(osv.osv_memory):
def change_prod_qty(self, cr, uid, ids, context):
"""
@summary: Changes the Quantity of Product.
Changes the Quantity of Product.
@param self: The object pointer.
@param cr: A database cursor
@@ -30,7 +30,7 @@ class make_procurement(osv.osv_memory):
def onchange_product_id(self, cr, uid, ids, prod_id):
"""
@summary: On Change of Product ID getting the value of related UoM.
On Change of Product ID getting the value of related UoM.
@param self: The object pointer.
@param cr: A database cursor
@@ -59,7 +59,7 @@ class make_procurement(osv.osv_memory):
def make_procurement(self, cr, uid, ids, context=None):
"""
@summary: Creates procurement order for selected product.
Creates procurement order for selected product.
@param self: The object pointer.
@param cr: A database cursor
@@ -110,7 +110,7 @@ class make_procurement(osv.osv_memory):
def default_get(self, cr, uid, fields, context=None):
"""
@summary: To get default values for the object.
To get default values for the object.
@param self: The object pointer.
@param cr: A database cursor
+2 -2
View File
@@ -35,7 +35,7 @@ class mrp_product_produce(osv.osv_memory):
def _get_product_qty(self, cr, uid, context):
"""
@summary: to obtain product quantity
To obtain product quantity
@param self: The object pointer.
@param cr: A database cursor
@@ -58,7 +58,7 @@ class mrp_product_produce(osv.osv_memory):
def do_produce(self, cr, uid, ids, context={}):
"""
@summary: to check the product type
To check the product type
@param self: The object pointer.
@param cr: A database cursor
+2 -2
View File
@@ -29,7 +29,7 @@ class repair_cancel(osv.osv_memory):
def cancel_repair(self, cr, uid, ids, context):
"""
@summary: Cancels the repair
Cancels the repair
@param self: The object pointer.
@param cr: A database cursor
@@ -55,7 +55,7 @@ class repair_cancel(osv.osv_memory):
def fields_view_get(self, cr, uid, view_id=None, view_type='form', context=None, toolbar=False, submenu=False):
"""
@summary: Changes the view dynamically
Changes the view dynamically
@param self: The object pointer.
@param cr: A database cursor
+1 -1
View File
@@ -32,7 +32,7 @@ class make_invoice(osv.osv_memory):
def make_invoices(self, cr, uid, ids, context):
"""
@summary: Generates invoice(s) of selected records.
Generates invoice(s) of selected records.
@param self: The object pointer.
@param cr: A database cursor
@@ -37,7 +37,7 @@ class add_product(osv.osv_memory):
def select_product(self, cr, uid, ids, context):
"""
@summary: To get the product and quantity and add in order .
To get the product and quantity and add in order .
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
@@ -28,7 +28,7 @@ from tools.translate import _
def get_journal(self,cr,uid,context):
"""
@summary: Make the selection list of Cash Journal .
Make the selection list of Cash Journal .
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
@@ -53,7 +53,7 @@ class pos_box_entries(osv.osv_memory):
def _get_income_product(self,cr,uid,context):
"""
@summary: Make the selection list of purchasing products.
Make the selection list of purchasing products.
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
@@ -84,7 +84,7 @@ class pos_box_entries(osv.osv_memory):
"""
@summary: Create the entry of statement in journal .
Create the entry of statement in journal .
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
+2 -2
View File
@@ -35,7 +35,7 @@ class pos_box_out(osv.osv_memory):
def _get_expense_product(self,cr,uid,context):
"""
@summary: Make the selection list of expense product.
Make the selection list of expense product.
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
@@ -64,7 +64,7 @@ class pos_box_out(osv.osv_memory):
def get_out(self, cr, uid, ids, context):
"""
@summary: Create the entries in the CashBox .
Create the entries in the CashBox .
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
@@ -31,7 +31,7 @@ class pos_close_statement(osv.osv_memory):
def close_statement(self, cr, uid, ids, context):
"""
@summary: Close the statements
Close the statements
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
+1 -1
View File
@@ -28,7 +28,7 @@ class pos_confirm(osv.osv_memory):
_description = 'Point of Sale Confirm'
def action_confirm(self, cr, uid, ids, context):
"""
@summary: Confirm the order and close the sales .
Confirm the order and close the sales .
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
+2 -2
View File
@@ -37,7 +37,7 @@ class pos_discount(osv.osv_memory):
def apply_discount(self, cr, uid, ids, context):
"""
@summary: To give the discount of product and check the .
To give the discount of product and check the .
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
@@ -82,7 +82,7 @@ class pos_discount(osv.osv_memory):
def check_discount(self, cr, uid, record_id,discount, context):
"""
@summary: Check the discount of define by company .
Check the discount of define by company .
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
+1 -1
View File
@@ -33,7 +33,7 @@ class pos_get_sale(osv.osv_memory):
def sale_complete(self, cr, uid, ids, context):
"""
@summary: Select the picking order and add the in Point of sale order
Select the picking order and add the in Point of sale order
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
@@ -30,7 +30,7 @@ class pos_open_statement(osv.osv_memory):
def open_statement(self, cr, uid, ids, context):
"""
@summary: open the statements
Open the statements
@param self: The object pointer.
@param cr: A database cursor
@param uid: ID of the user currently logged in
@@ -34,8 +34,6 @@ class product_margin(osv.osv_memory):
def action_open_window(self, cr, uid, ids, context):
"""
@summary:
@param cr: the current row, from the database cursor,
@param uid: the current user’s ID for security checks,
@param ids: the ID or list of IDs if we want more than one
+2 -2
View File
@@ -38,7 +38,7 @@ class sale_order_line_make_invoice(osv.osv_memory):
def make_invoices(self, cr, uid, ids, context):
"""
@summary: To make invoices.
To make invoices.
@param self: The object pointer.
@param cr: A database cursor
@@ -56,7 +56,7 @@ class sale_order_line_make_invoice(osv.osv_memory):
#TODO: merge with sale.py/make_invoice
def make_invoice(order, lines):
"""
@summary: To make invoices.
To make invoices.
@param order:
@param lines:
@@ -40,7 +40,7 @@ class sale_advance_payment_inv(osv.osv_memory):
}
def create_invoices(self, cr, uid, ids, context={}):
"""
@summary: To create invoices.
To create invoices.
@param self: The object pointer.
@param cr: A database cursor
@@ -143,7 +143,7 @@ class sale_open_invoice(osv.osv_memory):
def open_invoice(self, cr, uid, ids, context):
"""
@summary: To open invoice.
To open invoice.
@param self: The object pointer.
@param cr: A database cursor
@@ -31,7 +31,7 @@ class change_standard_price(osv.osv_memory):
def default_get(self, cr, uid, fields, context):
"""
@summary: To get default values for the object.
To get default values for the object.
@param self: The object pointer.
@param cr: A database cursor
@@ -50,8 +50,8 @@ class change_standard_price(osv.osv_memory):
def change_price(self, cr, uid, ids, context):
"""
@summary: Changes the Standard Price of Product.
And creates an account move accordingly.
Changes the Standard Price of Product.
And creates an account move accordingly.
@param self: The object pointer.
@param cr: A database cursor
@@ -68,6 +68,7 @@ class change_standard_price(osv.osv_memory):
lot_obj = self.pool.get('stock.report.prodlots')
move_obj = self.pool.get('account.move')
move_line_obj = self.pool.get('account.move.line')
data_obj = self.pool.get('ir.model.data')
res = self.read(cr, uid, ids[0], ['new_price'])
new_price = res.get('new_price',[])
@@ -85,7 +86,7 @@ class change_standard_price(osv.osv_memory):
for lots in lot_obj.browse(cr, uid, lot_ids):
qty += lots.name
if stock_input_acc and stock_output_acc:
move_id = move_obj.create(cr, uid, {'journal_id': data.categ_id.property_stock_journal.id})
if diff > 0:
@@ -125,7 +126,23 @@ class change_standard_price(osv.osv_memory):
else:
raise osv.except_osv(_('Warning!'),_('No Accounts are defined for '
'this product on its location.\nCan\'t create Move.'))
return {}
id2 = data_obj._get_id(cr, uid, 'account', 'view_move_tree')
id3 = data_obj._get_id(cr, uid, 'account', 'view_move_form')
if id2:
id2 = data_obj.browse(cr, uid, id2, context=context).res_id
if id3:
id3 = data_obj.browse(cr, uid, id3, context=context).res_id
return {
'view_type': 'form',
'view_mode': 'tree,form',
'res_model': 'account.move',
'res_id' : move_id,
'views': [(id3,'form'),(id2,'tree')],
'type': 'ir.actions.act_window',
}
change_standard_price()
+1 -1
View File
@@ -39,7 +39,7 @@ class stock_fill_inventory(osv.osv_memory):
def fill_inventory(self, cr, uid, ids, context):
"""
@summary: To fill stock inventory according to products available in the selected locations..
To fill stock inventory according to products available in the selected locations..
@param self: The object pointer.
@param cr: A database cursor
@@ -38,7 +38,7 @@ class stock_inventory_line_split(osv.osv_memory):
def _check_production_lot(self, cr, uid, context):
"""
@summary: to check the availability of production lot.
To check the availability of production lot.
@param self: The object pointer.
@param cr: A database cursor
@@ -63,7 +63,7 @@ inventory lines, make sure the production lot is assigned to this product.'))
def split_lines(self, cr, uid, ids, context):
"""
@summary: to split stock inventory lines according to production lot
To split stock inventory lines according to production lot
@param self: The object pointer.
@param cr: A database cursor
@@ -38,7 +38,7 @@ class inventory_set_stock_zero(osv.osv_memory):
def do_merge(self, cr, uid, ids, context):
"""
@summary:To set stock to Zero
To set stock to Zero
@param self: The object pointer.
@param cr: A database cursor
@@ -43,7 +43,7 @@ class stock_invoice_onshipping(osv.osv_memory):
def _get_type(self, cr, uid, context):
"""
@summary:To get invoice type
To get invoice type
@param self: The object pointer.
@param cr: A database cursor
@@ -82,7 +82,7 @@ class stock_invoice_onshipping(osv.osv_memory):
def create_invoice(self, cr, uid, ids, context):
"""
@summary:To create invoice
To create invoice
@param self: The object pointer.
@param cr: A database cursor
@@ -38,7 +38,7 @@ class stock_location_product(osv.osv_memory):
def action_open_window(self, cr, uid, ids, context):
"""
@summary:To open location wise product information specific to given duration
To open location wise product information specific to given duration
@param self: The object pointer.
@param cr: A database cursor
+5 -5
View File
@@ -37,7 +37,7 @@ class stock_move_track(osv.osv_memory):
def track_lines(self, cr, uid, ids, context={}):
"""
@summary:To track stock moves lines
To track stock moves lines
@param self: The object pointer.
@param cr: A database cursor
@@ -90,7 +90,7 @@ class stock_move_consume(osv.osv_memory):
def do_move_consume(self, cr, uid, ids, context={}):
"""
@summary:To move consumed products
To move consumed products
@param self: The object pointer.
@param cr: A database cursor
@@ -123,7 +123,7 @@ class stock_move_scrap(osv.osv_memory):
def move_scrap(self, cr, uid, ids, context={}):
"""
@summary:To move scraped products
To move scraped products
@param self: The object pointer.
@param cr: A database cursor
@@ -164,7 +164,7 @@ class split_in_production_lot(osv.osv_memory):
def split_lot(self, cr, uid, ids, context=None):
"""
@summary:To split a lot
To split a lot
@param self: The object pointer.
@param cr: A database cursor
@@ -180,7 +180,7 @@ class split_in_production_lot(osv.osv_memory):
def split(self, cr, uid, ids, move_ids, context=None):
"""
@summary:To split stock moves into production lot
To split stock moves into production lot
@param self: The object pointer.
@param cr: A database cursor