mirror of
https://github.com/NaN-tic/trytond-sale_margin.git
synced 2023-12-14 02:02:57 +01:00
Fix tests.
This commit is contained in:
parent
63452dfdbf
commit
d44022b3e1
2 changed files with 7 additions and 7 deletions
|
@ -114,6 +114,13 @@ Create payment term::
|
||||||
>>> payment_term = create_payment_term()
|
>>> payment_term = create_payment_term()
|
||||||
>>> payment_term.save()
|
>>> payment_term.save()
|
||||||
|
|
||||||
|
Change sale configuration::
|
||||||
|
|
||||||
|
>>> Configuration = Model.get('sale.configuration')
|
||||||
|
>>> configuration = Configuration(1)
|
||||||
|
>>> configuration.sale_margin_method = 'cost_price'
|
||||||
|
>>> configuration.save()
|
||||||
|
|
||||||
Sale with 1 product::
|
Sale with 1 product::
|
||||||
|
|
||||||
>>> config.user = sale_user.id
|
>>> config.user = sale_user.id
|
||||||
|
|
|
@ -114,13 +114,6 @@ Create payment term::
|
||||||
>>> payment_term = create_payment_term()
|
>>> payment_term = create_payment_term()
|
||||||
>>> payment_term.save()
|
>>> payment_term.save()
|
||||||
|
|
||||||
Change sale configuration::
|
|
||||||
|
|
||||||
>>> Configuration = Model.get('sale.configuration')
|
|
||||||
>>> configuration = Configuration(1)
|
|
||||||
>>> configuration.sale_margin_method = 'unit_price'
|
|
||||||
>>> configuration.save()
|
|
||||||
|
|
||||||
Sale margin with and percentatge with unit price method::
|
Sale margin with and percentatge with unit price method::
|
||||||
|
|
||||||
>>> config.user = sale_user.id
|
>>> config.user = sale_user.id
|
||||||
|
|
Loading…
Reference in a new issue