Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie

Dear Colleagues, 


odoo is in version 17. how can I add an auto action to check availability using auto actions?


I try: 

# Available variables:

#  - env: environment on which the action is triggered

#  - model: model of the record on which the action is triggered; is a void recordset

#  - record: record on which the action is triggered; may be void

#  - records: recordset of all records on which the action is triggered in multi-mode; may be void

#  - time, datetime, dateutil, timezone: useful Python libraries

#  - float_compare: utility function to compare floats based on specific precision

#  - log: log(message, level='info'): logging function to record debug information in ir.logging table

#  - _logger: _logger.info(message): logger to emit messages in server logs

#  - UserError: exception class for raising user-facing warning messages

#  - Command: x2many commands namespace

# To return an action, assign: action = {...}


action = {

    record.action_assign()

}


but now work. 


Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
3
sty 24
8432
3
lut 22
40088
1
mar 15
4934
0
sie 21
2898
1
maj 17
8143