odoo

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

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

天涯浪子 提交于 2020-01-14 04:52:47
问题 I have just asked this: How to display your own kanban card in calendar view in Odoo 11? I thought I was working with version 11 but it was 10, that is the reason why templates tag did not work. And of course I had to do it for version 10. The problem is that both versions are quite different at this point, and templates tag does not exist. MY PURPOSE I want to show a customised card in a calendar view ( view_calendar_event_calendar , from the calendar.event model). What templates tag does

Open another module form view with button

偶尔善良 提交于 2020-01-14 03:17:11
问题 I am trying to open another model form view but receiving error external id not found. in the py file class ru_assignments(models.Model): name = 'ru.assignments class ru_assignments_sub(models.Model): _name = 'ru.assignments.sub' This is ru_assignments_sub xml <record model="ir.actions.act_window" id="action_sub"> <field name="name">Assignment Sub</field> <field name="type">ir.actions.act_window</field> <field name="res_model">ru.assignments.sub</field> <field name="view_type">form</field>

Odoo: Make it impossible to edit a record in tree view?

邮差的信 提交于 2020-01-14 02:34:06
问题 In Odoo you can make it impossible to create or delete records from the tree view like this: <tree create="false" delete="false"> <field name="create_date" readonly="True"/> </tree> But I can still click the records and go to the form of that record. Is there a way to make it impossible to click those records and edit them? 回答1: Found it already, need to use editable="false" : <tree create="false" delete="false" editable="false"> </tree> 回答2: Hear it is possible to editable of your tree view

Why am I getting “Internal Server Error” running two Odoo instances (same domain but different ports)?

偶尔善良 提交于 2020-01-11 08:43:28
问题 I have two instances of Odoo in a server in the cloud. If I make the following steps I get "Internal Server Error": I make login in the first instance ( http://111.222.33.44:3333 ) I close the session I load the address of the second instance in the same browser ( http://111.222.33.44:4444 ) If I want to work in the second instance (in another port), I need to remove the browser cookies first to acces to the other Odoo instance. If do this everything works fine. If I load them in differents

Backup Odoo db from within odoo

微笑、不失礼 提交于 2020-01-11 04:39:08
问题 I need to backup the current db while logged into odoo. I should be able to do it using a button, so that suppose I click on the button, it works the same way as odoo default backup in manage databases, but I should be able to do it from within while logged in. Is there any way to achieve this? I do know that this is possible from outside odoo using bash but thats not what I want. 回答1: By using this module you can backup your database periodically https://www.odoo.com/apps/modules/7.0/crontab

Odoo - prevent button from closing wizard

偶尔善良 提交于 2020-01-10 14:16:28
问题 I have a transient model that serves as a dialog. In my form view I have a button like this: <footer states="partnerId"> <button name="check_tax_id" string="Tovább" type="object"/> </footer> The button invokes this function (I can confirm it actually invokes): @api.one def check_tax_id(self, context=None): self.state = "partnerDetails" return None; My problem is that the dialog window is closed immediately once I click this button! What am I doing wrong? 回答1: Solution 0 @api.multi def check

Odoo - prevent button from closing wizard

送分小仙女□ 提交于 2020-01-10 14:16:22
问题 I have a transient model that serves as a dialog. In my form view I have a button like this: <footer states="partnerId"> <button name="check_tax_id" string="Tovább" type="object"/> </footer> The button invokes this function (I can confirm it actually invokes): @api.one def check_tax_id(self, context=None): self.state = "partnerDetails" return None; My problem is that the dialog window is closed immediately once I click this button! What am I doing wrong? 回答1: Solution 0 @api.multi def check

基于开源odoo 的 ERP实施和二次开发

梦想的初衷 提交于 2020-01-10 13:16:51
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> ERP 模块功能介绍 销售管理: 线索管理、商机进展、客户管理、销售计划、报价管理、合同管理、催款管理、销售退货、售后管理、通话记录、产品管理、团队管理、销售分析、功能自定义 采购管理: 供应商管理、价格策略、询价管理、预购管理、采购管理、采购审批、到货提醒、到货入库、来料质检、采购退货、采购分析、功能自定义 库存管理: 入库管理、出库管理、来料质检、库存盘点、库间调拨、借货还货、序列号管理、发货管理、库存查看、产品维护、功能自定义 财务管理: 总账管理、凭证管理、往来现金、收款管理、付款管理、销售退款、采购退款、预算管理、资产管理、催款管理、财务账表、财务报表、功能自定义 客户管理: 客户策略、客户添加、客户管理、客户分配、客户领用、客户共享、线索挖掘、商机进展、信用管理、团队管理、联系人管理、功能自定义 生产管理: 生产预测、物料清单、工作中心、工艺路线、生产订单、生产下单、生产派工、车间管理、委外加工、进度跟踪、质量检验、成本核算、功能自定义 项目管理: 项目添加、项目看板、项目任务、项目问题、项目指派、项目跟进、项目阶段、项目变更、项目分类、项目共享、项目列表、项目甘特图、项目分析、功能自定义 零售管理: 快速创建、在线管理、离线管理、可兼容性、客户追踪、会员管理、客户服务、发票打印、订单传输、库存管理

odoo10 addon开发流程

回眸只為那壹抹淺笑 提交于 2020-01-10 06:18:03
odoo addon开发流程 创建一个addon(插件) 命令如下 python odoo-bin scaffold 插件名 路径 # 例如 python odoo-bin scaffold hh_todo_app myaddons # 需要将myaddons的路径添加到odoo.conf配置文件的addons_path参数中去 目录结构 开发To-do addon 创建huah_todo addon python odoo-bin scaffold huah_todo extra_addons 创建huah_todo addon在extra_addons,需将extra_addons的绝对路径添加到debian/odoo.conf中的addons_path参数中 编写__manifest__.py文件 # -*- coding: utf-8 -*- { 'name': "huah_todo",# addons在应用栏中的展示名 # 摘要 'summary': """ Short (1 phrase/line) summary of the module's purpose, used as subtitle on modules listing or apps.openerp.com""", # 描述 'description': """ Long description of