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

IMP doc CONFIGURE.rst #271

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions proxy_action/readme/CONFIGURE.rst
Original file line number Diff line number Diff line change
@@ -1 +1,19 @@
By default, it calls pywebdriver on "https://localhost".

Actions may be triggered by a server action like in this example

.. code-block:: xml

<record id="print_stock_location_act_server" model="ir.actions.server">
<field name="name">🖨 barcode location</field>
<field name="model_id" ref="model_stock_location"/>
<field name="binding_model_id" ref="model_stock_location"/>
<field name="state">code</field>
<field name="binding_type">report</field>
<field name="code">
action = model._print_my_barcode()
</field>
</record>


Don't forget binding_type set to report to get it works