mirror of
https://github.com/OCA/account-financial-tools.git
synced 2025-02-02 12:47:26 +02:00
* [MIG] account_move_template: to 10.0 All working, removed feature of transitory account, I think that feature is redundant because it can be solved with python code lines and/or a proper server action per client, beside it was not properly documented. - All code refactored more new api oriented. - Tested with enterprise and all views fixed. - Removed all licences on files and moved as usual to where they belong. * [FIX] removed tax from view. The taxes should be triggered from the account itself and not wired into the template. * [FIX] account_move_template: Activities in just for saas-x comming on v100, for now I left it commented to simply uncomment it on v11 * [FIX] account_move_template: Cleanup translations, not useful after refactor * [REF] account_move_template: Removing all reference to taxes. * [IMP] account_move_template: Translating * [FIX] account_move_template: Fixing lints.
81 lines
3.9 KiB
XML
81 lines
3.9 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="wizard_select_template" model="ir.ui.view">
|
|
<field name="name">Select Move Template</field>
|
|
<field name="model">wizard.select.move.template</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Move Template" >
|
|
<field name="state" invisible="1"/>
|
|
<group>
|
|
<group>
|
|
<field name="template_id" widget="selection"
|
|
attrs="{'invisible':[('state','=','template_selected')]}"/>
|
|
</group>
|
|
<group>
|
|
<field name="partner_id" attrs="{'invisible':[('state','=','template_selected')]}"/>
|
|
</group>
|
|
</group>
|
|
<separator
|
|
string="Modify the lines before create them or edit them after creation."
|
|
attrs="{'invisible':[('state','!=','template_selected')]}"/>
|
|
<field name="line_ids" nolabel="1" attrs="{'invisible':[('state','!=','template_selected')]}"/>
|
|
<footer>
|
|
<button name="load_template" class="btn-primary" string="Load" type="object" colspan="1" attrs="{'invisible':[('state','!=','template_selected')]}" />
|
|
<button name="load_lines" class="btn-primary" string="Next" type="object" attrs="{'invisible':[('state','=','template_selected')]}" />
|
|
<button special="cancel" string="Cancel" class="btn-default"/>
|
|
</footer>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="wizard_select_template_line" model="ir.ui.view">
|
|
<field name="name">Select Move Template Line</field>
|
|
<field name="model">wizard.select.move.template.line</field>
|
|
<field name="arch" type="xml">
|
|
<form string="Move Template Line">
|
|
<group>
|
|
<field name="sequence" invisible="1"/>
|
|
<field name="name" />
|
|
<field name="account_id" />
|
|
<field name="move_line_type" />
|
|
<field name="amount" />
|
|
</group>
|
|
</form>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="wizard_select_template_line_tree" model="ir.ui.view">
|
|
<field name="name">Select Move Template Line</field>
|
|
<field name="model">wizard.select.move.template.line</field>
|
|
<field name="arch" type="xml">
|
|
<tree string="Move Template Line" editable="bottom">
|
|
<field name="sequence" invisible="1"/>
|
|
<field name="name" />
|
|
<field name="account_id" />
|
|
<field name="move_line_type" />
|
|
<field name="amount" />
|
|
</tree>
|
|
</field>
|
|
</record>
|
|
|
|
<record id="action_wizard_select_template" model="ir.actions.act_window">
|
|
<field name="name">Select Move Template</field>
|
|
<field name="res_model">wizard.select.move.template</field>
|
|
<field name="view_type">form</field>
|
|
<field name="view_mode">form</field>
|
|
<field name="view_id" ref="wizard_select_template"/>
|
|
<field name="target">new</field>
|
|
</record>
|
|
|
|
<act_window name="Create Move from Template"
|
|
res_model="wizard.select.move.template"
|
|
src_model="account.move"
|
|
view_mode="form"
|
|
target="new"
|
|
key2="client_action_multi"
|
|
id="action_wizard_select_template_by_move"
|
|
view_id="wizard_select_template"/>
|
|
|
|
<menuitem name="Create Move from Template" action="action_wizard_select_template" id="menu_action_wizard_select_template" sequence="10" parent="account.menu_finance_entries"/>
|
|
</odoo>
|