Initial import from Docker volume
This commit is contained in:
14
modules/sale_promotion_coupon_payment/__init__.py
Executable file
14
modules/sale_promotion_coupon_payment/__init__.py
Executable file
@@ -0,0 +1,14 @@
|
||||
# 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.pool import Pool
|
||||
|
||||
from . import sale
|
||||
|
||||
__all__ = ['register']
|
||||
|
||||
|
||||
def register():
|
||||
Pool.register(
|
||||
sale.Sale,
|
||||
module='sale_promotion_coupon_payment', type_='model')
|
||||
BIN
modules/sale_promotion_coupon_payment/__pycache__/__init__.cpython-311.opt-1.pyc
Executable file
BIN
modules/sale_promotion_coupon_payment/__pycache__/__init__.cpython-311.opt-1.pyc
Executable file
Binary file not shown.
BIN
modules/sale_promotion_coupon_payment/__pycache__/__init__.cpython-311.pyc
Executable file
BIN
modules/sale_promotion_coupon_payment/__pycache__/__init__.cpython-311.pyc
Executable file
Binary file not shown.
BIN
modules/sale_promotion_coupon_payment/__pycache__/sale.cpython-311.opt-1.pyc
Executable file
BIN
modules/sale_promotion_coupon_payment/__pycache__/sale.cpython-311.opt-1.pyc
Executable file
Binary file not shown.
BIN
modules/sale_promotion_coupon_payment/__pycache__/sale.cpython-311.pyc
Executable file
BIN
modules/sale_promotion_coupon_payment/__pycache__/sale.cpython-311.pyc
Executable file
Binary file not shown.
3
modules/sale_promotion_coupon_payment/locale/bg.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/bg.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/ca.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/ca.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/cs.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/cs.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/de.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/de.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/es.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/es.po
Executable 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
Executable file
3
modules/sale_promotion_coupon_payment/locale/es_419.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/et.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/et.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/fa.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/fa.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/fi.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/fi.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/fr.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/fr.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/hu.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/hu.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/id.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/id.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/it.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/it.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/lo.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/lo.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/lt.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/lt.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/nl.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/nl.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/pl.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/pl.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/pt.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/pt.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/ro.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/ro.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/ru.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/ru.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/sl.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/sl.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/tr.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/tr.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
3
modules/sale_promotion_coupon_payment/locale/uk.po
Executable file
3
modules/sale_promotion_coupon_payment/locale/uk.po
Executable 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
Executable file
3
modules/sale_promotion_coupon_payment/locale/zh_CN.po
Executable file
@@ -0,0 +1,3 @@
|
||||
#
|
||||
msgid ""
|
||||
msgstr "Content-Type: text/plain; charset=utf-8\n"
|
||||
16
modules/sale_promotion_coupon_payment/sale.py
Executable file
16
modules/sale_promotion_coupon_payment/sale.py
Executable 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
Executable file
2
modules/sale_promotion_coupon_payment/tests/__init__.py
Executable 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.
BIN
modules/sale_promotion_coupon_payment/tests/__pycache__/__init__.cpython-311.pyc
Executable file
BIN
modules/sale_promotion_coupon_payment/tests/__pycache__/__init__.cpython-311.pyc
Executable file
Binary file not shown.
Binary file not shown.
Binary file not shown.
12
modules/sale_promotion_coupon_payment/tests/test_module.py
Executable file
12
modules/sale_promotion_coupon_payment/tests/test_module.py
Executable 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
|
||||
7
modules/sale_promotion_coupon_payment/tryton.cfg
Executable file
7
modules/sale_promotion_coupon_payment/tryton.cfg
Executable file
@@ -0,0 +1,7 @@
|
||||
[tryton]
|
||||
version=7.2.0
|
||||
depends:
|
||||
account_payment
|
||||
ir
|
||||
sale_promotion_coupon
|
||||
xml:
|
||||
Reference in New Issue
Block a user