odoo-10

Odoo installation ''error: [Errno 98] Address already in use''

空扰寡人 提交于 2020-08-05 06:49:18
问题 I followed this installation guide for odoo and I get an error in the very end when I run odoo-bin file it gives me this error teo@teo-Lenovo-Yoga-3-14:/opt/odoo/odoo-10.0$ ./odoo-bin 2017-07-06 15:03:20,583 3754 INFO ? odoo: Odoo version 10.0 2017-07-06 15:03:20,583 3754 INFO ? odoo: addons paths: ['/home/teo/.local/share/Odoo/addons/10.0', u'/opt/odoo/odoo-10.0/odoo/addons', u'/opt/odoo/odoo-10.0/addons'] 2017-07-06 15:03:20,583 3754 INFO ? odoo: database: default@default:default 2017-07-06

Odoo 12 Mail notification

十年热恋 提交于 2020-06-29 04:09:25
问题 In Odoo 12 I am trying to get a mail 90 days prior (before) to expiry of subscription and automatically I have created a email template and function for this but iam not receiving any mails In py file: license_renewal_date = fields.Date("Renewal Date",track_visibility='onchange') def exp_date1(self): before_90_days = datetime.datetime.now().date()- datetime.timedelta(days = 90) exp_90days = self.env['(crm.lead.extended)'].search([('(license_renewal_date)','=',before_90_days)]) template = self

Odoo 12 Mail notification

时光总嘲笑我的痴心妄想 提交于 2020-06-29 04:09:05
问题 In Odoo 12 I am trying to get a mail 90 days prior (before) to expiry of subscription and automatically I have created a email template and function for this but iam not receiving any mails In py file: license_renewal_date = fields.Date("Renewal Date",track_visibility='onchange') def exp_date1(self): before_90_days = datetime.datetime.now().date()- datetime.timedelta(days = 90) exp_90days = self.env['(crm.lead.extended)'].search([('(license_renewal_date)','=',before_90_days)]) template = self

How to auto login in Odoo's Web-module for res.user, not for res.partner?

北战南征 提交于 2020-05-12 07:18:10
问题 I am trying to login using token-based Auth, because we are using Odoo-web module in mobile-app. currently using GET-method url-passing approach which is "UNSECURE" on websites without SSL certificates and localhost-websites, as myurl.com?username=foo&password=bar How can I do that using Token based approach or passing credentials in POST-method, in Odoo-12? Edit 1: I found this authenticate() method in core-modules of odoo in http-controllers file and I am calling that only now, as: request

How to inherit or override js file in odoo?

[亡魂溺海] 提交于 2020-05-12 04:45:24
问题 I want to change a function in js file. How to do it? Is there any ways to override the function? addons/web/static/src/js/views/form_common.js , i want to change the function-get_search_result: function(search_val){} dataset.name_search(search_val, self.build_domain(), 'ilike', 160).done(function(_data) {self._search_create_popup("search", _data);} need to change the value 160 to something else Thanks in advance 回答1: There is a good answer/example on this question, which gives a pretty good

How to inherit or override js file in odoo?

爷,独闯天下 提交于 2020-05-12 04:45:08
问题 I want to change a function in js file. How to do it? Is there any ways to override the function? addons/web/static/src/js/views/form_common.js , i want to change the function-get_search_result: function(search_val){} dataset.name_search(search_val, self.build_domain(), 'ilike', 160).done(function(_data) {self._search_create_popup("search", _data);} need to change the value 160 to something else Thanks in advance 回答1: There is a good answer/example on this question, which gives a pretty good

Use name_get in odoo 9

筅森魡賤 提交于 2020-03-06 04:18:41
问题 How to concatenate Many2one field, open drop down list all car is visible. I need [id] and [name]. For example: [01] Audi, [02] BMW car_id = fields.Many2one('my.cars', 'Cars') @api.multi def name_get(self): ??? 回答1: Try with following: @api.multi def name_get(self): result = [] for record in self: name = '[' + str(record.id) + ']' + ' ' + record.name result.append((record.id, name)) return result Note: name_get() method must be set on my.cars object. 来源: https://stackoverflow.com/questions

More space is coming between Header and Page1 but from page2 it is correct

大憨熊 提交于 2020-03-04 15:36:50
问题 I tried creating a QWEB report with custom Paper Format but more space is coming between Header and Page1 but from page2 it is correct.I tried adjusting Margin Top and Header Spacing . Thanks in Advance Page Format <record id="paper_xn_so_preprint" model="report.paperformat"> <field name="name">Sale Order PrePrint</field> <field name="default" eval="True"/> <field name="format">custom</field> <field name="page_height">148</field> <field name="page_width">210</field> <field name="orientation"

How do I hide navbar and root-menu at sidebar from Odoo's web-backend module?

a 夏天 提交于 2020-02-29 10:09:09
问题 I am working on POS Point of sales module, I am opening an Iframe in mobile device to show POS screen but I wanted to hide navbar and sidebar of root-menu items, so normal users can use only POS dashboard. I have installed POS_Mobile snippet to make it responsive on mobile phones and there I tried writting JS code to hide it. but it's opening only when I start any POS-session by clicking on resume . I tried as: In file pos_mobile_template.xml , adding JQuery as: if ($(window).width() < 768) {

How do I hide navbar and root-menu at sidebar from Odoo's web-backend module?

拥有回忆 提交于 2020-02-29 10:08:07
问题 I am working on POS Point of sales module, I am opening an Iframe in mobile device to show POS screen but I wanted to hide navbar and sidebar of root-menu items, so normal users can use only POS dashboard. I have installed POS_Mobile snippet to make it responsive on mobile phones and there I tried writting JS code to hide it. but it's opening only when I start any POS-session by clicking on resume . I tried as: In file pos_mobile_template.xml , adding JQuery as: if ($(window).width() < 768) {