openerp-8

How to remove the Powered by Odoo #1 Open Source eCommerce footer from front end of Odoo 8?

橙三吉。 提交于 2021-02-06 12:56:40
问题 How do you remove the backlinks from the public front end of Odoo 8? Location: lower right corner of the page, in the footer. HTML Code: <div class="pull-right"> Powered by <a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>, the #1 <a href="http://www.odoo.com/page/e-commerce">Open Source eCommerce</a>. </div> These backlinks are shown to all search engines, and to anybody visiting the site, who is not logged in to the site!! And when you log in, Odoo

How to remove the Powered by Odoo #1 Open Source eCommerce footer from front end of Odoo 8?

江枫思渺然 提交于 2021-02-06 12:56:10
问题 How do you remove the backlinks from the public front end of Odoo 8? Location: lower right corner of the page, in the footer. HTML Code: <div class="pull-right"> Powered by <a class="label label-danger" href="http://www.odoo.com/page/website-builder">Odoo</a>, the #1 <a href="http://www.odoo.com/page/e-commerce">Open Source eCommerce</a>. </div> These backlinks are shown to all search engines, and to anybody visiting the site, who is not logged in to the site!! And when you log in, Odoo

Set default value of field depends on other field in odoo

拜拜、爱过 提交于 2020-01-17 06:32:38
问题 I am setting up default value of analytics_id in account.move.line by below code class account_move_line(models.Model): _inherit = 'account.move.line' _name = "account.move.line" def _get_default_account(self, cr, uid, context=None): obj = self.pool.get('account.move') value = obj.browse(cr, uid, uid) if value.move_id.debit>0 or value.move_id.credit<0: res = self.pool.get('account.analytic.plan.instance').search(cr, uid, [('code','=','LAL')], context=context) return res and res[0] or False

Set default value of field depends on other field in odoo

馋奶兔 提交于 2020-01-17 06:32:08
问题 I am setting up default value of analytics_id in account.move.line by below code class account_move_line(models.Model): _inherit = 'account.move.line' _name = "account.move.line" def _get_default_account(self, cr, uid, context=None): obj = self.pool.get('account.move') value = obj.browse(cr, uid, uid) if value.move_id.debit>0 or value.move_id.credit<0: res = self.pool.get('account.analytic.plan.instance').search(cr, uid, [('code','=','LAL')], context=context) return res and res[0] or False

How to set store trigger for computed fields in Odoo 8?

房东的猫 提交于 2020-01-16 12:09:05
问题 I started using the new API of Odoo v8.0 but I cannot find useful information about store trigger in computed fields like this (for v7.0 and v6.1): Store Parameter in Odoo v6 In Odoo v8.0, I tried to use the same syntax of v7.0 but I couldn't get it to work because the JSON response cannot be returned back to the web client: <function _store_trigger> is not JSON serializable. I read then that store parameter had been converted to Boolean only field (no dict for triggers): Odoo store function:

How do I properly create, write or unlink records for many2many field using the new API?

♀尐吖头ヾ 提交于 2020-01-14 14:25:11
问题 Can someone give me an example to manipulate a many2many field using the new API? I've tried to read the Documentation to no avail. Here are my example classes: from openerp import models, fields, api, _ class example_class_one(models.Model): _name = "example.class.one" name = fields.Char('Name') value = fields.Float('Value') example_class_one() class example_class_two(models.Model): _name = "example.class.two" name = fields.Char('Name') example_class_ones = fields.Many2many('example.class

Hide the Form View in OpenErp (formally as Odoo)

喜欢而已 提交于 2020-01-06 16:29:08
问题 How can I hide the Form View Based on User Access I have created one user (student) in school Management System in openerp. The Admin user is the default user in OpenErp. Admin have all the access rights to acees the Tree view and Form View while How can I restrict the the student user to view only tree view. My Question is how can i hide the Form View When the student user is logged into the system.I wanted to display only the the tree view when he or she is logged into the system while

Traceback with odoo and google calendar

£可爱£侵袭症+ 提交于 2020-01-05 17:02:15
问题 I have configured my Odoo app to work with Google Calendar. Now, I can add new events from my Odoo calendar, it's synch with google. When i'm on a customer page, I have a calendar icon to add a meet. When I add an event and synch, I have this callback An idea on where does it comes from ? Thanks 来源: https://stackoverflow.com/questions/33804445/traceback-with-odoo-and-google-calendar

Traceback with odoo and google calendar

为君一笑 提交于 2020-01-05 16:57:49
问题 I have configured my Odoo app to work with Google Calendar. Now, I can add new events from my Odoo calendar, it's synch with google. When i'm on a customer page, I have a calendar icon to add a meet. When I add an event and synch, I have this callback An idea on where does it comes from ? Thanks 来源: https://stackoverflow.com/questions/33804445/traceback-with-odoo-and-google-calendar

I can't find my module in Odoo

那年仲夏 提交于 2020-01-04 05:41:32
问题 I have created a module in Odoo 8 following a tutorial. I activated the technical features in Users then I've updated the module list but it doesn't appear in the list. What should I do ? 回答1: Track the following: checkout __init__.py , __openerp__.py files weather any server track-back appear or not find the path of addons module is your module is at same place or path? give read/write/execute permission for that module restart your server Go to browser, from GUI, Setting => Modules =>