Below is the python code to get the table for the "acccount_account":

 Account = pool.get('account.account')
 account = Account.__table__()

How to call the view?


Example of my view (only for example):
create view AccountMoveView as
select party.name, acc.name from account_move_line aml
inner join account_account acc on acc.id = aml.account
inner join party_party party on aml.party = party.id

How am I going to call "AccountMoveView" in the python code?

Please advice

Reply via email to