mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
prepare #I6XRUP [app_social_login_wxapp]将app_mobile_api_wxapp中小程序登录功能拆出来
This commit is contained in:
@@ -18,4 +18,6 @@ class ResPartnerAiUse(models.Model):
|
|||||||
ai_completion_tokens = fields.Integer('AI Completion Tokens')
|
ai_completion_tokens = fields.Integer('AI Completion Tokens')
|
||||||
tokens_total = fields.Integer('Total Tokens')
|
tokens_total = fields.Integer('Total Tokens')
|
||||||
token_balance = fields.Integer('Token Balance')
|
token_balance = fields.Integer('Token Balance')
|
||||||
|
# balance = allow - total
|
||||||
|
token_allow = fields.Integer('Token Allow')
|
||||||
|
|
||||||
|
|||||||
@@ -6,16 +6,17 @@
|
|||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<tree>
|
<tree>
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
<field name="ai_user_id"/>
|
<field name="ai_user_id" options="show"/>
|
||||||
<field name="first_ask_time"/>
|
<field name="first_ask_time" options="show"/>
|
||||||
<field name="service_start_date"/>
|
<field name="service_start_date" options="show"/>
|
||||||
<field name="service_end_date"/>
|
<field name="service_end_date" options="show"/>
|
||||||
<field name="used_number" sum="Total"/>
|
<field name="used_number" sum="Total" options="hide"/>
|
||||||
<field name="max_number" sum="Total"/>
|
<field name="max_number" sum="Total" options="hide"/>
|
||||||
<field name="token_balance" sum="Total"/>
|
<field name="human_prompt_tokens" sum="Total" options="show"/>
|
||||||
<field name="human_prompt_tokens" sum="Total"/>
|
<field name="ai_completion_tokens" sum="Total" options="show"/>
|
||||||
<field name="ai_completion_tokens" sum="Total"/>
|
<field name="tokens_total" sum="Total" options="show"/>
|
||||||
<field name="tokens_total" sum="Total"/>
|
<field name="token_balance" sum="Total" options="show"/>
|
||||||
|
<field name="token_allow" sum="Total" options="show"/>
|
||||||
</tree>
|
</tree>
|
||||||
</field>
|
</field>
|
||||||
</record>
|
</record>
|
||||||
|
|||||||
Reference in New Issue
Block a user