mirror of
https://github.com/bringout/oca-ocb-technical.git
synced 2026-04-21 23:52:08 +02:00
19.0 vanilla
This commit is contained in:
parent
5faf7397c5
commit
2696f14ed7
721 changed files with 220375 additions and 91221 deletions
|
|
@ -6,33 +6,59 @@
|
|||
<field name="name">iap.account.form</field>
|
||||
<field name="model">iap.account</field>
|
||||
<field name="arch" type="xml">
|
||||
<form string="IAP Account">
|
||||
<form string="IAP Account" duplicate="false">
|
||||
<sheet>
|
||||
<group name="account" string="Account Information">
|
||||
<field name="service_name"/>
|
||||
<field name="company_ids" widget="many2many_tags" domain="[('id', 'in', allowed_company_ids)]"/>
|
||||
<field name="account_token"/>
|
||||
<group>
|
||||
<field name="name" />
|
||||
<field name="service_id" readonly="service_locked" options="{'no_open': True, 'no_create': True}"/>
|
||||
<field name="description" />
|
||||
<field name="company_ids" widget="many2many_tags"
|
||||
domain="[('id', 'in', allowed_company_ids)]" />
|
||||
<field name="account_token" groups="base.group_no_one"/>
|
||||
</group>
|
||||
<group name="external">
|
||||
<label for="balance" class="oe_inline"/>
|
||||
<div>
|
||||
<field name="balance" class="oe_inline"/>
|
||||
<button type="object"
|
||||
name="action_buy_credits" class="btn-link py-0">
|
||||
<i class="oi oi-arrow-right"/>
|
||||
Buy Credit
|
||||
</button>
|
||||
</div>
|
||||
<field name="warning_threshold"/>
|
||||
<field name="warning_user_ids"
|
||||
invisible="warning_threshold == 0"
|
||||
required="warning_threshold > 0"
|
||||
widget="many2many_tags" />
|
||||
</group>
|
||||
</group>
|
||||
</sheet>
|
||||
</form>
|
||||
</field>
|
||||
</record>
|
||||
<record id="iap_account_view_tree" model="ir.ui.view">
|
||||
<field name="name">iap.account.tree</field>
|
||||
<field name="name">iap.account.list</field>
|
||||
<field name="model">iap.account</field>
|
||||
<field name="arch" type="xml">
|
||||
<tree string="IAP Accounts">
|
||||
<field name="service_name"/>
|
||||
<field name="company_ids" widget="many2many_tags"/>
|
||||
<field name="account_token" readonly="1"/>
|
||||
</tree>
|
||||
<list string="IAP Accounts" duplicate="false">
|
||||
<field name="name" />
|
||||
<field name="service_id" />
|
||||
<field name="company_ids" widget="many2many_tags" />
|
||||
<field name="account_token" groups="base.group_no_one"/>
|
||||
<field name="balance" />
|
||||
<field name="warning_threshold" optional="hidden" />
|
||||
<field name="description" optional="hidden" />
|
||||
</list>
|
||||
</field>
|
||||
</record>
|
||||
<!-- Actions -->
|
||||
<record id="iap_account_action" model="ir.actions.act_window">
|
||||
<field name="name">IAP Account</field>
|
||||
<field name="res_model">iap.account</field>
|
||||
<field name='view_mode'>tree,form</field>
|
||||
<field name="path">iap-accounts</field>
|
||||
<field name='view_mode'>list,form</field>
|
||||
</record>
|
||||
|
||||
<!-- Menus -->
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue