Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'target': 'new' ,'type': 'ir.actions.act_window'?For example, use buttons #60

Open
nwb5233 opened this issue Jan 19, 2021 · 0 comments
Open

Comments

@nwb5233
Copy link

nwb5233 commented Jan 19, 2021

When I create a new form and footer include button. for example:

stock.immediate.transfer.view.form
stock.immediate.transfer



You have not recorded done quantities yet, by clicking on apply Odoo will process all the quantities.


            <!-- Added to ensure a correct default_get behavior

            The wizard is always opened with default_pick_ids values in context,
            which are used to generate the backorder_confirmation_line_ids.

            To ensure default_pick_ids is correctly converted from the context
            by default_get, the field has to be present in the view.
            -->
            <field name="pick_ids" invisible="1"/>

            <field name="show_transfers" invisible="1"/>
            <field name="immediate_transfer_line_ids" nolabel="1" attrs="{'invisible': [('show_transfers', '=', False)]}">>
                <tree create="0" delete="0" editable="top">
                    <field name="picking_id"/>
                    <field name="to_immediate" widget="boolean_toggle"/>
                </tree>
            </field>

            <footer>
                <button name="process" string="Apply" type="object" class="btn-primary"/>
                <button string="Cancel" class="btn-secondary" special="cancel" />
            </footer>
        </form>
    </field>
</record>

Which api should I use? thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant