-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
5 changed files
with
175 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
There is a wizard (sign.oca.template.generate.multi) that can be used for any model needed, an example would be `maintenance_sign_oca`. | ||
|
||
It would be necessary to set an action linked to the model with the code: | ||
|
||
.. code-block:: xml | ||
model.action_sign_oca_template_generate_multi() | ||
and code method: | ||
|
||
.. code-block:: python | ||
def action_sign_oca_template_generate_multi(self): | ||
action = self.env.ref("sign_oca.sign_oca_template_generate_multi_act_window") | ||
result = action.read()[0] | ||
ctx = dict(self.env.context) | ||
ctx.update({"default_model": self._name}) | ||
result["context"] = ctx | ||
return result | ||
this would allow to create `sign.request` records for the selected records (in a tree view for example). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
* Enric Tobella (www.dixmit.com) | ||
|
||
|
||
* `Tecnativa <https://www.tecnativa.com>`_: | ||
|
||
* Víctor Martínez |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters