odoo-8

    0热度

    1回答

    我只需要显示组中的用户。 例如,我有两个字段组和分配给。 如果我选择一个组,那么我应该只获得该组的列表。 您能否提供此问题的任何解决方案请

    1热度

    1回答

    我在我的模块中有以下选择字段我想获得选择字段的字符串值。假设用户选择'o'我想打印O - Original请给我提供任何更好的解决方案。 type = fields.Selection([ ('o', 'O - Original'), ('a', 'A - Amended')], string="Is this an Original I

    2热度

    1回答

    我添加 'LOCATION_ID' 字段树视图res.user到用户连接到某个位置 类ResUser(models.Model): _inherit ='res.users ' current_location_id=fields.Many2one('physical.location',string="Current Loction") allowed_location_ids=fields.

    3热度

    1回答

    我正在使用Odoo 10-e。我正在研究一个示例模块。 我有5款(客户,产品,订单,订单明细,运动) Customer : class Customer(models.Model): _name ="amgl.customer" …… all other fields related to customer product_ids = fields.Many2many

    3热度

    2回答

    我们正在获取登录用户self.env.user,但我想访问登录用户ir.action.act.window。 <record id="act_mail_messages_form_ept_closed" model="ir.actions.act_window"> <field name="name">Closed</field> <field name="res_mode

    0热度

    1回答

    问题: 虽然点击项目看板视图会重定向到project.tasks看板视图,而不是从观察孔工程。 我想要做什么: 我想开的项目,而不是任务看板的形式视图。有没有简单的解决方案呢? 我迄今所做的: 我已经找到了project.js文件项目模块,其中一个函数写,但我真的不明白他们在做的事。 openerp.web_kanban.KanbanRecord.include({ on_card_c

    1热度

    1回答

    当我打印我的报告时,我总是得到错误的时间(-1小时),并且我不知道如何解决这个问题。 我在我的代码,这样的功能: def _interpolation_dict(self): t = time.localtime() # Actually, the server is always in UTC. return { 'year': time.strftime('%Y

    0热度

    1回答

    我在stock.quant.package模型中创建了一个字段。 tracking_ref=fields.Char("Tracking Ref") 此字段在两个单独的模块中使用,我不能给模块依赖项,因为它们都是单独的模块。 可能两个模块都安装在同一个数据库中,或者可能有可能是 在某些数据库中只安装了一个模块。 由于这个原因,我在两个模块中创建了相同的字段&视图。 但现在的问题是,如果两个模块都

    2热度

    3回答

    我正在一个示例模块中工作,我正在创建一个视图,其中我想根据条件和来自多个模型来显示记录。哪些已经被创建。 Pending Accounts class PendingAccounts(models.Model): _name = 'amgl.pending_accounts' _description = 'Pending Account' name = field

    4热度

    2回答

    class procurement(models.Model) _name="procurement" procurement_line_ids = fields.One2many(comodel_name='procurement.line', inverse_name='procurement_id', string='Procurement Lines') g