mirror of
https://github.com/NaN-tic/trytond-commission_party-old.git
synced 2023-12-14 05:03:10 +01:00
Add python 3 support
This commit is contained in:
parent
9801f7444a
commit
84f82b39a0
5
party.py
5
party.py
|
@ -5,10 +5,10 @@ from trytond.model import fields, ModelSQL
|
||||||
from trytond.pool import PoolMeta
|
from trytond.pool import PoolMeta
|
||||||
|
|
||||||
__all__ = ['Party', 'PartyAgent', 'Invoice', 'Sale', 'Opportunity']
|
__all__ = ['Party', 'PartyAgent', 'Invoice', 'Sale', 'Opportunity']
|
||||||
__metaclass__ = PoolMeta
|
|
||||||
|
|
||||||
|
|
||||||
class Party:
|
class Party:
|
||||||
|
__metaclass__ = PoolMeta
|
||||||
__name__ = 'party.party'
|
__name__ = 'party.party'
|
||||||
agents = fields.Many2Many('party-commission.agent',
|
agents = fields.Many2Many('party-commission.agent',
|
||||||
'party', 'agent', 'Agents',
|
'party', 'agent', 'Agents',
|
||||||
|
@ -26,6 +26,7 @@ class PartyAgent(ModelSQL):
|
||||||
|
|
||||||
|
|
||||||
class Sale:
|
class Sale:
|
||||||
|
__metaclass__ = PoolMeta
|
||||||
__name__ = 'sale.sale'
|
__name__ = 'sale.sale'
|
||||||
|
|
||||||
@fields.depends('agent', 'party')
|
@fields.depends('agent', 'party')
|
||||||
|
@ -38,6 +39,7 @@ class Sale:
|
||||||
|
|
||||||
|
|
||||||
class Opportunity:
|
class Opportunity:
|
||||||
|
__metaclass__ = PoolMeta
|
||||||
__name__ = 'sale.opportunity'
|
__name__ = 'sale.opportunity'
|
||||||
|
|
||||||
def _get_sale_opportunity(self):
|
def _get_sale_opportunity(self):
|
||||||
|
@ -50,6 +52,7 @@ class Opportunity:
|
||||||
|
|
||||||
|
|
||||||
class Invoice:
|
class Invoice:
|
||||||
|
__metaclass__ = PoolMeta
|
||||||
__name__ = 'account.invoice'
|
__name__ = 'account.invoice'
|
||||||
|
|
||||||
@fields.depends('agent', 'party')
|
@fields.depends('agent', 'party')
|
||||||
|
|
Loading…
Reference in a new issue