mirror of
https://github.com/NaN-tic/trytond-product_purchase_sequence.git
synced 2023-12-14 04:02:54 +01:00
27 lines
866 B
Python
27 lines
866 B
Python
# This file is part product_purchase_sequence module for Tryton.
|
|
# The COPYRIGHT file at the top level of this repository contains
|
|
# the full copyright notices and license terms.
|
|
from trytond.model import fields
|
|
from trytond.pool import PoolMeta
|
|
|
|
__all__ = [
|
|
'ProductConfiguration',
|
|
'ProductConfigurationCompany',
|
|
]
|
|
__metaclass__ = PoolMeta
|
|
|
|
|
|
class ProductConfiguration:
|
|
__name__ = 'product.configuration'
|
|
purchasable_sequence = fields.Function(fields.Many2One('ir.sequence', 'Purchasable Sequence',
|
|
domain=[
|
|
('code', '=', 'product.product'),
|
|
]),'get_fields', setter='set_fields')
|
|
|
|
|
|
class ProductConfigurationCompany:
|
|
__name__ = 'product.configuration.company'
|
|
purchasable_sequence = fields.Many2One('ir.sequence', 'Purchasable sequence',
|
|
domain=[
|
|
('code', '=', 'product.product'),
|
|
])
|