Add rstcheck

This commit is contained in:
Cédric Krier committed 2023-03-15 16:33:19 +01:00
1 parent ac4d4a7fbb
commit b719d8aed1
11 files changed
+39 -36

No files matched your search

+1 -1
View File
@@ -78,7 +78,7 @@ selected record instances.
Here is an example of the directives to insert in the document:
.. code-block::
.. code-block:: text
<for each="opportunity in records">
Opportunity: <opportunity.rec_name>
+1 -1
View File
@@ -74,7 +74,7 @@ the :class:`~trytond.pool.Pool` as type ``model`` in :file:`__init__.py`:
def register():
...
Pool.register(
...
...,
opportunity.OpportunityMonthly,
module='opportunity', type_='model')
+8 -8
View File
@@ -71,14 +71,14 @@ Now we can define the :class:`~trytond.wizard.Wizard` with a ``start``
...
class Opportunity(...):
...
@classmethod
@Workflow.transition('converted')
def convert(cls, opportunities, end_date=None):
pool = Pool()
Date = pool.get('ir.date')
cls.write(opportunities, {
'end_date': end_date or Date.today(),
})
@classmethod
@Workflow.transition('converted')
def convert(cls, opportunities, end_date=None):
pool = Pool()
Date = pool.get('ir.date')
cls.write(opportunities, {
'end_date': end_date or Date.today(),
})
...
class Convert(Wizard):
"Convert Opportunities"