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, company.ConnectionCompanies,
sale.Sale, sale.Sale,
sale.SaleIncomeDailyStart, sale.SaleIncomeDailyStart,
sale.SaleMonthByShopStart, # sale.SaleMonthByShopStart,
sale.SaleGoalAnnualRankingStart, # sale.SaleGoalAnnualRankingStart,
sale.SaleDetailedStart, sale.SaleDetailedStart,
sale.ShopDailySummaryStart, sale.ShopDailySummaryStart,
account.PrintBalanceSheetCOLGAAPStart, account.PrintBalanceSheetCOLGAAPStart,

18
sale.py
View File

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