diff --git a/addons/account/account_unit_test.xml b/addons/account/account_unit_test.xml index 7795c2700cc..5fb1c55b669 100644 --- a/addons/account/account_unit_test.xml +++ b/addons/account/account_unit_test.xml @@ -8,7 +8,7 @@ draft - out_invoice + in_invoice Test invoice 1 diff --git a/addons/crm_partner_assign/res_partner_demo.xml b/addons/crm_partner_assign/res_partner_demo.xml index 633a5094722..776d7d6834c 100644 --- a/addons/crm_partner_assign/res_partner_demo.xml +++ b/addons/crm_partner_assign/res_partner_demo.xml @@ -1,17 +1,109 @@ - - First + + Bronze 1 - - - 10 + + Silver + 2 + + + Gold + 3 + + + Platinum + 4 + + + 10 + + + + 10 + + + + 10 + + + + + 10 + + + + 10 + + + + 10 + + + + + 10 + + + + 10 + + + + 10 + + + + + 10 + + + + 10 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/addons/l10n_be_hr_payroll/l10n_be_hr_payroll_demo.xml b/addons/l10n_be_hr_payroll/l10n_be_hr_payroll_demo.xml index 0cb05a218c3..6e9bed17ab2 100644 --- a/addons/l10n_be_hr_payroll/l10n_be_hr_payroll_demo.xml +++ b/addons/l10n_be_hr_payroll/l10n_be_hr_payroll_demo.xml @@ -19,6 +19,22 @@ single + + 54 Rue Jean Baptiste Colette BP + Attiches + 59551 + + onss@yourcompany.example.com + + + Shanghai Branch + Anshun Road 83, Room 1603 - + Shanghai + 200052 + + fiscal@yourcompany.example.com + + diff --git a/addons/l10n_uk/demo/demo.xml b/addons/l10n_uk/demo/demo.xml index ec262412c43..03f42b2c9ba 100644 --- a/addons/l10n_uk/demo/demo.xml +++ b/addons/l10n_uk/demo/demo.xml @@ -6,19 +6,24 @@ 12, Hill Lane HA4 7JW Ruislip - + +44 845 643 4548 08455274653 http://www.smartmode.co.uk + smartmode@yourcompany.example.com Vadim Chobanu - vadim@smartmode.co.uk + vadim@smartmode.example.com 1 default + 88 Wood Street, 10th floor + EC2V 7RS + London + diff --git a/addons/lunch/lunch_demo.xml b/addons/lunch/lunch_demo.xml index 7e5e2f3ac8f..546c21e0c22 100644 --- a/addons/lunch/lunch_demo.xml +++ b/addons/lunch/lunch_demo.xml @@ -18,10 +18,21 @@ Coin gourmand + Tirana + + Rr. e Durrësit, Pall. M.C. Inerte + Kati.1, Laprakë, Tirana, Shqipëri + coin.gourmand@yourcompany.example.com Pizza Inn + New Delhi TN + + #8, 1 st Floor,iscore complex + Gandhi Gramam,Gandhi Nagar + 607308 + pizza.inn@yourcompany.example.com diff --git a/addons/membership/__openerp__.py b/addons/membership/__openerp__.py index 4a0a80694b3..ba619564ee2 100644 --- a/addons/membership/__openerp__.py +++ b/addons/membership/__openerp__.py @@ -47,7 +47,10 @@ invoice and send propositions for membership renewal. 'report/report_membership_view.xml', 'process/membership_process.xml', ], - 'demo': ['membership_demo.xml'], + 'demo': [ + 'membership_demo.xml', + 'membership_demo.yml' + ], 'test': ['test/test_membership.yml'], 'installable': True, 'auto_install': False, diff --git a/addons/membership/membership_demo.xml b/addons/membership/membership_demo.xml index 852a9dbf2e0..7775050fb9e 100644 --- a/addons/membership/membership_demo.xml +++ b/addons/membership/membership_demo.xml @@ -42,21 +42,43 @@ + + + + + True + + True + + + True + + + True + - + - + + + + + + + + + diff --git a/addons/membership/membership_demo.yml b/addons/membership/membership_demo.yml new file mode 100644 index 00000000000..e21d70f0fd5 --- /dev/null +++ b/addons/membership/membership_demo.yml @@ -0,0 +1,15 @@ +- + create invoice and state is 'open' and pay some invoice +- + !python {model: res.partner}: | + invoice_ids = self.create_membership_invoice(cr, uid, [ref("base.res_partner_1"),ref("base.res_partner_14"),ref("base.res_partner_24"),ref("base.res_partner_19"),ref("base.res_partner_8"),ref("base.res_partner_5"),ref("base.res_partner_21"),ref("base.res_partner_6"),ref("base.res_partner_16"),ref("base.res_partner_10")], product_id=ref("membership_1"), datas={"amount":80.00}) + invoice_pool = self.pool.get('account.invoice') + invoice_pool.signal_invoice_open(cr, uid, invoice_ids) + + for id in invoice_ids[-4:]: + pay = invoice_pool.pay_and_reconcile(cr, uid, [id], + 9050.0, ref('account.cash'), ref('account.period_10'), + ref('account.bank_journal'), ref('account.cash'), + ref('account.period_10'), ref('account.bank_journal'), + name='Payment for test customer invoice') + assert (pay == True), "Incorrect Payment" diff --git a/addons/multi_company/multi_company_demo.xml b/addons/multi_company/multi_company_demo.xml index c772a8fd67d..0c7b200a867 100644 --- a/addons/multi_company/multi_company_demo.xml +++ b/addons/multi_company/multi_company_demo.xml @@ -4,18 +4,49 @@ OpenERP Editor + Plot No 61- Sector 8 + Faridabad (Delhi- NCR) + 121006 + + openerp.editor@yourcompany.example.com + OpenERP US + 2035 N. Evergreen Terrace + Arlington Heights + + openerp.us@yourcompany.example.com + OpenERP IN + Top Floor, Mehta Mahal,15 + Matthew Road, Opera House + Mumbai 27 + 400004 + + openerp.in@yourcompany.example.com + OpenERP BE + Avenue de l'Artisanat 2 + Braine-l'Alleud + 1420 + + openerp.be@yourcompany.example.com + Odoo + RM#25-502, 126, Yijiang Road + Pudong + Shanghai + 201 + + odoo@yourcompany.example.com + diff --git a/addons/portal/portal_demo.xml b/addons/portal/portal_demo.xml index 81118b52c73..bc75d6ed4a9 100644 --- a/addons/portal/portal_demo.xml +++ b/addons/portal/portal_demo.xml @@ -5,10 +5,14 @@ Demo Portal User - demo@portal.example.com + demo.portal@yourcompany.example.com none + Vivegnis + 4683 + + Rue Cesar de Paepe, 43 diff --git a/addons/product/product.py b/addons/product/product.py index a3fdcae11ac..35d152ccf64 100644 --- a/addons/product/product.py +++ b/addons/product/product.py @@ -564,6 +564,12 @@ class product_product(osv.osv): res[product.id] = (res[product.id] or 0.0) * (product.price_margin or 1.0) + product.price_extra return res + def _save_product_lst_price(self, cr, uid, product_id, field_name, field_value, arg, context=None): + field_value = field_value or 0.0 + product = self.browse(cr, uid, product_id, context=context) + list_price = (field_value - product.price_extra) / (product.price_margin or 1.0) + return self.write(cr, uid, [product_id], {'list_price': list_price}, context=context) + def _get_partner_code_name(self, cr, uid, ids, product, partner_id, context=None): for supinfo in product.seller_ids: if supinfo.name.id == partner_id: @@ -650,7 +656,7 @@ class product_product(osv.osv): 'incoming_qty': fields.function(_product_incoming_qty, type='float', string='Incoming'), 'outgoing_qty': fields.function(_product_outgoing_qty, type='float', string='Outgoing'), 'price': fields.function(_product_price, type='float', string='Price', digits_compute=dp.get_precision('Product Price')), - 'lst_price' : fields.function(_product_lst_price, type='float', string='Public Price', digits_compute=dp.get_precision('Product Price')), + 'lst_price' : fields.function(_product_lst_price, fnct_inv=_save_product_lst_price, type='float', string='Public Price', digits_compute=dp.get_precision('Product Price')), 'code': fields.function(_product_code, type='char', string='Internal Reference'), 'partner_ref' : fields.function(_product_partner_ref, type='char', string='Customer ref'), 'default_code' : fields.char('Internal Reference', size=64, select=True), diff --git a/addons/sale_crm/sale_crm_demo.xml b/addons/sale_crm/sale_crm_demo.xml index 0c2822719dd..25f653548d1 100644 --- a/addons/sale_crm/sale_crm_demo.xml +++ b/addons/sale_crm/sale_crm_demo.xml @@ -23,7 +23,7 @@ draft - out_invoice + in_invoice Test invoice 1 diff --git a/addons/stock/stock_demo.xml b/addons/stock/stock_demo.xml index eb5a6c46380..d4e0f68cc78 100644 --- a/addons/stock/stock_demo.xml +++ b/addons/stock/stock_demo.xml @@ -180,7 +180,7 @@ - Your Company, Chicago shop + Your Company, Chicago 1 @@ -205,7 +205,7 @@ - Your Company, Chicago shop + Your Company @@ -245,7 +245,7 @@ internal none - Your Company, Chicago shop + Your Company, Chicago manual diff --git a/addons/website/static/src/css/editor.css b/addons/website/static/src/css/editor.css index 7a71740671b..f05db4c88b8 100644 --- a/addons/website/static/src/css/editor.css +++ b/addons/website/static/src/css/editor.css @@ -1,3 +1,4 @@ +@charset "utf-8"; /* ---- CKEditor Minimal Reset ---- */ .navbar.navbar-inverse .cke_chrome { border: none; @@ -85,6 +86,10 @@ display: none; } +.cke_editable .css_editable_mode_hidden { + display: none; +} + .oe_carousel_options { cursor: pointer; position: absolute; diff --git a/addons/website/static/src/css/editor.sass b/addons/website/static/src/css/editor.sass index ea7bbb1480a..1e35c352374 100644 --- a/addons/website/static/src/css/editor.sass +++ b/addons/website/static/src/css/editor.sass @@ -70,6 +70,9 @@ .css_non_editable_mode_hidden display: none +.cke_editable .css_editable_mode_hidden + display: none + .oe_carousel_options cursor: pointer position: absolute diff --git a/addons/website/static/src/css/website.css b/addons/website/static/src/css/website.css index b5c176ee173..c7fa9cadf85 100644 --- a/addons/website/static/src/css/website.css +++ b/addons/website/static/src/css/website.css @@ -456,3 +456,40 @@ ul.nav-stacked > li > a { height: 100%; background-size: 100%; } + +.texttop { + vertical-align: top; +} + +table.well tr th { + text-align: right; + padding-right: 10px; +} +table.well tr td { + padding-right: 5px; +} + +.logo-img { + width: 220px; +} + +.oe_demo { + position: relative; +} +.oe_demo img { + width: 100%; +} +.oe_demo div { + position: absolute; + left: 0; + background-color: rgba(0, 0, 0, 0.4); + opacity: 0.85; + bottom: 0px; + width: 100%; + padding: 7px; + color: white; + font-weight: bold; +} +.oe_demo div a { + color: white; +} diff --git a/addons/website/static/src/css/website.sass b/addons/website/static/src/css/website.sass index fc309da3281..faa17d01968 100644 --- a/addons/website/static/src/css/website.sass +++ b/addons/website/static/src/css/website.sass @@ -337,4 +337,34 @@ ul.nav-stacked > li > a background-color: rgba(255, 0, 0, 0.8) .oe_img_bg height: 100% - background-size: 100% \ No newline at end of file + background-size: 100% + +.texttop + vertical-align: top + +table.well tr + th + text-align: right + padding-right: 10px + td + padding-right: 5px + +.logo-img + width: 220px + +.oe_demo + position: relative + img + width: 100% + div + position: absolute + left: 0 + background-color: rgba(0,0,0,0.4) + opacity: 0.85 + bottom: 0px + width: 100% + padding: 7px + color: white + font-weight: bold + a + color: white diff --git a/addons/website/views/snippets.xml b/addons/website/views/snippets.xml index 23c87af79ee..1af045bfa17 100644 --- a/addons/website/views/snippets.xml +++ b/addons/website/views/snippets.xml @@ -805,7 +805,7 @@
  • -
  • Choose a photo...
  • +
  • Choose an image...
  • diff --git a/addons/website/views/website_templates.xml b/addons/website/views/website_templates.xml index 7b03708b02d..79bcda04da7 100644 --- a/addons/website/views/website_templates.xml +++ b/addons/website/views/website_templates.xml @@ -267,7 +267,7 @@ diff --git a/addons/website_crm_partner_assign/__openerp__.py b/addons/website_crm_partner_assign/__openerp__.py index 75a3aa39776..a1c352385c2 100644 --- a/addons/website_crm_partner_assign/__openerp__.py +++ b/addons/website_crm_partner_assign/__openerp__.py @@ -8,7 +8,7 @@ Publish and Assign Partner ========================== """, 'author': 'OpenERP SA', - 'depends': ['website_partner', 'website_google_map'], + 'depends': ['crm_partner_assign','website_partner', 'website_google_map'], 'data': [ 'views/website_crm_partner_assign.xml', ], diff --git a/addons/website_crm_partner_assign/views/website_crm_partner_assign.xml b/addons/website_crm_partner_assign/views/website_crm_partner_assign.xml index 7e203f9dbb3..4df6b4a5998 100644 --- a/addons/website_crm_partner_assign/views/website_crm_partner_assign.xml +++ b/addons/website_crm_partner_assign/views/website_crm_partner_assign.xml @@ -21,6 +21,7 @@ +
    diff --git a/addons/website_customer/views/website_customer.xml b/addons/website_customer/views/website_customer.xml index 797f1e433db..1752a3b37ba 100644 --- a/addons/website_customer/views/website_customer.xml +++ b/addons/website_customer/views/website_customer.xml @@ -93,20 +93,18 @@ + + @@ -43,6 +45,7 @@ Project
    +

    @@ -54,6 +57,7 @@ 3

    +
    diff --git a/addons/website_sale/controllers/main.py b/addons/website_sale/controllers/main.py index 4139e229f07..23a36e1d57f 100644 --- a/addons/website_sale/controllers/main.py +++ b/addons/website_sale/controllers/main.py @@ -43,7 +43,6 @@ class CheckoutInfo(object): class Ecommerce(http.Controller): _order = 'website_sequence desc, website_published desc' - domain = [("sale_ok", "=", True)] def get_attribute_ids(self): attributes_obj = request.registry.get('product.attribute') @@ -281,7 +280,7 @@ class Ecommerce(http.Controller): self.change_pricelist(post.get('promo')) product_obj = request.registry.get('product.template') - domain = list(self.domain) + domain = request.registry.get('website').get_website_sale_domain() # remove product_product_consultant from ecommerce editable mode, this product never be publish ref = request.registry.get('ir.model.data').get_object_reference(request.cr, SUPERUSER_ID, 'product', 'product_product_consultant') diff --git a/addons/website_sale/models/website.py b/addons/website_sale/models/website.py index 3d2d1b30631..7fa1d7c5f1e 100644 --- a/addons/website_sale/models/website.py +++ b/addons/website_sale/models/website.py @@ -122,3 +122,7 @@ class Website(orm.Model): order.write(values) for line in order.order_line: self.add_product_to_cart(order_line_id=line.id, number=0) + + + def get_website_sale_domain(self): + return [("sale_ok", "=", True)] \ No newline at end of file diff --git a/addons/website_sale/views/website_sale.xml b/addons/website_sale/views/website_sale.xml index 2c4fd193715..70250b39f77 100644 --- a/addons/website_sale/views/website_sale.xml +++ b/addons/website_sale/views/website_sale.xml @@ -245,7 +245,7 @@