diff options
| author | Amit Patel <apa@tinyerp.com> | 2012-10-25 12:31:33 +0530 |
|---|---|---|
| committer | Amit Patel <apa@tinyerp.com> | 2012-10-25 12:31:33 +0530 |
| commit | 3e4e8006de2c4eb4ab77bbc3692ba0b9d3d4e4c8 (patch) | |
| tree | f9ec948c2332fbbfc7458e903d534526a50297cc /addons/purchase | |
| parent | b59e7d17ed945dfadaf9f6140789bb2ecbca2617 (diff) | |
| parent | 013f14931bdc13c63fa6e169cf7fff364d5dda5a (diff) | |
[MERGE]:trunk
bzr revid: apa@tinyerp.com-20121025070133-x6g4can9le7p4d5z
Diffstat (limited to 'addons/purchase')
| -rw-r--r-- | addons/purchase/purchase.py | 10 | ||||
| -rw-r--r-- | addons/purchase/purchase_view.xml | 6 | ||||
| -rw-r--r-- | addons/purchase/report/purchase_report.py | 2 |
3 files changed, 9 insertions, 9 deletions
diff --git a/addons/purchase/purchase.py b/addons/purchase/purchase.py index db6ed8b80be..0f0e99244a5 100644 --- a/addons/purchase/purchase.py +++ b/addons/purchase/purchase.py @@ -167,7 +167,7 @@ class purchase_order(osv.osv): 'location_id': fields.many2one('stock.location', 'Destination', required=True, domain=[('usage','<>','view')]), 'pricelist_id':fields.many2one('product.pricelist', 'Pricelist', required=True, states={'confirmed':[('readonly',True)], 'approved':[('readonly',True)],'done':[('readonly',True)]}, help="The pricelist sets the currency used for this purchase order. It also computes the supplier price for the selected products/quantities."), 'currency_id': fields.related('pricelist_id', 'currency_id', type="many2one", relation="res.currency", readonly=True, required=True), - 'state': fields.selection(STATE_SELECTION, 'Status', readonly=True, help="The state of the purchase order or the quotation request. A quotation is a purchase order in a 'Draft' state. Then the order has to be confirmed by the user, the state switch to 'Confirmed'. Then the supplier must confirm the order to change the state to 'Approved'. When the purchase order is paid and received, the state becomes 'Done'. If a cancel action occurs in the invoice or in the reception of goods, the state becomes in exception.", select=True), + 'state': fields.selection(STATE_SELECTION, 'Status', readonly=True, help="The status of the purchase order or the quotation request. A quotation is a purchase order in a 'Draft' status. Then the order has to be confirmed by the user, the status switch to 'Confirmed'. Then the supplier must confirm the order to change the status to 'Approved'. When the purchase order is paid and received, the status becomes 'Done'. If a cancel action occurs in the invoice or in the reception of goods, the status becomes in exception.", select=True), 'order_line': fields.one2many('purchase.order.line', 'order_id', 'Order Lines', states={'approved':[('readonly',True)],'done':[('readonly',True)]}), 'validator' : fields.many2one('res.users', 'Validated by', readonly=True), 'notes': fields.text('Terms and Conditions'), @@ -809,10 +809,10 @@ class purchase_order_line(osv.osv): 'account_analytic_id':fields.many2one('account.analytic.account', 'Analytic Account',), 'company_id': fields.related('order_id','company_id',type='many2one',relation='res.company',string='Company', store=True, readonly=True), 'state': fields.selection([('draft', 'Draft'), ('confirmed', 'Confirmed'), ('done', 'Done'), ('cancel', 'Cancelled')], 'Status', required=True, readonly=True, - help=' * The \'Draft\' state is set automatically when purchase order in draft state. \ - \n* The \'Confirmed\' state is set automatically as confirm when purchase order in confirm state. \ - \n* The \'Done\' state is set automatically when purchase order is set as done. \ - \n* The \'Cancelled\' state is set automatically when user cancel purchase order.'), + help=' * The \'Draft\' status is set automatically when purchase order in draft status. \ + \n* The \'Confirmed\' status is set automatically as confirm when purchase order in confirm status. \ + \n* The \'Done\' status is set automatically when purchase order is set as done. \ + \n* The \'Cancelled\' status is set automatically when user cancel purchase order.'), 'invoice_lines': fields.many2many('account.invoice.line', 'purchase_order_line_invoice_rel', 'order_line_id', 'invoice_id', 'Invoice Lines', readonly=True), 'invoiced': fields.boolean('Invoiced', readonly=True), 'partner_id': fields.related('order_id','partner_id',string='Partner',readonly=True,type="many2one", relation="res.partner", store=True), diff --git a/addons/purchase/purchase_view.xml b/addons/purchase/purchase_view.xml index 1ec1cd452c9..6c766e1d828 100644 --- a/addons/purchase/purchase_view.xml +++ b/addons/purchase/purchase_view.xml @@ -82,7 +82,7 @@ action="base.action_partner_supplier_form" sequence="15"/> <!--Inventory control--> - <menuitem id="menu_procurement_management_inventory" name="Receive Products" + <menuitem id="menu_procurement_management_inventory" name="Incoming Products" parent="base.menu_purchase_root" sequence="4"/> <menuitem action="stock.action_picking_tree4" id="menu_action_picking_tree4" parent="menu_procurement_management_inventory" name="Incoming Shipments" sequence="9"/> @@ -264,7 +264,7 @@ <label for="notes"/> <field name="notes"/> </page> - <page string="Reception & Invoicing"> + <page string="Incoming Shipments & Invoices"> <group> <group> <field name="dest_address_id" string="Customer Address" on_change="onchange_dest_address_id(dest_address_id)"/> @@ -358,7 +358,7 @@ <field name="company_id" groups="base.group_multi_company" widget="selection"/> <field name="minimum_planned_date" invisible="context.get('quotation_only', False)"/> <field name="origin"/> - <field name="amount_untaxed" sum="Total Untaxed amount"/> + <field name="amount_untaxed" sum="Total Untaxed amount" string="Untaxed"/> <field name="amount_total" sum="Total amount"/> <field name="state"/> </tree> diff --git a/addons/purchase/report/purchase_report.py b/addons/purchase/report/purchase_report.py index f4bd4fee425..76ffddcb85f 100644 --- a/addons/purchase/report/purchase_report.py +++ b/addons/purchase/report/purchase_report.py @@ -40,7 +40,7 @@ class purchase_report(osv.osv): ('except_picking', 'Shipping Exception'), ('except_invoice', 'Invoice Exception'), ('done', 'Done'), - ('cancel', 'Cancelled')],'Order State', readonly=True), + ('cancel', 'Cancelled')],'Order Status', readonly=True), 'product_id':fields.many2one('product.product', 'Product', readonly=True), 'warehouse_id': fields.many2one('stock.warehouse', 'Warehouse', readonly=True), 'location_id': fields.many2one('stock.location', 'Destination', readonly=True), |
