我在我的模块中有以下选择字段我想获得选择字段的字符串值。假设用户选择'o'我想打印O - Original请给我提供任何更好的解决方案。 type = fields.Selection([
('o', 'O - Original'),
('a', 'A - Amended')],
string="Is this an Original I
我正在使用Odoo 10-e。我正在研究一个示例模块。 我有5款(客户,产品,订单,订单明细,运动) Customer : class Customer(models.Model):
_name ="amgl.customer"
…… all other fields related to customer
product_ids = fields.Many2many
当我打印我的报告时,我总是得到错误的时间(-1小时),并且我不知道如何解决这个问题。 我在我的代码,这样的功能: def _interpolation_dict(self):
t = time.localtime() # Actually, the server is always in UTC.
return {
'year': time.strftime('%Y
我正在一个示例模块中工作,我正在创建一个视图,其中我想根据条件和来自多个模型来显示记录。哪些已经被创建。 Pending Accounts class PendingAccounts(models.Model):
_name = 'amgl.pending_accounts'
_description = 'Pending Account'
name = field
class procurement(models.Model)
_name="procurement"
procurement_line_ids = fields.One2many(comodel_name='procurement.line', inverse_name='procurement_id', string='Procurement Lines')
g