odoo-11

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

戏子无情 提交于 2020-02-29 10:06: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) {

Odoo How to create a new model for Product Master with all the data in the product master

徘徊边缘 提交于 2020-01-06 06:01:07
问题 I want to create a separate view for Product Master.I created a new model and tried like this.But when I checked in database no data is present in my new model. Code class QuotationCreation(models.Model): _name='quotation.creation' xn_product_id = fields.Many2one('product.template') product=fields.Char(related = 'xn_product_id.name',string='Product') How can I tranfer all the data from product master to this model. I want to create a new model with existing data.How can I do that ? Thanks in

How to get computed field value in search orm in odoo

[亡魂溺海] 提交于 2020-01-06 05:42:46
问题 I have defined a computed field with compute method in odoo 10 and now i want to get its value in search orm but its value remain False, and when I tried store=True its value not being changed. if anyone has solution please let me know, I'll highly thankful. My code is: balance_amount = fields.Float(string="Balance Amount", compute='_compute_loan_amount') @api.one def _compute_loan_amount(self): total_paid = 0.0 for loan in self: for line in loan.loan_lines: if line.paid: total_paid += line

Why my Odoo 11 installation never finish?

强颜欢笑 提交于 2020-01-06 04:45:08
问题 I'm trying to install Odoo v11 on Ubuntu 16.04 through the following command: sudo apt-get install odoo The installation starts but it stays waiting when its arrive to "Setting up odoo (11.0.20181115)" step. Never finish. Thanks for your help 回答1: Best practice is to install odoo from source. I may provide you a procedure, just follow the link and your odoo will be installed from source. I have installed serveral times in Ubuntu and CentOS, both operating system. And there were no issues. 来源:

Odoo 11 ValueError: Expected singleton: %s" % record

亡梦爱人 提交于 2019-12-24 19:10:14
问题 I am creating a custom module where I want to get all the selected employee in the Payroll and send them a default email. For that I am doing this To show the action button <?xml version="1.0" encoding="utf-8"?> <odoo> <data> <record id="action_email_payslip" model="ir.actions.server"> <field name="name">Email</field> <field eval="2" name="sequence"/> <field name="view_mode">form</field> <field name="multi" eval="False"/> <field name="model_id" ref="hr_payroll.model_hr_payslip"/> <field name=

How to uninstall / update a module from command line odoo 11

依然范特西╮ 提交于 2019-12-24 10:49:56
问题 How can i uninstall / update a module from command line in odoo 11 ? i'm using ubuntu 16.04 . 回答1: To update module navigate to odoo folder which contains odoo-bin file then run command ./odoo-bin -u your_module -c /etc/your-odoo.conf To update all module you can use ./odoo-bin -u all -c /etc/your-odoo.conf you can also select which database by including -d database_name before -u in command 来源: https://stackoverflow.com/questions/56833832/how-to-uninstall-update-a-module-from-command-line

Odoo 11.0 modules: Missing dependencies: (2) [“web.form_relational”, “web.form_common”]

£可爱£侵袭症+ 提交于 2019-12-24 08:59:55
问题 I'm using the project_team module for my instance, and I'm getting this warning in the browser console: Non loaded modules: ["project_team.form_rel"] . Searching deep in the module i found that the origin of this problem in this: Missing dependencies: (2) ["web.form_relational", "web.form_common"] I could see that those modules are present in odoo 10.0 and it's not in 11.0. I think it requires an update, but i cannot find any information about how can we replace this two old modules in the

How to display your own kanban card in calendar view in Odoo 11?

夙愿已清 提交于 2019-12-24 06:21:05
问题 I am trying to customise the calendar view of the calendar.event model, whose code is: <record id="view_calendar_event_calendar" model="ir.ui.view"> <field name="name">calendar.event.calendar</field> <field name="model">calendar.event</field> <field name="priority" eval="2"/> <field name="arch" type="xml"> <calendar string="Meetings" date_start="start" date_stop="stop" date_delay="duration" all_day="allday" display="[name]" color="color_partner_id" attendee="partner_ids" avatar_model="res

How to create new attachments in Odoo? How do they work?

你离开我真会死。 提交于 2019-12-24 04:54:14
问题 I want to create an attachment from python code. So, what I have tried: self.env['ir.attachment'].create({ 'store_fname' : ??, 'checksum' : ?? }) What values should be passed for the column 'store_fname' and 'checksum' in ir_attachment table? 回答1: Those fields should be filled automatically: The store_fname is the folder and the name that the file uses when it is store in the filestore folder The checksum concides with the file name as well. It is the result of applying the sha1 algorythm to

Odoo 11 add different action menu in two different area for the same model

非 Y 不嫁゛ 提交于 2019-12-24 02:56:08
问题 In Odoo 11 I want two different action menu with two different functionality. In the hr payroll I wanted to add email payslip link thats why I used this code to add the email payslip action menu <?xml version="1.0" encoding="utf-8"?> <odoo> <data> <record id="action_email_payslip" model="ir.actions.server"> <field name="name">Email Payslip</field> <field name="model_id" ref="hr_payroll.model_hr_payslip"/> <field name="binding_model_id" ref="hr_payroll.model_hr_payslip"/> <field name="state"