diff --git a/addons/procurement/__openerp__.py b/addons/procurement/__openerp__.py index f401b42c596..7dc9ddba08c 100644 --- a/addons/procurement/__openerp__.py +++ b/addons/procurement/__openerp__.py @@ -26,8 +26,9 @@ "author" : "OpenERP SA", "website" : "http://www.openerp.com", "category" : "Hidden/Dependency", - "depends" : ["base","process", "product", "stock"], + "depends" : ["process", "product", "stock"], "description": """ + This is the module for computing Procurements. ============================================== @@ -43,8 +44,7 @@ for the product which needs replenishment. This procurement will start a task, either a purchase order form for the supplier, or a production order depending on the product's configuration. """, - 'init_xml': [], - 'update_xml': [ + 'data': [ 'security/ir.model.access.csv', 'security/procurement_security.xml', 'procurement_data.xml', @@ -55,13 +55,13 @@ depending on the product's configuration. 'procurement_view.xml', 'procurement_workflow.xml', 'process/procurement_process.xml', - "company_view.xml", + 'company_view.xml', 'board_mrp_procurement_view.xml', ], - 'demo_xml': ['stock_orderpoint.xml'], + 'demo': ['stock_orderpoint.xml'], 'test': ['test/procurement.yml'], 'installable': True, - 'auto_install': False, + 'auto_install': True, 'certificate': '00954248826881074509', 'images': ['images/compute_schedulers.jpeg','images/config_companies_sched.jpeg', 'images/minimum_stock_rules.jpeg'], } diff --git a/addons/sale/__openerp__.py b/addons/sale/__openerp__.py index 95f92309577..b6067ff6c71 100644 --- a/addons/sale/__openerp__.py +++ b/addons/sale/__openerp__.py @@ -23,15 +23,15 @@ 'name': 'Sales Management', 'version': '1.0', 'category': 'Sales Management', - "sequence": 14, - "summary": "Quotations, Sale Orders, Invoicing", + 'sequence': 14, + 'summary': 'Quotations, Sale Orders, Invoicing', 'description': """ The base module to manage quotations and sales orders. ====================================================== Workflow with validation steps: ------------------------------- - * Quotation -> Sales order -> Invoice + * **Quotation** -> **Sales order** -> **Invoice** Create Invoice: --------------- @@ -51,9 +51,11 @@ Dashboard for Sales Manager that includes: 'author': 'OpenERP SA', 'website': 'http://www.openerp.com', 'images': ['images/deliveries_to_invoice.jpeg','images/sale_dashboard.jpeg','images/Sale_order_line_to_invoice.jpeg','images/sale_order.jpeg','images/sales_analysis.jpeg'], - 'depends': ['board', 'account_voucher'], - 'init_xml': [], - 'update_xml': ['wizard/sale_line_invoice.xml', + 'depends': ['account_voucher'], + 'data': [ + 'wizard/sale_make_invoice_advance.xml', + 'wizard/sale_line_invoice.xml', + 'wizard/sale_make_invoice.xml', 'security/sale_security.xml', 'security/ir.model.access.csv', 'sale_workflow.xml', @@ -68,10 +70,10 @@ Dashboard for Sales Manager that includes: 'edi/sale_order_action_data.xml', 'res_config_view.xml', ], - 'demo_xml': ['sale_demo.xml'], + 'demo': ['sale_demo.xml'], 'test': [ 'test/sale_order_demo.yml', - 'test/prepaid_order_policy.yml', + 'test/manual_order_policy.yml', 'test/cancel_order.yml', 'test/delete_order.yml', 'test/edi_sale_order.yml', diff --git a/addons/sale/report/sale_report.py b/addons/sale/report/sale_report.py index 0062ca4313c..54d5d9f278e 100644 --- a/addons/sale/report/sale_report.py +++ b/addons/sale/report/sale_report.py @@ -79,7 +79,7 @@ class sale_report(osv.osv): s.partner_id as partner_id, s.user_id as user_id, s.shop_id as shop_id, - s.company_id as company_id, + s.company_id as company_id, extract(epoch from avg(date_trunc('day',s.date_confirm)-date_trunc('day',s.create_date)))/(24*60*60)::decimal(16,2) as delay, s.state, t.categ_id as categ_id, @@ -103,7 +103,7 @@ class sale_report(osv.osv): s.partner_id, s.user_id, s.shop_id, - s.company_id, + s.company_id, s.state, s.pricelist_id, s.project_id diff --git a/addons/sale/res_config.py b/addons/sale/res_config.py index 150034dcf51..9ee28464145 100644 --- a/addons/sale/res_config.py +++ b/addons/sale/res_config.py @@ -27,9 +27,6 @@ class sale_configuration(osv.osv_memory): _inherit = 'sale.config.settings' _columns = { - 'group_invoice_so_lines': fields.boolean('generate invoices based on the sale order', - implied_group='sale.group_invoice_so_lines', - help="To allow your salesman to make invoices for sale order lines using the menu 'Lines to Invoice'."), 'timesheet': fields.boolean('prepare invoices based on timesheets', help = """For modifying account analytic view to show important data to project manager of services companies. You can also view the report of account analytic summary user-wise as well as month wise. @@ -40,11 +37,7 @@ class sale_configuration(osv.osv_memory): (650€/day for a developer), the duration (one year support contract). You will be able to follow the progress of the contract and invoice automatically. It installs the account_analytic_analysis module."""), - 'default_order_policy': fields.selection( - [('manual', 'Invoice Based on Sales Orders')], - 'The default invoicing method is', default_model='sale.order', - help="You can generate invoices based on sales orders."), - 'time_unit': fields.many2one('product.uom', 'The default working time unit for services is'), + 'time_unit': fields.many2one('product.uom', 'the default working time unit for services is'), 'group_sale_pricelist':fields.boolean("use pricelists to adapt your price per customers", implied_group='product.group_sale_pricelist', help="""Allows to manage different prices based on rules per category of customers. @@ -76,6 +69,8 @@ class sale_configuration(osv.osv_memory): But the possibility to change these values is still available. This installs the module analytic_user_function."""), 'module_project': fields.boolean("Project"), + 'module_sale_stock': fields.boolean("Sale and Warehouse Management", + help="""Allows you to Make Quotation, Sale Order using different Order policy and Manage Related Stock """), } def default_get(self, cr, uid, fields, context=None): @@ -94,11 +89,9 @@ class sale_configuration(osv.osv_memory): return ids and ids[0] or False _defaults = { - 'default_order_policy': 'manual', 'time_unit': _get_default_time_unit, } - def set_sale_defaults(self, cr, uid, ids, context=None): ir_model_data = self.pool.get('ir.model.data') wizard = self.browse(cr, uid, ids)[0] @@ -110,12 +103,7 @@ class sale_configuration(osv.osv_memory): if wizard.module_project and wizard.time_unit: user = self.pool.get('res.users').browse(cr, uid, uid, context) user.company_id.write({'project_time_mode_id': wizard.time_unit.id}) - - return {} - - def onchange_invoice_methods(self, cr, uid, ids, group_invoice_so_lines, context=None): - if group_invoice_so_lines: - return {'value': {'default_order_policy': 'manual'}} + return {} def onchange_task_work(self, cr, uid, ids, task_work, context=None): diff --git a/addons/sale/res_config_view.xml b/addons/sale/res_config_view.xml index 0b0cf9bc6aa..5b27ee554ee 100644 --- a/addons/sale/res_config_view.xml +++ b/addons/sale/res_config_view.xml @@ -11,23 +11,15 @@