Skip to content

Commit 38e192b

Browse files
[IMP] edi_voxel_sale_order_import_oca: pre-commit auto fixes
1 parent 886cbe6 commit 38e192b

12 files changed

Lines changed: 108 additions & 105 deletions

File tree

edi_voxel_sale_order_import_oca/README.rst

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ Voxel sale order oca
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
1919
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github
20-
:target: https://github.com/OCA/edi/tree/15.0/edi_voxel_sale_order_import_oca
20+
:target: https://github.com/OCA/edi/tree/18.0/edi_voxel_sale_order_import_oca
2121
:alt: OCA/edi
2222
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23-
:target: https://translation.odoo-community.org/projects/edi-15-0/edi-15-0-edi_voxel_sale_order_import_oca
23+
:target: https://translation.odoo-community.org/projects/edi-18-0/edi-18-0-edi_voxel_sale_order_import_oca
2424
:alt: Translate me on Weblate
2525
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26-
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi&target_branch=15.0
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi&target_branch=18.0
2727
:alt: Try me on Runboat
2828

2929
|badge1| |badge2| |badge3| |badge4| |badge5|
3030

31-
This module allows you to import sales orders from Voxel. Imports
32-
are queued in jobs running in the background.
31+
This module allows you to import sales orders from Voxel. Imports are
32+
queued in jobs running in the background.
3333

3434
**Table of contents**
3535

@@ -39,68 +39,68 @@ are queued in jobs running in the background.
3939
Configuration
4040
=============
4141

42-
To configure this module you have to belong to the access group
43-
'Voxel manager' under 'Technical Settings', then:
44-
45-
#. Go to *Settings > Users & Companies > Companies*, open the companies you
46-
want to enable Voxel communication and set 'Enable Voxel' field to True.
47-
#. In the login list, add the corresponding login for connecting with
48-
Voxel to import sales orders. The final URL from where sales order will be
49-
imported is '<Login URL>/Outbox'.
50-
#. Save the form and edit it again, find 'Sale Order login' field and select
51-
the login to be used in the imports.
52-
#. If you have the right access, go to
53-
*Settings > Technical > Automation > Scheduled Actions*, find the record
54-
named 'Edi Voxel: Get voxel sale order' and Adjust the data corresponding
55-
to that scheduled action, such as the frequency with which that action will
42+
To configure this module you have to belong to the access group 'Voxel
43+
manager' under 'Technical Settings', then:
44+
45+
1. Go to *Settings > Users & Companies > Companies*, open the companies
46+
you want to enable Voxel communication and set 'Enable Voxel' field
47+
to True.
48+
2. In the login list, add the corresponding login for connecting with
49+
Voxel to import sales orders. The final URL from where sales order
50+
will be imported is '<Login URL>/Outbox'.
51+
3. Save the form and edit it again, find 'Sale Order login' field and
52+
select the login to be used in the imports.
53+
4. If you have the right access, go to *Settings > Technical >
54+
Automation > Scheduled Actions*, find the record named 'Edi Voxel:
55+
Get voxel sale order' and Adjust the data corresponding to that
56+
scheduled action, such as the frequency with which that action will
5657
be executed.
5758

5859
Note:
5960

60-
This module enqueue the imports in jobs in the background.
61-
To do that it uses queue_job module, so a configuration is required
62-
according to that.
61+
This module enqueue the imports in jobs in the background. To do that it
62+
uses queue_job module, so a configuration is required according to that.
6363
The jobs for impots are queued in the channel ``root.voxel_import``.
6464

6565
Usage
6666
=====
6767

68-
To use this module, you don't need to do anything. Automatically every so
69-
often a 'scheduled action' will be executed that will try to import from
70-
Voxel the sales orders that have not been imported previously.
68+
To use this module, you don't need to do anything. Automatically every
69+
so often a 'scheduled action' will be executed that will try to import
70+
from Voxel the sales orders that have not been imported previously.
7171

72-
Imports will be performed for the companies that have the 'Voxel'
73-
field checked (See configuration section).
72+
Imports will be performed for the companies that have the 'Voxel' field
73+
checked (See configuration section).
7474

7575
Bug Tracker
7676
===========
7777

7878
Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi/issues>`_.
7979
In case of trouble, please check there if your issue has already been reported.
8080
If you spotted it first, help us to smash it by providing a detailed and welcomed
81-
`feedback <https://github.com/OCA/edi/issues/new?body=module:%20edi_voxel_sale_order_import_oca%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
81+
`feedback <https://github.com/OCA/edi/issues/new?body=module:%20edi_voxel_sale_order_import_oca%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
8282

8383
Do not contact contributors directly about support or help with technical issues.
8484

8585
Credits
8686
=======
8787

8888
Authors
89-
~~~~~~~
89+
-------
9090

9191
* Tecnativa
9292

9393
Contributors
94-
~~~~~~~~~~~~
94+
------------
9595

96-
* `Tecnativa <https://www.tecnativa.com>`_:
96+
- `Tecnativa <https://www.tecnativa.com>`__:
9797

98-
* Ernesto Tejeda
99-
* Pedro M. Baeza
100-
* Sergio Teruel
98+
- Ernesto Tejeda
99+
- Pedro M. Baeza
100+
- Sergio Teruel
101101

102102
Maintainers
103-
~~~~~~~~~~~
103+
-----------
104104

105105
This module is maintained by the OCA.
106106

@@ -112,6 +112,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
112112
mission is to support the collaborative development of Odoo features and
113113
promote its widespread use.
114114

115-
This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/15.0/edi_voxel_sale_order_import_oca>`_ project on GitHub.
115+
This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/18.0/edi_voxel_sale_order_import_oca>`_ project on GitHub.
116116

117117
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

edi_voxel_sale_order_import_oca/models/sale_order.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,5 +385,5 @@ def _get_voxel_msg_fields(self, model_name, partner_data):
385385
for key, value in partner_data.items():
386386
if partner_data.get(key):
387387
field_str = model._fields[key].get_description(self.env)["string"]
388-
msg_fields += "<li>{}: {}</li>".format(field_str, value)
388+
msg_fields += f"<li>{field_str}: {value}</li>"
389389
return msg_fields
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
To configure this module you have to belong to the access group 'Voxel
2+
manager' under 'Technical Settings', then:
3+
4+
1. Go to *Settings \> Users & Companies \> Companies*, open the
5+
companies you want to enable Voxel communication and set 'Enable
6+
Voxel' field to True.
7+
2. In the login list, add the corresponding login for connecting with
8+
Voxel to import sales orders. The final URL from where sales order
9+
will be imported is '\<Login URL\>/Outbox'.
10+
3. Save the form and edit it again, find 'Sale Order login' field and
11+
select the login to be used in the imports.
12+
4. If you have the right access, go to *Settings \> Technical \>
13+
Automation \> Scheduled Actions*, find the record named 'Edi Voxel:
14+
Get voxel sale order' and Adjust the data corresponding to that
15+
scheduled action, such as the frequency with which that action will
16+
be executed.
17+
18+
Note:
19+
20+
This module enqueue the imports in jobs in the background. To do that it
21+
uses queue_job module, so a configuration is required according to that.
22+
The jobs for impots are queued in the channel `root.voxel_import`.

edi_voxel_sale_order_import_oca/readme/CONFIGURE.rst

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
- [Tecnativa](https://www.tecnativa.com):
2+
- Ernesto Tejeda
3+
- Pedro M. Baeza
4+
- Sergio Teruel

edi_voxel_sale_order_import_oca/readme/CONTRIBUTORS.rst

Lines changed: 0 additions & 5 deletions
This file was deleted.

edi_voxel_sale_order_import_oca/readme/DESCRIPTION.rst renamed to edi_voxel_sale_order_import_oca/readme/DESCRIPTION.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
This module allows you to import sales orders from Voxel. Imports
2-
are queued in jobs running in the background.
1+
This module allows you to import sales orders from Voxel. Imports are
2+
queued in jobs running in the background.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
To use this module, you don't need to do anything. Automatically every
2+
so often a 'scheduled action' will be executed that will try to import
3+
from Voxel the sales orders that have not been imported previously.
4+
5+
Imports will be performed for the companies that have the 'Voxel' field
6+
checked (See configuration section).

edi_voxel_sale_order_import_oca/readme/USAGE.rst

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)