Where is _get_taxes() defined in invoice.py

24 views
Skip to first unread message

Vincent Bastos

unread,
Nov 1, 2016, 2:27:24 AM11/1/16
to tryton-dev
I don't know why but I can't find _get_taxes() in invoice.py for an invoice.

For example at line 514 [1] in invoice.py of account_invoice. I am assuming that there should be a line starting with def _get_taxes(?

Cédric Krier

unread,
Nov 1, 2016, 4:45:03 AM11/1/16
to tryton-dev
On 2016-10-31 23:27, Vincent Bastos wrote:
> I don't know why but I can't find _get_taxes() in invoice.py for an invoice.
>
> For example at line 514 [1] in invoice.py of account_invoice. I am assuming
> that there should be a line starting with def _get_taxes(?

It comes from the TaxableMixin defined in account/tax.py

--
Cédric Krier - B2CK SPRL
Email/Jabber: cedric...@b2ck.com
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Vincent Bastos

unread,
Nov 1, 2016, 7:06:26 AM11/1/16
to tryto...@googlegroups.com
On Tue, Nov 1, 2016 at 6:42 PM, Cédric Krier <cedric...@b2ck.com> wrote:
On 2016-10-31 23:27, Vincent Bastos wrote:
> I don't know why but I can't find _get_taxes() in invoice.py for an invoice.
>
> For example at line 514 [1] in invoice.py of account_invoice. I am assuming
> that there should be a line starting with def _get_taxes(?

It comes from the TaxableMixin defined in account/tax.py

How does invoice.py know about TaxableMixin? 


--
Vincent Bastos
Lava Lab Software

Cédric Krier

unread,
Nov 1, 2016, 7:30:09 AM11/1/16
to tryto...@googlegroups.com
It is imported and inherited.

Vincent Bastos

unread,
Nov 1, 2016, 7:35:36 AM11/1/16
to tryto...@googlegroups.com
On Tue, Nov 1, 2016 at 9:27 PM, Cédric Krier <cedric...@b2ck.com> wrote:
On 2016-11-01 21:06, Vincent Bastos wrote:
> On Tue, Nov 1, 2016 at 6:42 PM, Cédric Krier <cedric...@b2ck.com> wrote:
>
> > On 2016-10-31 23:27, Vincent Bastos wrote:
> > > I don't know why but I can't find _get_taxes() in invoice.py for an
> > invoice.
> > >
> > > For example at line 514 [1] in invoice.py of account_invoice. I am
> > assuming
> > > that there should be a line starting with def _get_taxes(?
> >
> > It comes from the TaxableMixin defined in account/tax.py
>
>
> How does invoice.py know about TaxableMixin?

It is imported and inherited.

My bad, I was searching in the wrong file just then. I should stop opening so many tabs in my browser ... 
Reply all
Reply to author
Forward
0 new messages