Add rstcheck
This commit is contained in:
1 parent
ac4d4a7fbb
commit
b719d8aed1
11 files changed
+39
-36
No files matched your search
@@ -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>
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in new issue
Block a user