minor fix

This commit is contained in:
wilsongomez 2022-02-25 08:23:09 -05:00
parent fd7e9f4fc5
commit c5f85592f7
2 changed files with 11 additions and 11 deletions

View File

@ -12,8 +12,8 @@ def register():
company.ConnectionCompanies,
sale.Sale,
sale.SaleIncomeDailyStart,
sale.SaleMonthByShopStart,
sale.SaleGoalAnnualRankingStart,
# sale.SaleMonthByShopStart,
# sale.SaleGoalAnnualRankingStart,
sale.SaleDetailedStart,
sale.ShopDailySummaryStart,
account.PrintBalanceSheetCOLGAAPStart,

18
sale.py
View File

@ -112,15 +112,15 @@ class SaleIncomeDailyStart(metaclass=PoolMeta):
# return report_context
class SaleMonthByShopStart(metaclass=PoolMeta):
__name__ = 'sale_goal.sale_month_shop.start'
@classmethod
def __setup__(cls):
super(SaleMonthByShopStart, cls).__setup__()
cls.shop.domain.append(
('id', 'in', Eval('context', {}).get('shops', -1))
)
# class SaleMonthByShopStart(metaclass=PoolMeta):
# __name__ = 'sale_goal.sale_month_shop.start'
#
# @classmethod
# def __setup__(cls):
# super(SaleMonthByShopStart, cls).__setup__()
# cls.shop.domain.append(
# ('id', 'in', Eval('context', {}).get('shops', -1))
# )
class SaleGoalAnnualRankingStart(metaclass=PoolMeta):