[MERGE] forward port of branch 8.0 up to c92e70b
authorChristophe Simonis <chs@odoo.com>
Mon, 17 Nov 2014 16:31:12 +0000 (17:31 +0100)
committerChristophe Simonis <chs@odoo.com>
Mon, 17 Nov 2014 16:31:12 +0000 (17:31 +0100)
20 files changed:
1  2 
addons/account/account.py
addons/account_voucher/account_voucher.py
addons/crm/crm_lead.py
addons/fleet/fleet.py
addons/hr_recruitment/hr_recruitment.py
addons/hr_timesheet/security/ir.model.access.csv
addons/mrp/mrp.py
addons/point_of_sale/static/src/css/pos.css
addons/point_of_sale/static/src/js/models.js
addons/product/product.py
addons/project_timesheet/project_timesheet.py
addons/purchase/purchase.py
addons/sale/sale.py
addons/stock/stock.py
addons/stock/stock_view.xml
addons/web/static/src/js/view_form.js
addons/website/views/website_templates.xml
addons/website_sale/controllers/main.py
openerp/addons/base/ir/ir_model.py
openerp/models.py

Simple merge
@@@ -787,9 -791,9 +787,9 @@@ class crm_lead(format_address, osv.osv)
                  continue
              if not partner_id and action == 'create':
                  partner_id = self._create_lead_partner(cr, uid, lead, context)
 -                self.pool['res.partner'].write(cr, uid, partner_id, {'section_id': lead.section_id and lead.section_id.id or False})
 +                self.pool['res.partner'].write(cr, uid, partner_id, {'team_id': lead.team_id and lead.team_id.id or False})
              if partner_id:
-                 lead.write({'partner_id': partner_id}, context=context)
+                 lead.write({'partner_id': partner_id})
              partner_ids[lead.id] = partner_id
          return partner_ids
  
Simple merge
@@@ -9,4 -9,5 +9,5 @@@ access_product_template_hr_timesheet,pr
  access_product_uom_hr_timesheet,product.uom.hr.timesheet,product.model_product_uom,base.group_hr_user,1,1,1,1\r
  access_account_fiscalyear_hr_user,account.account.fiscalyear.user,account.model_account_fiscalyear,base.group_hr_user,1,1,1,1\r
  access_hr_analytic_timesheet_user,hr.analytic.timesheet.user,model_hr_analytic_timesheet,base.group_user,1,1,1,0\r
 -access_account_analytic_journal_user,account.account.analytic.journal.user,account.model_account_analytic_journal,base.group_user,1,0,0,0\r
 +access_account_analytic_journal_user,account.account.analytic.journal.user,analytic.model_account_analytic_journal,base.group_user,1,0,0,0\r
+ access_hr_timesheet_report,hr.timesheet.report,model_hr_timesheet_report,base.group_hr_manager,1,1,0,0\r
Simple merge
@@@ -1169,9 -1118,9 +1169,12 @@@ td 
  }
  
  @media print {
+     * {
+         color: black !important;
+     }
 +    body {
 +        margin: 0;
 +    }
      .oe_leftbar,
      .pos .pos-topheader, 
      .pos .pos-leftpane, 
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
@@@ -179,7 -181,12 +179,8 @@@ class website_sale(http.Controller)
          if search:
              post["search"] = search
          if category:
+             category = pool['product.public.category'].browse(cr, uid, int(category), context=context)
              url = "/shop/category/%s" % slug(category)
 -        pager = request.website.pager(url=url, total=product_count, page=page, step=PPG, scope=7, url_args=post)
 -        product_ids = product_obj.search(cr, uid, domain, limit=PPG, offset=pager['offset'], order='website_published desc, website_sequence desc', context=context)
 -        products = product_obj.browse(cr, uid, product_ids, context=context)
  
          style_obj = pool['product.style']
          style_ids = style_obj.search(cr, uid, [], context=context)
Simple merge
Simple merge