diff --git a/addons/account/__openerp__.py b/addons/account/__openerp__.py
index 271cc92e41c..7229f1d3364 100644
--- a/addons/account/__openerp__.py
+++ b/addons/account/__openerp__.py
@@ -49,6 +49,10 @@ module named account_voucher.
'security/ir.model.access.csv',
'account_menuitem.xml',
'account_wizard.xml',
+ 'report/account_invoice_report_view.xml',
+ 'report/account_entries_report_view.xml',
+ 'report/account_report_view.xml',
+ 'report/account_analytic_entries_report_view.xml',
'wizard/account_move_bank_reconcile_view.xml',
'wizard/account_use_model_view.xml',
'account_installer.xml',
@@ -106,10 +110,6 @@ module named account_voucher.
'process/supplier_invoice_process.xml',
'sequence_view.xml',
'company_view.xml',
- 'report/account_invoice_report_view.xml',
- 'report/account_entries_report_view.xml',
- 'report/account_report_view.xml',
- 'report/account_analytic_entries_report_view.xml',
'board_account_view.xml',
"wizard/account_report_profit_loss_view.xml",
"wizard/account_report_balance_sheet_view.xml"
diff --git a/addons/account/account_invoice_view.xml b/addons/account/account_invoice_view.xml
index 1db17ed16cf..bb9f15d1f88 100644
--- a/addons/account/account_invoice_view.xml
+++ b/addons/account/account_invoice_view.xml
@@ -308,9 +308,10 @@
-
+
+
diff --git a/addons/account/account_menuitem.xml b/addons/account/account_menuitem.xml
index fc4d350ea36..fac1a1eec4d 100644
--- a/addons/account/account_menuitem.xml
+++ b/addons/account/account_menuitem.xml
@@ -25,7 +25,7 @@
-
diff --git a/addons/base_setup/todo.py b/addons/base_setup/todo.py
index 5f293257a91..7be56f9eabe 100644
--- a/addons/base_setup/todo.py
+++ b/addons/base_setup/todo.py
@@ -86,7 +86,7 @@ class base_setup_company(osv.osv_memory):
'street2':fields.char('Street 2', size=128),
'zip':fields.char('Zip Code', size=24),
'city':fields.char('City', size=128),
- 'state_id':fields.selection(_get_all_states, 'State'),
+ 'state_id':fields.selection(_get_all_states, 'Fed. State'),
'country_id':fields.selection(_get_all_countries, 'Country'),
'email':fields.char('E-mail', size=64),
'phone':fields.char('Phone', size=64),
@@ -105,7 +105,7 @@ We suggest you to put bank information here:
IBAN: BE74 1262 0121 6907 - SWIFT: CPDF BE71 - VAT: BE0477.472.701'''),
'logo':fields.binary('Logo'),
'account_no':fields.char('Account No', size=64),
- 'website': fields.char('Web', size=64),
+ 'website': fields.char('Company Website', size=64, help="Exemple: http://openerp.com"),
}
def execute(self, cr, uid, ids, context=None):
diff --git a/addons/crm/crm.py b/addons/crm/crm.py
index 76ac424f1e0..71415038a58 100644
--- a/addons/crm/crm.py
+++ b/addons/crm/crm.py
@@ -670,85 +670,3 @@ class res_partner(osv.osv):
}
res_partner()
-
-class crm_case_section_custom(osv.osv):
- _name = "crm.case.section.custom"
- _description = 'Custom CRM Case Teams'
- _columns = {
- 'name': fields.char('Case Team',size=64, required=True, translate=True),
- 'code': fields.char('Team Code',size=8),
- 'active': fields.boolean('Active'),
- 'allow_unlink': fields.boolean('Allow Delete', help="Allows to delete non draft cases"),
- 'sequence': fields.integer('Sequence'),
- 'user_id': fields.many2one('res.users', 'Responsible User'),
- 'reply_to': fields.char('Reply-To', size=64, help="The email address put in the 'Reply-To' of all emails sent by OpenERP about cases in this section"),
- 'parent_id': fields.many2one('crm.case.section.custom', 'Parent Team'),
- 'note': fields.text('Notes'),
- }
-
- _defaults = {
- 'active': 1,
- 'allow_unlink': 1,
- }
-
- _sql_constraints = [
- ('code_uniq', 'unique (code)', 'The code of the team must be unique !')
- ]
-
- def _check_recursion(self, cr, uid, ids):
- level = 100
- while len(ids):
- cr.execute('SELECT DISTINCT parent_id FROM crm_case_section_custom '\
- 'WHERE id IN %s',
- (tuple(ids),))
- ids = filter(None, map(lambda x:x[0], cr.fetchall()))
- if not level:
- return False
- level -= 1
- return True
- _constraints = [
- (_check_recursion, 'Error ! You cannot create recursive sections.', ['parent_id'])
- ]
-
-crm_case_section_custom()
-
-
-class crm_case_custom(osv.osv, crm_case):
- _name = 'crm.case.custom'
- _inherit = 'mailgate.thread'
- _description = "Custom CRM Case"
-
- _columns = {
- 'id': fields.integer('ID', readonly=True),
- 'name': fields.char('Name',size=64,required=True),
- 'priority': fields.selection(AVAILABLE_PRIORITIES, 'Priority'),
- 'active': fields.boolean('Active'),
- 'description': fields.text('Description'),
- 'section_id': fields.many2one('crm.case.section.custom', 'Team', required=True, select=True),
- 'probability': fields.float('Probability (%)'),
- 'email_from': fields.char('Partner Email', size=128),
- 'email_cc': fields.char('CC', size=252),
- 'partner_id': fields.many2one('res.partner', 'Partner'),
- 'partner_address_id': fields.many2one('res.partner.address', 'Partner Contact', domain="[('partner_id','=',partner_id)]"),
- 'date': fields.datetime('Date'),
- 'create_date': fields.datetime('Created' ,readonly=True),
- 'date_deadline': fields.datetime('Deadline'),
- 'date_closed': fields.datetime('Closed', readonly=True),
- 'user_id': fields.many2one('res.users', 'Responsible'),
- 'state': fields.selection(AVAILABLE_STATES, 'Status', size=16, readonly=True),
- 'ref' : fields.reference('Reference', selection=_links_get, size=128),
- 'date_action_last': fields.datetime('Last Action', readonly=1),
- 'date_action_next': fields.datetime('Next Action', readonly=1),
- }
-
- _defaults = {
- 'active': 1,
- 'state': 'draft',
- 'priority': AVAILABLE_PRIORITIES[2][0],
- 'date': time.strftime('%Y-%m-%d %H:%M:%S'),
- }
-
-crm_case_custom()
-
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/crm/crm_lead.py b/addons/crm/crm_lead.py
index 263339c7121..23b1af57b28 100644
--- a/addons/crm/crm_lead.py
+++ b/addons/crm/crm_lead.py
@@ -102,7 +102,7 @@ class crm_lead(crm_case, osv.osv):
# Overridden from res.partner.address:
'partner_id': fields.many2one('res.partner', 'Partner', ondelete='set null',
select=True, help="Optional linked partner, usually after conversion of the lead"),
-
+
# From crm.case
'id': fields.integer('ID'),
'name': fields.char('Name', size=64),
@@ -125,7 +125,7 @@ class crm_lead(crm_case, osv.osv):
'channel_id': fields.many2one('res.partner.canal', 'Channel'),
'contact_name': fields.char('Contact Name', size=64),
- 'partner_name': fields.char("Partner Name", size=64),
+ 'partner_name': fields.char("Customer Name", size=64),
'optin': fields.boolean('Opt-In', help="If opt-in is checked, this contact has accepted to receive emails."),
'optout': fields.boolean('Opt-Out', help="If opt-out is checked, this contact has refused to receive emails or unsubscribed to a campaign."),
'type':fields.selection([
@@ -315,10 +315,8 @@ class crm_lead(crm_case, osv.osv):
vals.update(res)
res = self.create(cr, uid, vals, context)
-
message = _('A Lead created') + " '" + subject + "' " + _("from Mailgate.")
self.log(cr, uid, res, message)
-
attachents = msg.get('attachments', [])
for attactment in attachents or []:
data_attach = {
diff --git a/addons/crm/crm_lead_view.xml b/addons/crm/crm_lead_view.xml
index c1e37445c6c..3d996b990e7 100644
--- a/addons/crm/crm_lead_view.xml
+++ b/addons/crm/crm_lead_view.xml
@@ -49,18 +49,17 @@
-
-
@@ -75,7 +74,7 @@
-
+
@@ -95,7 +94,7 @@
-
+
+
-
-
diff --git a/addons/sale_crm/sale_crm_view.xml b/addons/sale_crm/sale_crm_view.xml
index 391d4141969..bac0051e0d1 100644
--- a/addons/sale_crm/sale_crm_view.xml
+++ b/addons/sale_crm/sale_crm_view.xml
@@ -1,47 +1,47 @@
-
+
-
- CRM - Opportunities - Quote Inherit
- crm.lead
- form
-
-
-
-
-
-
-
+
+ CRM - Opportunities - Quote Inherit
+ crm.lead
+ form
+
+
+
+
+
+
+
-
- sale.order.inherit
- sale.order
- form
-
-
-
-
-
-
-
+
+ sale.order.inherit
+ sale.order
+ form
+
+
+
+
+
+
+
-
- sale.order.list.select
- sale.order
- search
-
-
-
-
-
-
-
-
-
+
+ sale.order.list.select
+ sale.order
+ search
+
+
+
+
+
+
+
+
+
-
-
\ No newline at end of file
+
+
diff --git a/addons/sale_crm/test/sale_crm.yml b/addons/sale_crm/test/sale_crm.yml
index 86095929691..cc75b9e415c 100644
--- a/addons/sale_crm/test/sale_crm.yml
+++ b/addons/sale_crm/test/sale_crm.yml
@@ -23,14 +23,6 @@
-
!record {model: crm.make.sale, id: crm_make_sale_0}:
partner_id: base.res_partner_4
- sale_order_line:
- - name: '[KEYA] Keyboard - AZERTY'
- price_unit: 7.0
- product_uom: product.product_uom_unit
- product_uom_qty: 50.0
- delay: 7.0
- product_id: product.product_product_24
- type: make_to_stock
shop_id: sale.shop
-
Then I click on the 'Ok' button of wizard
@@ -47,4 +39,4 @@
-
!python {model: crm.lead}: |
crm = self.browse(cr, uid, ref("crm_lead_opportunity0"))
- assert (crm.ref),("sale order has not been created")
\ No newline at end of file
+ assert (crm.ref),("sale order has not been created")
diff --git a/addons/sale_crm/wizard/crm_make_sale.py b/addons/sale_crm/wizard/crm_make_sale.py
index 089a2389703..933200d1883 100644
--- a/addons/sale_crm/wizard/crm_make_sale.py
+++ b/addons/sale_crm/wizard/crm_make_sale.py
@@ -76,7 +76,6 @@ class crm_make_sale(osv.osv_memory):
case_obj = self.pool.get('crm.lead')
sale_obj = self.pool.get('sale.order')
partner_obj = self.pool.get('res.partner')
- sale_line_obj = self.pool.get('sale.order.line')
data = context and context.get('active_ids', []) or []
@@ -115,30 +114,10 @@ class crm_make_sale(osv.osv_memory):
if partner.id:
vals['user_id'] = partner.user_id and partner.user_id.id or uid
- if make.analytic_account.id:
- vals['project_id'] = make.analytic_account.id
new_id = sale_obj.create(cr, uid, vals)
- for line in make.sale_order_line:
- value = {
- 'order_id': new_id,
- 'name': line.name,
- 'delay': line.delay,
- 'product_id': line.product_id and line.product_id.id or False,
- 'price_unit': line.price_unit,
- 'tax_id': line.tax_id and [(6, 0, map(lambda x: x.id, line.tax_id))] or False,
- 'type': line.type,
- 'product_uom_qty': line.product_uom_qty,
- 'product_uom': line.product_uom.id,
- 'product_uos_qty': line.product_uos_qty,
- 'product_uos': line.product_uos and line.product_uos.id or False,
- 'product_packaging': line.product_packaging and line.product_packaging.id or False,
- 'discount': line.discount,
- 'notes': line.notes
- }
- sale_line_obj.create(cr, uid, value, context=context)
case_obj.write(cr, uid, [case.id], {'ref': 'sale.order,%s' % new_id})
new_ids.append(new_id)
- message = _('Opportunity ') + " '" + case.name + "' "+ _("is converted to Sales Quotation.")
+ message = _('Opportunity ') + " '" + case.name + "' "+ _("is converted to Quotation.")
self.log(cr, uid, case.id, message)
if make.close:
@@ -178,8 +157,6 @@ class crm_make_sale(osv.osv_memory):
_columns = {
'shop_id': fields.many2one('sale.shop', 'Shop', required=True),
'partner_id': fields.many2one('res.partner', 'Customer', required=True),
- 'sale_order_line': fields.one2many('sale.order.make.line', 'opportunity_order_id', 'Product Line'),
- 'analytic_account': fields.many2one('account.analytic.account', 'Analytic Account'),
'close': fields.boolean('Close Opportunity', help='Check this to close the opportunity after having created the sale order.'),
}
_defaults = {
@@ -189,48 +166,3 @@ class crm_make_sale(osv.osv_memory):
}
crm_make_sale()
-
-class sale_order_make_line(osv.osv_memory):
-
- def product_id_change(self, cr, uid, ids, product, qty=0,
- uom=False, qty_uos=0, uos=False, name='', partner_id=False,
- lang=False, update_tax=True, packaging=False, flag=False):
- if not partner_id:
- raise osv.except_osv(_('No Customer Defined !'), _('You have to select a customer in the sale form !\nPlease set one customer before choosing a product.'))
- date_order = time.strftime('%Y-%m-%d')
- part = self.pool.get('res.partner').browse(cr, uid, partner_id)
- pricelist = part.property_product_pricelist and part.property_product_pricelist.id or False
- fiscal_position = part.property_account_position and part.property_account_position.id or False
- return self.pool.get('sale.order.line').product_id_change(cr, uid, ids, pricelist, product, qty, uom, qty_uos, uos, name, partner_id, lang, update_tax, date_order, packaging, fiscal_position, flag)
-
- _name = 'sale.order.make.line'
- _description = 'Opportunity Sale Order Line'
- _columns = {
- 'opportunity_order_id': fields.many2one('crm.make.sale', 'Order Reference', required=True, ondelete='cascade', select=True, readonly=True,),
- 'name': fields.char('Description', size=256, required=True, select=True,),
- 'delay': fields.float('Delivery Lead Time', required=True, help="Number of days between the order confirmation the the shipping of the products to the customer"),
- 'product_id': fields.many2one('product.product', 'Product', domain=[('sale_ok', '=', True)], change_default=True),
- 'price_unit': fields.float('Unit Price', required=True, digits_compute= dp.get_precision('Sale Price')),
- 'tax_id': fields.many2many('account.tax', 'sale_order_tax', 'order_line_id', 'tax_id', 'Taxes'),
- 'type': fields.selection([('make_to_stock', 'from stock'), ('make_to_order', 'on order')], 'Procurement Method', required=True),
- 'product_uom_qty': fields.float('Quantity (UoM)', digits=(16, 2), required=True,),
- 'product_uom': fields.many2one('product.uom', 'Unit of Measure ', required=True,),
- 'product_uos_qty': fields.float('Quantity (UoS)'),
- 'product_uos': fields.many2one('product.uom', 'Product UoS'),
- 'product_packaging': fields.many2one('product.packaging', 'Packaging'),
- 'discount': fields.float('Discount (%)', digits=(16, 2)),
- 'notes': fields.text('Notes'),
- }
- _order = 'sequence, id'
- _defaults = {
- 'discount': 0.0,
- 'delay': 0.0,
- 'product_uom_qty': 1,
- 'product_uos_qty': 1,
- 'type': 'make_to_stock',
- 'product_packaging': False
- }
-
-sale_order_make_line()
-
-# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
diff --git a/addons/sale_crm/wizard/crm_make_sale_view.xml b/addons/sale_crm/wizard/crm_make_sale_view.xml
index 54550a08bf1..a5561ac0e62 100644
--- a/addons/sale_crm/wizard/crm_make_sale_view.xml
+++ b/addons/sale_crm/wizard/crm_make_sale_view.xml
@@ -16,54 +16,12 @@
groups="base.group_extended"/>
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
-
+
+