first commit
This commit is contained in:
2
modules/sale_promotion_coupon_payment/__init__.py
Normal file
2
modules/sale_promotion_coupon_payment/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
Binary file not shown.
Binary file not shown.
3
modules/sale_promotion_coupon_payment/locale/bg.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/bg.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/ca.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/ca.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/cs.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/cs.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/de.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/de.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/es.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/es.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/es_419.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/es_419.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/et.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/et.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/fa.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/fa.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/fi.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/fi.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/fr.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/fr.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/hu.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/hu.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/id.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/id.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/it.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/it.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/lo.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/lo.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/lt.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/lt.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/nl.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/nl.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/pl.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/pl.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/pt.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/pt.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/ro.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/ro.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/ru.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/ru.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/sl.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/sl.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/tr.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/tr.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/uk.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/uk.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/zh_CN.po
Normal file
3
modules/sale_promotion_coupon_payment/locale/zh_CN.po
Normal file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
16
modules/sale_promotion_coupon_payment/sale.py
Normal file
16
modules/sale_promotion_coupon_payment/sale.py
Normal file
@@ -0,0 +1,16 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.model import fields
|
||||
from trytond.pool import PoolMeta
|
||||
|
||||
|
||||
class Sale(metaclass=PoolMeta):
|
||||
__name__ = 'sale.sale'
|
||||
|
||||
@fields.depends('party')
|
||||
def _coupon_parties(self):
|
||||
parties = super()._coupon_parties()
|
||||
if self.party:
|
||||
parties.update(self.party.payment_identical_parties)
|
||||
return parties
|
||||
2
modules/sale_promotion_coupon_payment/tests/__init__.py
Normal file
2
modules/sale_promotion_coupon_payment/tests/__init__.py
Normal file
@@ -0,0 +1,2 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
Binary file not shown.
Binary file not shown.
12
modules/sale_promotion_coupon_payment/tests/test_module.py
Normal file
12
modules/sale_promotion_coupon_payment/tests/test_module.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# This file is part of Tryton. The COPYRIGHT file at the top level of
|
||||
# this repository contains the full copyright notices and license terms.
|
||||
|
||||
from trytond.tests.test_tryton import ModuleTestCase
|
||||
|
||||
|
||||
class SalePromotionCouponPaymentTestCase(ModuleTestCase):
|
||||
"Test Sale Promotion Coupon Payment module"
|
||||
module = 'sale_promotion_coupon_payment'
|
||||
|
||||
|
||||
del ModuleTestCase
|
||||
10
modules/sale_promotion_coupon_payment/tryton.cfg
Normal file
10
modules/sale_promotion_coupon_payment/tryton.cfg
Normal file
@@ -0,0 +1,10 @@
|
||||
[tryton]
|
||||
version=7.8.0
|
||||
depends:
|
||||
account_payment
|
||||
ir
|
||||
sale_promotion_coupon
|
||||
|
||||
[register]
|
||||
model:
|
||||
sale.Sale
|
||||
Reference in New Issue
Block a user