diff options
| author | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
|---|---|---|
| committer | stephanchrst <stephanchrst@gmail.com> | 2022-05-10 21:51:50 +0700 |
| commit | 3751379f1e9a4c215fb6eb898b4ccc67659b9ace (patch) | |
| tree | a44932296ef4a9b71d5f010906253d8c53727726 /addons/stock_account/views/stock_account_views.xml | |
| parent | 0a15094050bfde69a06d6eff798e9a8ddf2b8c21 (diff) | |
initial commit 2
Diffstat (limited to 'addons/stock_account/views/stock_account_views.xml')
| -rw-r--r-- | addons/stock_account/views/stock_account_views.xml | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/addons/stock_account/views/stock_account_views.xml b/addons/stock_account/views/stock_account_views.xml new file mode 100644 index 00000000..62c8cdc5 --- /dev/null +++ b/addons/stock_account/views/stock_account_views.xml @@ -0,0 +1,70 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <data> + + <record id="view_move_form_inherit" model="ir.ui.view"> + <field name="name">stock.move.form.inherit</field> + <field name="model">stock.move</field> + <field name="inherit_id" ref="stock.view_move_form"/> + <field name="arch" type="xml"> + <xpath expr="//div[@name='button_box']" position="inside" > + <button name="action_get_account_moves" icon="fa-usd" class="oe_stat_button" string="Accounting Entries" type="object" groups="account.group_account_readonly"/> + </xpath> + </field> + </record> + + <record id="view_inventory_form_inherit" model="ir.ui.view"> + <field name="name">stock.inventory.form.inherit</field> + <field name="model">stock.inventory</field> + <field name="inherit_id" ref="stock.view_inventory_form"/> + <field name="arch" type="xml"> + <xpath expr="//field[@name='company_id']" position="before"> + <field name="accounting_date" attrs="{'readonly':[('state','=', 'done')]}"/> + </xpath> + <xpath expr="//div[@name='button_box']" position="inside"> + <field name="has_account_moves" invisible="1"/> + <button name="action_get_account_moves" type="object" + string="Accounting Entries" icon="fa-usd" class="oe_stat_button" + attrs="{'invisible': [('has_account_moves', '=', False)]}"/> + </xpath> + </field> + </record> + + <record id="view_inventory_tree" model="ir.ui.view"> + <field name="name">stock.inventory.tree.inherit.stock.account</field> + <field name="model">stock.inventory</field> + <field name="inherit_id" ref="stock.view_inventory_tree"/> + <field name="arch" type="xml"> + <xpath expr="//field[@name='date']" position="after"> + <field name="accounting_date" optional="hide"/> + </xpath> + </field> + </record> + + <record id="view_location_form_inherit" model="ir.ui.view"> + <field name="name">stock.location.form.inherit</field> + <field name="model">stock.location</field> + <field name="inherit_id" ref="stock.view_location_form"/> + <field name="arch" type="xml"> + <xpath expr="//group[@name='additional_info']" position="after"> + <group string="Accounting Information" attrs="{'invisible':[('usage','not in',('inventory','production'))]}"> + <field name="valuation_in_account_id" options="{'no_create': True}"/> + <field name="valuation_out_account_id" options="{'no_create': True}"/> + </group> + </xpath> + </field> + </record> + + <record id="view_stock_return_picking_form_inherit_stock_account" model="ir.ui.view"> + <field name="name">stock.return.picking.stock.account.form</field> + <field name="inherit_id" ref="stock.view_stock_return_picking_form"/> + <field name="model">stock.return.picking</field> + <field name="arch" type="xml"> + <xpath expr="//field[@name='product_return_moves']/tree" position="inside"> + <field name="to_refund" groups="base.group_no_one"/> + </xpath> + </field> + </record> + + </data> +</odoo> |
