El 19/12/17 a les 18:07, Cato Nano ha escrit:
I d like to establish a relation between my entity (Bolletta) and the parties
represented by the Party module
You can have a look at the party_relationship module which have the
model for storing relationships between parties.
I m not sure I undertsand how to do that
The manual doesn t mention the possibility it seems. Does it ?
The "sale" module has a model like this
class PartyReplace:
__metaclass__ = PoolMeta
__name__ = 'party.replace'
@classmethod
def fields_to_replace(cls):
return super(PartyReplace, cls).fields_to_replace() + [
('sale.sale', 'party'),
('sale.sale', 'shipment_party'),
]
but I m not sure what this is and what it does
On the party module there is a wizard to replace on party with another.
This wizard is designed to be extended by other modules in order to move
the documents related to the old party to the new party.
That's what this code do.
--
Sergi Almacellas Abellana
www.koolpi.com
Twitter: @pokoli_srk
--
You received this message because you are subscribed to the Google Groups
"tryton" group.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tryton/d42c3ba8-721a-8b8c-2e61-c12aaf7515d5%40koolpi.com.