Files
public/rsbu_kudir/models/rsbu_operation_template.py

18 lines
719 B
Python
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
from odoo import fields, models
class RsbuOperationTemplate(models.Model):
"""Расширение шаблона: правило признания в УСН (для КУДиР)."""
_inherit = 'rsbu.operation.template'
usn_recognition = fields.Selection(
selection=[
('income', 'Доход'),
('expense', 'Расход'),
('refund_customer', 'Возврат клиенту'),
('refund_supplier', 'Возврат поставщику'),
('none', 'Не участвует в УСН'),
],
string='Признание в УСН', default='none', required=True)
is_refund = fields.Boolean(string='Это возврат')